-
Bug
-
Resolution: Obsolete
-
Major
-
EAP 5.0.0
-
None
-
-
Workaround Exists
-
-
NEW
In EAP 5.0.0, When two SAR files are deployed in the same JBoss EAPinstance, then we get "javax.naming.NameAlreadyBoundException: classPathEntries" at the time of second SAR file deployment, If both the Jars contains the same Jar file which has META-INF/MANIFEST.MF file with "Main-Class" attribute.
If we try to deploy these SAR files then we get following exception as soon as the second SAR deployment begins:
09:46:54,656 ERROR [Ejb3ClientDeployer] Could not deploy vfszip:/home/someuser/jboss-eap-5.0.0/jboss-as/server/default_profile/deploy/SimpleSarTwo.sar/commonUtil.jar/
javax.naming.NameAlreadyBoundException: classPathEntries
at org.jnp.server.NamingServer.bind(NamingServer.java:209)
at org.jnp.server.NamingServer.bind(NamingServer.java:167)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:650)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:611)
at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:150)
at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:61)
at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
***NOTE*** The same SAR files gets deployed successfully on JBoss EAP 4.3.
And there is a difference in the "Ejb3ClientDeployer.java" API of JBoss in both the versions which seems to be causing the issue:
JBOss EAP4.3 :
http://anonsvn.jboss.org/repos/jbossas/tags/JBPAPP_4_3_0_GA_CP08/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3ClientDeployer.java
JBoss EAP 5.0.0 :
http://anonsvn.jboss.org/repos/jbossas/tags/JBPAPP_5_0_0_GA/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3ClientDeployer.java