-
1. Re: visibility of META-INF/* in modules ?
ctomc Jul 8, 2012 6:10 AM (in response to jbride)Hi,
sure it is possible
take a look at https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7
what you are looking for is explicitly importing paths you want to get included when importing module.
for example something like this:
<
dependencies
>
<
module
name
=
"org.mymodule"
>
<
imports
>
<
include
path
=
"META-INF/*.xml"
/>
</
imports
>
</
module
>
</
dependencies
>
--
tomaz
-
2. Re: visibility of META-INF/* in modules ?
jbride Jul 8, 2012 8:49 AM (in response to ctomc)thanks for the quick response Tomaz.
I actually tried explicitly importing but was not able to get it to work .... but your response confirms that this is the correct approach.
I'll keep playing around with it ..... thank you!
jeff
-
3. Re: visibility of META-INF/* in modules ?
ctomc Jul 8, 2012 11:48 AM (in response to jbride)Hi,
show us your config/structure/idea you have so far so we can help you out better..
--
tomaz
-
4. Re: visibility of META-INF/* in modules ?
jbride Jul 8, 2012 4:09 PM (in response to ctomc)Hi Tomaz ... i've tried a few different combinations but no luck thus far.
here is a snippet that defines my "org.jbpm" module :
<module xmlns="urn:jboss:module:1.1" name="org.jbpm">
<resources>
<resource-root path="jbpm-bam-5.4.0-SNAPSHOT.jar"/>
<resource-root path="jbpm-bpmn2-5.4.0-SNAPSHOT.jar"/>
<resource-root path="jbpm-flow-5.4.0-SNAPSHOT.jar"/>
<resource-root path="jbpm-flow-builder-5.4.0-SNAPSHOT.jar"/>
<resource-root path="jbpm-gwt-shared-5.4.0-SNAPSHOT.jar"/>
<resource-root path="jbpm-persistence-jpa-5.4.0-SNAPSHOT.jar"/>
<resource-root path="jbpm-workitems-5.4.0-SNAPSHOT.jar"/>
<resource-root path="jbpm-human-task-core-5.4.0-SNAPSHOT.jar"/>
</resources >
<dependencies>
<module name="org.drools" export="true" />
<module name="org.jbpm.configuration" export="true" />
</dependencies>
</module>
jbpm-human-task-core-5.4.0-SNAPSHOT.jar contains META-INF/Taskorm.xml
here is a snippet of the jboss-deployment-structure.xml for my EJB that depends on "org.jbpm" :
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<module name="org.jboss.processFlow" />
<module name="org.jbpm">
<imports>
<include path="META-INF/*.xml"/>
<include path="META-INF/*.conf"/>
</imports>
</module>
</dependencies>
</deployment>
</jboss-deployment-structure>
thank you Tomaz. Anything look like it might be a problem ?
jeff
-
5. Re: visibility of META-INF/* in modules ?
ctomc Jul 8, 2012 4:51 PM (in response to jbride)Hi,
that looks totaly as it should
it think you might have problem somewhere else.
Maybe something else is not loading properly, or Taskorm needs some other classpath dependancies...
try enabling trace logging for "org.jboss.modules" it might help you find missing peace.
--
tomaz
-
6. Re: visibility of META-INF/* in modules ?
mkilic Apr 21, 2013 2:47 PM (in response to jbride)Hi Jeff,
Have you found a solution to your problem? I just bumped into this problem yesterday as well and found your thread while searching. I am trying to put JBPM libraries in a common location (either as a module or separate app) that other web apps would depend on, but I am also seeing very similar messages:
6:39:10,864 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-4) HHH000360: Unable to resolve mapping file [META-INF/JBPMorm-JPA2.xml]
16:39:10,865 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-4) HHH000360: Unable to resolve mapping file [META-INF/ProcessInstanceInfoMapping-JPA2.xml]
16:39:10,866 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-4) HHH000360: Unable to resolve mapping file [META-INF/ExtraIndexes.hbm.xml]
These are in the jbpm-persistence-jpa-5.4.0.Final.jar library and I able to see them:
jar tvf jbpm-persistence-jpa-5.4.0.Final.jar
0 Mon Nov 12 16:53:30 EST 2012 META-INF/
409 Mon Nov 12 16:53:28 EST 2012 META-INF/MANIFEST.MF
0 Mon Nov 12 16:53:26 EST 2012 org/
0 Mon Nov 12 16:53:26 EST 2012 org/jbpm/
0 Mon Nov 12 16:53:26 EST 2012 org/jbpm/persistence/
0 Mon Nov 12 16:53:26 EST 2012 org/jbpm/persistence/jta/
0 Mon Nov 12 16:53:26 EST 2012 org/jbpm/persistence/processinstance/
1504 Mon Nov 12 16:53:26 EST 2012 META-INF/ProcessInstanceInfo.hbm.xml
622 Mon Nov 12 16:53:26 EST 2012 META-INF/JBPMorm.xml
622 Mon Nov 12 16:53:26 EST 2012 META-INF/JBPMorm-JPA2.xml
1849 Mon Nov 12 16:53:26 EST 2012 META-INF/ProcessInstanceInfoMapping-JPA2.xml
878 Mon Nov 12 16:53:26 EST 2012 META-INF/ExtraIndexes.hbm.xml
Thanks,
Murat
-
7. Re: visibility of META-INF/* in modules ?
evanknowles Mar 31, 2014 4:38 AM (in response to mkilic)I'm having exactly this issue as well, although this is the only place I've found it referred to. In my case,
10:34:35,332 INFO [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 565) HHH000360: Unable to resolve
mapping file [META-INF/JBPMorm.xml]
10:34:35,332 INFO [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 565) HHH000360: Unable to resolve
mapping file [META-INF/Taskorm.xml]
Anyone been able to work this out? I tried adding the import for the meta-inf, but no success. Does anyone know where we could download the various modules for jbpm?