[Installation, Configuration & DEPLOYMENT] - Re: [Help] Resources In Jars in Deployment EAR
by Mazinger
This is JBoss 4.0.5
The CatalogManager.properties is being loaded via an encapsulation of the Apache Commons Configuration API. Within the same jar file that contains the various properties files, we store a common-config.xml file that is read in through a .class.getResource("common-config.xml") call. This contains an XML listing of what properties to load.
I am unfortunately unable to post the output of my EAR to this website, as the information about my software is propietary... In my quoted post, I changed the names of the files in order to mask the product. What were you looking for specifically? I don't think I could post the contents of our EAR without permission. Below is the application.xml for the EAR.
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
| <application>
| <display-name>ecore-ear</display-name>
| <module>
| <ejb>eebs-ejb-jar-5.1.0.0.jar</ejb>
| </module>
| <module>
| <ejb>adf-ejb-jar-5.1.0.0.jar</ejb>
| </module>
| <module>
| <ejb>tolec-ejb-jar-5.1.0.0.jar</ejb>
| </module>
| <module>
| <ejb>ecore-ejb-jar-5.1.0.0.jar</ejb>
| </module>
| <module>
| <web>
| <web-uri>license.war</web-uri>
| <context-root>/license</context-root>
| </web>
| </module>
| <module>
| <web>
| <web-uri>diagnostic.war</web-uri>
| <context-root>/diagnostic</context-root>
| </web>
| </module>
| <module>
| <web>
| <web-uri>generic.war</web-uri>
| <context-root>/ecore</context-root>
| </web>
| </module>
| <module>
| <web>
| <web-uri>smartsign.war</web-uri>
| <context-root>/smartsign</context-root>
| </web>
| </module>
| <module>
| <web>
| <web-uri>smartsigndemo.war</web-uri>
| <context-root>/smartsigndemo</context-root>
| </web>
| </module>
| <module>
| <web>
| <web-uri>tolec.war</web-uri>
| <context-root>/tolec</context-root>
| </web>
| </module>
| <module>
| <web>
| <web-uri>commandcenter.war</web-uri>
| <context-root>/</context-root>
| </web>
| </module>
| <module id="custom-app-dealertrack">
| <web>
| <web-uri>dealertrack.war</web-uri>
| <context-root>/dealertrack</context-root>
| </web>
| </module>
| <security-role id="SecurityRole_1">
| <role-name>authority-administrator</role-name>
| </security-role>
| <security-role id="SecurityRole_2">
| <role-name>eebsInternalJMSAccess</role-name>
| </security-role>
| <security-role id="SecurityRole_3">
| <role-name>eebsTopicListener</role-name>
| </security-role>
| </application>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134331#4134331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134331
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - [4.2.2] NameAlreadyBoundException on deploy when binding Use
by mturner24
Hi !
Server configuration:
jBoss 4.2.2 GA
I have an EAR with 2 EJB3 jars and 3 WARs.
When Jboss starts and try to deploy the third war, I get this exception :
anonymous wrote :
| org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| [...]
| Caused by: javax.naming.NameAlreadyBoundException
| at org.jnp.server.NamingServer.bind(NamingServer.java:144)
| at org.jnp.interfaces.NamingContext.bind(NamingContext.java:591)
| at org.jnp.interfaces.NamingContext.bind(NamingContext.java:552)
| at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:495)
| at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:878)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:159)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
This happens on the 3rd war only, If I change the order of the wars deployed, it does only fail on the 3rd one. No matter which war it is.
If I deploy only 2 wars it works perfectly for any combination of the 2. ???
Before all 3 wars used to deploy good when my EAR consisted of: 3 WARs and 2 EJB JAR ( but only one EJB3, the other one EJB2.1), Just recently I converted the other EJB jar to EJB3. Sinc ethen I can't deploy any 3rd WAR in my EAR.
Any idea of what could be causing a problem. I see in the logs that the binding of UserTransaction is done succesfully multiple times for all the other deployment (mines and jboss's one)
Thank you in advance !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134302#4134302
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134302
18 years, 1 month