4 Replies Latest reply on Aug 28, 2013 8:31 AM by Anders Welen

    JNDI naming issue

    Administrator Administrator Novice

      I'm migrating an application to JBOSS7 and as you can see in the log below, the ServerMessageService is ok but I’ve still error which says “: javax.naming.NameNotFoundException: 2-bpm2-server/ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService”

       

      19:17:07,597 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named ServerMessageService in deployment unit subdeployment "2-bpm2-server.jar" of deployment "bpm2.ear" are as follows:

       

             java:global/bpm2/2-bpm2-server/ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService

             java:app/2-bpm2-server/ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService

             java:module/ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService

             java:global/bpm2/2-bpm2-server/ServerMessageService

             java:app/2-bpm2-server/ServerMessageService

             java:module/ServerMessageService

       

      19:17:08,388 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."bpm2.ear"."2-bpm2-server.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."bpm2.ear"."2-bpm2-server.jar".INSTALL: Failed to process phase INSTALL of subdeployment "2-bpm2-server.jar" of deployment "bpm2.ear"

             at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

             at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

             at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

             at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

             at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to install management resources for org.jboss.as.ee.component.ComponentConfiguration[name= Bpm1Topic1Bean class=com.tt.airman.bpm2.server.mdb.Bpm1Topic1Bean]

             at org.jboss.as.ejb3.deployment.processors.EjbManagementDeploymentUnitProcessor.deploy(EjbManagementDeploymentUnitProcessor.java:79)

             at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

             ... 5 more

      Caused by: org.jboss.as.controller.PathElement$OperationClientIllegalArgumentException: JBAS014719: Invalid value specification  Bpm1Topic1Bean

             at org.jboss.as.controller.PathElement.<init>(PathElement.java:91)

             at org.jboss.as.controller.PathElement.pathElement(PathElement.java:70)

             at org.jboss.as.ejb3.deployment.processors.EjbManagementDeploymentUnitProcessor.getComponentAddress(EjbManagementDeploymentUnitProcessor.java:124)

             at org.jboss.as.ejb3.deployment.processors.EjbManagementDeploymentUnitProcessor.installManagementResource(EjbManagementDeploymentUnitProcessor.java:104)

             at org.jboss.as.ejb3.deployment.processors.EjbManagementDeploymentUnitProcessor.deploy(EjbManagementDeploymentUnitProcessor.java:76)

             ... 6 more

      19:17:09,261 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-8) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsMessageService': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: 2-bpm2-server/ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService -- service jboss.naming.context.java.app.bpm2.2-bpm2-server."ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService"

             at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:546) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [spring-web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [spring-web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

             at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

             at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

             at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

             at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

             at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

             at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

      Caused by: javax.naming.NameNotFoundException: 2-bpm2-server/ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService -- service jboss.naming.context.java.app.bpm2.2-bpm2-server."ServerMessageService!com.tt.airman.bpm2.shared.service.IServerMessageService"

             at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

             at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)

             at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:123)

             at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)

             at javax.naming.InitialContext.lookup(InitialContext.java:392) [rt.jar:1.6.0_26]

             at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.refreshHome(AbstractSlsbInvokerInterceptor.java:122) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.afterPropertiesSet(AbstractSlsbInvokerInterceptor.java:109) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean.afterPropertiesSet(LocalStatelessSessionProxyFactoryBean.java:86) [spring-context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) [spring-beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

             ... 20 more