[jboss-user] [Installation, Configuration & DEPLOYMENT] - Multiple EAR deployment not working as documented (at all !)
do-not-reply at jboss.com
Mon Apr 6 13:08:17 EDT 2009
I have 2 EARs that I wish to deploy in the same JBoss configuration. The EARs have identical contents except for the conf/log4j.xml file, the MySQL datasource file, and the META-INF/jboss-app.xml file. One of the files in each of the EARs is a JAR file (config.jar) containing POJOs and EJBs. config.jar is in the root level of the EARs.
When I deploy the EARs I get the error:
anonymous wrote :
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:module=config.jar,uid=31702491,service=EjbModule
| State: FAILED
| Reason: javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/CustBean,service=EJB already registered.
This article http://www.jboss.org/community/docs/DOC-9288 and others I have found led me to make the changes:
| myear1.ear: META-INF/jboss-app.xml
| myear2.ear: META-INF/jboss-app.xml
Section 126.96.36.199.2 of the documentation found here http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch2.chapter.html confirms what I have done is correct.
In default/deploy, my ear-deployer.xml has the contents:
| <mbean code="org.jboss.deployment.EARDeployer"
| <attribute name="Isolated">true</attribute>
| <attribute name="CallByValue">false</attribute>
The EARs have identical META-INF/application.xml files with contents:
I want only one code base, and so having different JNDI names for my beans in each copy of config.jar is not something I want to do. The articles I have read suggest that what I want to do is possible, but I am clearly missing something. Any help therefore greatly appreciated!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223759#4223759
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223759
More information about the jboss-user