Hello,

I'am using JBPM with Struts (spring 2.0.8 and jbpm-spring 0.8). Actually, we load processes definitions from inside ear (ie /src/main/resources/jbpm/processDefinition.xml ).
The application run with jboss (4.0.5-GA).

We want to move process definition inside <JBOSS>/server/conf directory (ie <JBOSS>/server/conf/foo/bar/processDefinition.xml).

We actually move some part of the applicationContext.xml in <JBOSS>/server/conf directory using <import/>

ie :
Code:
<import resource="classpath*:**/${application.configurationExterne.path}/jbpmContext.xml" />
where jbpmContext.xml is in <JBOSS>/server/conf/foo/

this file contains references to process definitions like :

Code:
<bean id="workflow"
        class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
        <property name="definitionLocation"
            value="classpath:jbpm/workflow.xml" />
    </bean>
This definition refere to an xml inside ear and it works.

But when we try to refere xml in jboss/conf it doesn't work and we get a FileNotFoundException...

ie :

Code:
<bean id="workflow"
        class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
        <property name="definitionLocation"
            value="classpath*:**/${application.configurationExterne.path}/workflow.xml" />
    </bean>
don't work.

Is there any way to have this case work ?

Thanks.