Announcement Announcement Module
Collapse
No announcement yet.
jboss startup issue with new spring version Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jboss startup issue with new spring version

    I have a very strange problem, every since we upgraded our spring.jar from 1.2.1 to 1.2.3 I cannot start my j2ee application in jboss anymore.

    I think I tracked it to the following.
    - First set of EJB's get deployed
    (first ejb-jar file)
    - mbean service of the same jar file get started
    during that the ContextSingletonBeanFactoryLocator is used to load a small beanFactory that only contains a PlatformTransactionManager.

    After any other j2ee module fails with the following exception:

    13:17:13,949 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=ejb/template/ftitemplate,service=EJB
    javax.naming.NameAlreadyBoundException; remaining name 'env'
    at org.jnp.server.NamingServer.createSubcontext(Namin gServer.java:447)
    at org.jnp.interfaces.NamingContext.createSubcontext( NamingContext.java:927)
    at org.jnp.interfaces.NamingContext.createSubcontext( NamingContext.java:909)
    at org.jboss.ejb.Container.setupEnvironment(Container .java:980)
    at org.jboss.ejb.Container.startService(Container.jav a:744)
    at org.jboss.ejb.SessionContainer.startService(Sessio nContainer.java:381)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:267)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:217)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:950)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:436)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy76.start(Unknown Source)
    at org.jboss.ejb.EjbModule.startService(EjbModule.jav a:395)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:267)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:217)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:950)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:436)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy23.start(Unknown Source)
    at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:6 16)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:118)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 27)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke (DynamicInterceptor.java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy24.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:973)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:963)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:774)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:737)
    at sun.reflect.GeneratedMethodAccessor19.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:118)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 27)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy55.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner. deploy(URLDeploymentScanner.java:325)
    at org.jboss.ha.framework.server.FarmMemberService.de ploy(FarmMemberService.java:350)
    at org.jboss.deployment.scanner.URLDeploymentScanner. scan(URLDeploymentScanner.java:501)
    at org.jboss.deployment.scanner.AbstractDeploymentSca nner$ScannerThread.doScan(AbstractDeploymentScanne r.java:204)
    at org.jboss.ha.framework.server.FarmMemberService.st artService(FarmMemberService.java:154)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:267)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:217)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:950)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:436)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer .java:273)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:973)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:963)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:774)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:737)
    at sun.reflect.GeneratedMethodAccessor19.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:118)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 27)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner. deploy(URLDeploymentScanner.java:325)
    at org.jboss.deployment.scanner.URLDeploymentScanner. scan(URLDeploymentScanner.java:501)
    at org.jboss.deployment.scanner.AbstractDeploymentSca nner$ScannerThread.doScan(AbstractDeploymentScanne r.java:204)
    at org.jboss.deployment.scanner.AbstractDeploymentSca nner.startService(AbstractDeploymentScanner.java:2 77)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:267)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:217)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:950)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:436)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer .java:273)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:973)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:774)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:737)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:721)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:118)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 27)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:245)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerI mpl.java:434)
    at org.jboss.system.server.ServerImpl.start(ServerImp l.java:315)
    at org.jboss.Main.boot(Main.java:195)
    at org.jboss.Main$1.run(Main.java:463)
    at java.lang.Thread.run(Thread.java:595)
    13:17:13,952 INFO [EJBDeployer] Deployed: file:/local/wdorning/jboss-4.0.3RC1/server/node-1/tmp/deploy/tmp12425goldensource.app.ear-contents/goldenso
    urce.translation-ejb.jar

    --- MBeans waiting for other MBeans ---
    ObjectName: jboss.j2ee:jndiName=ejb/template/ftitemplate,service=EJB
    State: FAILED
    Reason: javax.naming.NameAlreadyBoundException; remaining name 'env'

    ObjectName: jboss.web.deployment:war=logweb.war,id=-1849767454
    State: FAILED
    Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException; remaining name '
    env')

    If I switch back to 1.2.1 the error is gone.
    I have no clue how spring can cause such an error but it obviously seems to be the trigger. We switched back to 1.2.1 for now, but we would like to use the newer version eventually.

    BTW I tried 1.2.4, same thing.

  • #2
    I guess you should look at the changelog and look for JNDI changes - probably the way the environment is searched has changed:
    javax.naming.NameAlreadyBoundException; remaining name 'env'

    Comment


    • #3
      I did and could not make out any didn't see any reported change that could be responsible.

      The thing is even if spring searches in JNDI, that should not influence jboss on setting up the environments for its EJB's

      Comment


      • #4
        Try changing the JNDI location and use different path/names.

        Comment


        • #5
          Same Problem

          I'm experiencing the same problem as the original post. I have tracked it down to something that changed in Spring 1.2.2. Spring 1.2.1 works fine, but Spring 1.2.2 and later experience the problem in the original post.

          Has anybody come up with a solution yet?

          Comment


          • #6
            I suggest you try the latest version of Spring and if the bugs is still there raise an issue on JIRA. Thank you.

            Comment

            Working...
            X