-
1. Re: JBOSS 5.1: ignore persistence.xml in jar file
alesj May 26, 2011 8:54 AM (in response to zsv)Make sure the right "ignore" deployer is present.
And then the jboss-ignore.txt should be placed into core.jar/META-INF/.
Or you could move core.jar to .ear/lib -- since it's only a lib now, not a real EE sub-deployment,
and have it excluded from .ear/META-INF/jboss-ignore.txt.
-
2. Re: JBOSS 5.1: ignore persistence.xml in jar file
zsv May 26, 2011 10:30 AM (in response to alesj)Ales Justin wrote:
Make sure the right "ignore" deployer is present.
How can I do this?
I added jboss-ignore.txt to core.jar/META-INF/ with following content:
core.jar/META-INF/persistence.xml
Nothing changed.
-
3. Re: JBOSS 5.1: ignore persistence.xml in jar file
alesj May 26, 2011 11:10 AM (in response to zsv)Make sure the right "ignore" deployer is present.
How can I do this?
An AbstractIgnoreDeployer should be present in deployers.xml.
I added jboss-ignore.txt to core.jar/META-INF/ with following content:
core.jar/META-INF/persistence.xml
Nothing changed.
It should be w/o core.jar/, since it's relative to that (sub)deployment.
-
4. Re: JBOSS 5.1: ignore persistence.xml in jar file
zsv May 26, 2011 2:17 PM (in response to alesj)Ales Justin wrote:
Make sure the right "ignore" deployer is present.
How can I do this?
An AbstractIgnoreDeployer should be present in deployers.xml.
In conf/bootstrap/deployes.xml there is no such deployer.
-
5. Re: JBOSS 5.1: ignore persistence.xml in jar file
alesj May 30, 2011 9:41 AM (in response to zsv)Make sure the right "ignore" deployer is present.
How can I do this?
An AbstractIgnoreDeployer should be present in deployers.xml.
In conf/bootstrap/deployes.xml there is no such deployer.
You need to add this deployer:
-
6. Re: JBOSS 5.1: ignore persistence.xml in jar file
akrambenaissi Nov 23, 2011 7:27 PM (in response to alesj)Justin,
the AbstractIgnoreFilesDeployer does not seem to be available neither in JBoss EAP 5 nor in JBoss AS 5 distribution.
Can you confirm that?
I extracted the vfs jar and it does not contain such a class.
Moreover, when trying to add this deployer, I got a class not found exception and AS does not start anymore.
Greetings
-
7. Re: JBOSS 5.1: ignore persistence.xml in jar file
alesj Nov 24, 2011 9:43 AM (in response to akrambenaissi)The class is in deployers project / jar -- as seen from the link.
It's just a matter of AS using at least 2.0.10. Deployers version.
-
8. Re: JBOSS 5.1: ignore persistence.xml in jar file
akrambenaissi Nov 24, 2011 2:48 PM (in response to alesj)Ales,
so, short answer is "AbstractIgnoreFilesDeployer is not available in JBoss AS 5.1, since JBoss AS 5.1 uses vfs-deployers-spi v 2.0.7" .
To come back to this 6 month old issue, it cannot be worked around as is with jboss-ignore.txt in JBoss AS 5.1.
I will try to use the 2.0.10 with JBoss AS 5.1 to check anyway.
Edit: I tried. It seems too complicated. I started by compiling vfs-deployers-spi 2.0.10 and installed in. It then required jboss-deployers-spi, which I installed, but still other classes missing then.
So making jboss-ignore.txt on AS 5.1 is not that easy.
-
9. Re: JBOSS 5.1: ignore persistence.xml in jar file
alesj Nov 25, 2011 5:19 AM (in response to akrambenaissi)What about if you just copy pasted the ignore logic from 2.0.10?
(and then add those new deployers as separate custom jar)
I can see that replacing just vfs-deployers-spi might not be enough.
But what about if you change all deployers-* jars?