Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Out of Date Out of Date
    • Affects Version/s: JBossAS-4.2.3.GA
    • Fix Version/s: No Release
    • Component/s: Deployers
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      Windows XP 32 bit
      Windows 2003 Server
    • Similar Issues:
      Show 10 results 

      Description

      I have an ear file which contains ejbs and wars. It started to fail when I added sars. The problem is, it doesn't matter what wars I'm deploying, its always the second one and nothing gets deployed after this exception.

      aplication.xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID" version="5">
      <module>
      <java>OracleQueue.sar</java>
      </module>
      <module>
      <java>SONController.sar</java>
      </module>
      <module>
      <ejb>Admin.jar</ejb>
      </module>
      <module>
      <ejb>Settings.jar</ejb>
      </module>
      <module>
      <ejb>Layer3Msg.jar</ejb>
      </module>
      <module>
      <java>Layer3MsgLoader.sar</java>
      </module>
      <module>
      <ejb>Layer3MsgMdb.jar</ejb>
      </module>
      <module>
      <ejb>Common.jar</ejb>
      </module>
      <module>
      <ejb>Attributes.jar</ejb>
      </module>
      <module>
      <ejb>Data.jar</ejb>
      </module>
      <module>
      <ejb>Model.jar</ejb>
      </module>
      <module>
      <ejb>Users.jar</ejb>
      </module>
      <module>
      <ejb>Tasks.jar</ejb>
      </module>
      <module>
      <ejb>Survey.jar</ejb>
      </module>
      <module>
      <ejb>BenchmarkQpis.jar</ejb>
      </module>
      <module>
      <ejb>Cellrefutils.jar</ejb>
      </module>
      <module>
      <ejb>ConfigChanges.jar</ejb>
      </module>
      <module>
      <ejb>Engine.jar</ejb>
      </module>
      <module>
      <ejb>Events.jar</ejb>
      </module>
      <module>
      <ejb>QueryDefs.jar</ejb>
      </module>
      <module>
      <ejb>QueryData.jar</ejb>
      </module>
      <module>
      <ejb>GeoTagging.jar</ejb>
      </module>
      <module>
      <ejb>Kpievents.jar</ejb>
      </module>
      <module>
      <ejb>Modules.jar</ejb>
      </module>
      <module>
      <ejb>Network.jar</ejb>
      </module>
      <module>
      <ejb>Qpis.jar</ejb>
      </module>
      <module>
      <ejb>RadioNetworkAnalysis.jar</ejb>
      </module>
      <module>
      <ejb>VirtualEarth.jar</ejb>
      </module>
      <module>
      <ejb>WMS.jar</ejb>
      </module>
      <module>
      <ejb>ReportData.jar</ejb>
      </module>
      <module>
      <ejb>ReportsMetadata.jar</ejb>
      </module>
      <module>
      <ejb>ReportProducer.jar</ejb>
      </module>
      <module>
      <web>
      <web-uri>Quorre.war</web-uri>
      <context-root>ActixOne/Quorre</context-root>
      </web>
      </module>
      <module>
      <web>
      <web-uri>TestWar.war</web-uri>
      <context-root>TestWar</context-root>
      </web>
      </module>
      <module>
      <web>
      <web-uri>Download.war</web-uri>
      <context-root>ActixOne/Download</context-root>
      </web>
      </module>
      </application>

      Exception:

      2009-07-10 12:28:30,687 INFO [org.jboss.ejb3.EJB3Deployer] Deployed: file:/C:/jboss-4.2/server/default/tmp/deploy/tmp4660403835223254272ActixOne.ear-contents/ReportProducer.jar
      2009-07-10 12:28:30,687 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/ActixOne/Quorre, warUrl=.../tmp/deploy/tmp4660403835223254272ActixOne.ear-contents/Quorre-exp.war/
      2009-07-10 12:28:30,875 INFO [org.rhq.helpers.rtfilter.filter.RtFilter] Initialized response-time filter for webapp with context root 'ActixOne/Quorre'.
      2009-07-10 12:28:31,687 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/TestWar, warUrl=.../tmp/deploy/tmp4660403835223254272ActixOne.ear-contents/TestWar-exp.war/
      2009-07-10 12:28:31,687 WARN [org.jboss.system.ServiceController] Problem starting service jboss.web.deployment:war=TestWar.war,id=2043149425
      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(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy45.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy46.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      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(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Unknown Source)
      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)
      ... 112 more
      2009-07-10 12:28:31,718 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss-4.2/server/default/tmp/deploy/tmp4660403835223254272ActixOne.ear-contents/TestWar.war
      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(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy45.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy46.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      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(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Unknown Source)
      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)
      ... 112 more
      2009-07-10 12:28:31,718 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

      — Incompletely deployed packages —
      org.jboss.deployment.DeploymentInfo@11dba24c

      { url=file:/C:/jboss-4.2/server/default/deploy/ActixOne.ear }

      deployer: org.jboss.deployment.EARDeployer@7981d5
      status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException)
      state: FAILED
      watch: file:/C:/jboss-4.2/server/default/deploy/ActixOne.ear
      altDD: null
      lastDeployed: 1247225246750
      lastModified: 1247225222906
      mbeans:
      jboss.j2ee:ear=ActixOne.ear,jar=Admin.jar,name=Admin,service=EJB3 state: Started
      persistence.units:ear=ActixOne.ear,jar=Settings.jar,unitName=SettingsStorage state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Settings.jar,name=Settings,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Layer3Msg.jar,name=Layer3Msg,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Layer3MsgMdb.jar,name=ReportProducerMDB,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Common.jar,name=Common,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Attributes.jar,name=Attributes,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Data.jar,name=Data,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Model.jar,name=Model,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Users.jar,name=Users,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Tasks.jar,name=Tasks,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Survey.jar,name=Survey,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=BenchmarkQpis.jar,name=Benchmarkqpis,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Cellrefutils.jar,name=Cellrefutils,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=ConfigChanges.jar,name=Configchanges,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Engine.jar,name=Engine,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Events.jar,name=Events,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=QueryDefs.jar,name=QueryDefs,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=QueryData.jar,name=QueryData,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=GeoTagging.jar,name=Geotagging,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Kpievents.jar,name=Kpievents,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Modules.jar,name=Modules,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Network.jar,name=Network,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=Qpis.jar,name=Qpis,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=RadioNetworkAnalysis.jar,name=RadioNetworkAnalysis,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=VirtualEarth.jar,name=VirtualEarth,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=WMS.jar,name=Wms,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=ReportData.jar,name=ReportData,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=ReportsMetadata.jar,name=ReportsMetadata,service=EJB3 state: Started
      jboss.j2ee:ear=ActixOne.ear,jar=ReportProducer.jar,name=ReportProducerMDB,service=EJB3 state: Started

      — MBeans waiting for other MBeans —
      ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
      State: CONFIGURED
      I Depend On:
      jboss:service=TransactionManager
      jboss.jca:service=DataSourceBinding,name=DefaultDS

      ObjectName: jboss.cache:service=InvalidationBridge,type=JavaGroups
      State: CONFIGURED
      I Depend On:
      jboss:service=DefaultPartition
      jboss.cache:service=InvalidationManager

      ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=Invoker
      jboss.web:service=WebServer

      ObjectName: jboss.mq:service=StateManager
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=DefaultDS
      Depends On Me:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq:service=DestinationManager
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=MessageCache
      jboss.mq:service=PersistenceManager
      jboss.mq:service=StateManager
      jboss.mq:service=ThreadPool
      jboss:service=Naming
      Depends On Me:
      jboss.mq.destination:service=Topic,name=testTopic
      jboss.mq.destination:service=Topic,name=securedTopic
      jboss.mq.destination:service=Topic,name=testDurableTopic
      jboss.mq.destination:service=Queue,name=testQueue
      jboss.mq.destination:service=Queue,name=A
      jboss.mq.destination:service=Queue,name=B
      jboss.mq.destination:service=Queue,name=C
      jboss.mq.destination:service=Queue,name=D
      jboss.mq.destination:service=Queue,name=ex
      jboss.mq:service=SecurityManager
      jboss.mq.destination:service=Queue,name=DLQ

      ObjectName: jboss.mq:service=PersistenceManager
      State: CONFIGURED
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=DefaultDS
      Depends On Me:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Topic,name=testTopic
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager
      jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager
      jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager
      jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Queue,name=testQueue
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager
      jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Queue,name=A
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=B
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=C
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=D
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=ex
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager

      ObjectName: jboss.mq:service=Invoker
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=TracingInterceptor
      jboss:service=Naming
      Depends On Me:
      jboss.mq:service=InvocationLayer,type=HTTP
      jboss.mq:service=InvocationLayer,type=JVM
      jboss.mq:service=InvocationLayer,type=UIL2

      ObjectName: jboss.mq:service=TracingInterceptor
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=SecurityManager
      Depends On Me:
      jboss.mq:service=Invoker

      ObjectName: jboss.mq:service=SecurityManager
      State: CONFIGURED
      I Depend On:
      jboss.security:service=JaasSecurityManager
      jboss.mq:service=DestinationManager
      Depends On Me:
      jboss.mq.destination:service=Topic,name=testTopic
      jboss.mq.destination:service=Topic,name=securedTopic
      jboss.mq.destination:service=Topic,name=testDurableTopic
      jboss.mq.destination:service=Queue,name=testQueue
      jboss.mq:service=TracingInterceptor
      jboss.mq.destination:service=Queue,name=DLQ

      ObjectName: jboss.mq.destination:service=Queue,name=DLQ
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=DestinationManager
      jboss.mq:service=SecurityManager

      ObjectName: jboss.mq:service=InvocationLayer,type=JVM
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=Invoker

      ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=Invoker

      ObjectName: jboss.web.deployment:war=TestWar.war,id=2043149425
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException)

      — MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
      ObjectName: jboss.web.deployment:war=TestWar.war,id=2043149425
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException)

      ObjectName: jboss.cache:service=InvalidationManager
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.cache:service=InvalidationBridge,type=JavaGroups

      ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
      State: NOTYETINSTALLED
      Depends On Me:
      jboss:service=KeyGeneratorFactory,type=HiLo
      jboss.mq:service=StateManager
      jboss.mq:service=PersistenceManager

      *********************************************************************

      I found out that I'm not the only one with problem like that:
      http://www.techienuggets.com/Detail?tx=27457

      Regards,
      Michal Rorat

        Activity

        Hide
        Michal Rorat
        added a comment -

        I was able to drill down this issue to one of JBoss classes. I was debugging even deeper but without success...

        org.jboss.web.AbstractWebDeployer:500

        <code>
        envCtx.bind("UserTransaction", new LinkRef("UserTransaction"));
        </code>

        JBoss is binding UserTransaction, but for some reason for any module which is deployed as 34th this name is already registered in NamingServer - like I said before - even when the module is an empty jar or war.

        For now we are using workaround (really nasty one) where we are deleting everything from NamingServer each time we are deploying module. So the code loks like that:

        org.jboss.web.AbstractWebDeployer:500

        <code>
        ((NamingServer)((NamingContext)envCtx).getNaming()).deleteAllBindings();
        envCtx.bind("UserTransaction", new LinkRef("UserTransaction"));
        </code>

        and org.jnp.server.NamingServer change:

        <code>
        public void deleteAllBindings()

        { table = new Hashtable(); }

        </code>

        Maybe this will help to resolve the issue.

        Regards,
        Michal Rorat

        Show
        Michal Rorat
        added a comment - I was able to drill down this issue to one of JBoss classes. I was debugging even deeper but without success... org.jboss.web.AbstractWebDeployer:500 <code> envCtx.bind("UserTransaction", new LinkRef("UserTransaction")); </code> JBoss is binding UserTransaction, but for some reason for any module which is deployed as 34th this name is already registered in NamingServer - like I said before - even when the module is an empty jar or war. For now we are using workaround (really nasty one) where we are deleting everything from NamingServer each time we are deploying module. So the code loks like that: org.jboss.web.AbstractWebDeployer:500 <code> ((NamingServer)((NamingContext)envCtx).getNaming()).deleteAllBindings(); envCtx.bind("UserTransaction", new LinkRef("UserTransaction")); </code> and org.jnp.server.NamingServer change: <code> public void deleteAllBindings() { table = new Hashtable(); } </code> Maybe this will help to resolve the issue. Regards, Michal Rorat
        Hide
        Ales Justin
        added a comment -

        This is old 4.x JBossAS, Dimitris knows better who should deal with this.

        Show
        Ales Justin
        added a comment - This is old 4.x JBossAS, Dimitris knows better who should deal with this.
        Hide
        Marco Bazzoni
        added a comment -

        Did anybody know if this bug is also verified in JBAS5?

        Show
        Marco Bazzoni
        added a comment - Did anybody know if this bug is also verified in JBAS5?
        Hide
        Matthew Kennedy
        added a comment -

        I came across this when an MBean deployed as part of the EAR created an iBATIS SqlMapClient from a transaction manager configured to use JTA with UserTransaction. It works fine if I change it to create the SqlMapClient after the web applications deploy with the EAR.

        Show
        Matthew Kennedy
        added a comment - I came across this when an MBean deployed as part of the EAR created an iBATIS SqlMapClient from a transaction manager configured to use JTA with UserTransaction. It works fine if I change it to create the SqlMapClient after the web applications deploy with the EAR.
        Hide
        Jason Greene
        added a comment -

        Now that work is well underway with AS7, all previous community releases are end-of-lifed. So, all issues not directly assigned to an AS7 release are being closed.

        JBoss EAP is our supported enterprise version of AS, and you can file your issues against any release during its very long support window via CSP/RHN.

        If you believe your issue is still relevant to AS7 then please verify it and reopen.

        Show
        Jason Greene
        added a comment - Now that work is well underway with AS7, all previous community releases are end-of-lifed. So, all issues not directly assigned to an AS7 release are being closed. JBoss EAP is our supported enterprise version of AS, and you can file your issues against any release during its very long support window via CSP/RHN. If you believe your issue is still relevant to AS7 then please verify it and reopen.
        Hide
        Carl Heymann
        added a comment -

        I see this is a rather old issue, but I ran into this recently (on JBoss 4.2.2.GA), getting the same symptoms (second deployed war in an ear fails with NameAlreadyBoundException). I discovered that the reason was, that through including quartz as a maven dependency, I got a transitive javax.transaction:jta dependency included in the ear (also visible to the skinny war). If I exclude this, the problem disappears. So, in my case the answer was to be very careful not to let an additional jta.jar slip into the deployment. This seems to tie in with the UserTransaction binding traced in the first comment.

        Show
        Carl Heymann
        added a comment - I see this is a rather old issue, but I ran into this recently (on JBoss 4.2.2.GA), getting the same symptoms (second deployed war in an ear fails with NameAlreadyBoundException). I discovered that the reason was, that through including quartz as a maven dependency, I got a transitive javax.transaction:jta dependency included in the ear (also visible to the skinny war). If I exclude this, the problem disappears. So, in my case the answer was to be very careful not to let an additional jta.jar slip into the deployment. This seems to tie in with the UserTransaction binding traced in the first comment.

          People

          • Assignee:
            Dimitris Andreadis
            Reporter:
            Michal Rorat
          • Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: