[jboss-user] [JBoss Microcontainer] - JBoss 6.0: ignore persistence.xml in jar file

Gonne Martens do-not-reply at jboss.com
Wed Jun 22 12:32:15 EDT 2011

Gonne Martens [http://community.jboss.org/people/gonne] created the discussion

"JBoss 6.0: ignore persistence.xml in jar file"

To view the discussion, visit: http://community.jboss.org/message/611442#611442


As Sergey I want to ignore the persistence.xml in a jar lib placed in the lib folder of my ear.
I tried to use the AbstractIgnoreDeployer by placing a jboss-ignore.txt file in ear/META-INF.

Structure of my ear:

 \ lib
     \ playgroundTool.jar
*\ META-INF\persistence.xml*
     \ jboss-ignore.txt
 \ playgroundEJB.jar
     \ META-INF\persistence.xml
 \ other jars and wars 

content of jboss-ignore.txt:

Debugging of the AbstractIgnoreDeployer showed me that the jboss-ignore.txt file is parsed and creates an instance of CollectionNameIgnoreMechanism with "lib/playgroundTool.jar/META-INF/persistence.xml" as ignored path. I am not sure that this is correct, but through further debugging I could see that only the ignoreName() method is called once for the name persistence.xml of the playground.ear deployment unit (the variable ignoredNames is always null, so the method returns false). The method ignorePath is never called.

How should it work right?

Please help!

Kind regards,

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110622/a9a542b7/attachment.html 

More information about the jboss-user mailing list