1 Reply Latest reply: Jul 10, 2013 6:06 AM by Vijaya Moderator -Oracle RSS

    Caused By: javax.naming.NameNotFoundException:

    Ramprakash Arun

      Hi,

       

      While doing practice with MedRec Application, am facing this issue.

       

      Caused By: javax.naming.NameNotFoundException: While trying to lookup 'com.oracle.medrec.jms.PatientNotificationQueue' didn't find subcontext 'oracle'. Resolved 'com'; remaining name 'oracle/medrec/jms/PatientNotificationQueue'

       

      MedRec application deployed after creating jdbc for Derby and app deployed in MedRecSvr1 managed server only. Application went to Prepared state.

       

      Details:

      Weblogic 10.3.6

      OS: linux

      Jvm: JRocket

      DB: Derby

       

      MedRecSvr1.log as shown below,

      ####<Jul 1, 2013 1:58:49 AM IST> <Info> <Deployer> <ram> <MedRecSvr1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1372624129846> <BEA-149059> <Module medrec.war of application medrec is transitioning from STATE_ADMIN to STATE_PREPARED on server MedRecSvr1.>

      ####<Jul 1, 2013 1:58:49 AM IST> <Info> <ServletContext-/medrec> <ram> <MedRecSvr1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <aaa1e3e54fdb4a71:-1ab34ec4:13f96a7d7e2:-8000-000000000000131f> <1372624129882> <BEA-000000> <Closing Spring root WebApplicationContext>

      ####<Jul 1, 2013 1:58:49 AM IST> <Info> <Deployer> <ram> <MedRecSvr1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <aaa1e3e54fdb4a71:-1ab34ec4:13f96a7d7e2:-8000-000000000000131f> <1372624129920> <BEA-149060> <Module medrec.war of application medrec successfully transitioned from STATE_ADMIN to STATE_PREPARED on server MedRecSvr1.>

      ####<Jul 1, 2013 1:58:49 AM IST> <Info> <Deployer> <ram> <MedRecSvr1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <aaa1e3e54fdb4a71:-1ab34ec4:13f96a7d7e2:-8000-000000000000131f> <1372624129934> <BEA-149059> <Module medrec.war of application medrec is transitioning from STATE_PREPARED to STATE_NEW on server MedRecSvr1.>

      ####<Jul 1, 2013 1:58:49 AM IST> <Info> <Deployer> <ram> <MedRecSvr1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <aaa1e3e54fdb4a71:-1ab34ec4:13f96a7d7e2:-8000-000000000000131f> <1372624129934> <BEA-149060> <Module medrec.war of application medrec successfully transitioned from STATE_PREPARED to STATE_NEW on server MedRecSvr1.>

      ####<Jul 1, 2013 1:58:50 AM IST> <Error> <Deployer> <ram> <MedRecSvr1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <aaa1e3e54fdb4a71:-1ab34ec4:13f96a7d7e2:-8000-000000000000131f> <1372624130238> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1372624110389' for task '0'. Error is: 'weblogic.application.ModuleException: '

      weblogic.application.ModuleException:

          at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)

          at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)

          at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

          at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

          at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)

          at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)

          at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

          at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

          at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)

          at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:672)

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

          at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)

          at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)

          at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)

          at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)

          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)

          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)

          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)

          at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)

          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)

          at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)

          at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)

          at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)

          at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)

          at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

          at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      Caused By: javax.naming.NameNotFoundException: While trying to lookup 'com.oracle.medrec.jms.PatientNotificationQueue' didn't find subcontext 'oracle'. Resolved 'com'; remaining name 'oracle/medrec/jms/PatientNotificationQueue'

          at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)

          at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)

          at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)

          at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)

          at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)

          at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)

          at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:412)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)

          at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)

          at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)

          at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)

          at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:104)

          at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)

          at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)

          at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

          at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)

          at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

          at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

          at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

          at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

          at com.oracle.weblogic.wsee.wrapper.org.springframework.web.context.ContextLoaderListener.contextInitialized(Unknown Source)

          at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)

          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

          at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)

          at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1868)

          at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)

          at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)

          at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)

          at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

          at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

          at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)

          at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)

          at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

          at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

          at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)

          at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

          at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)

          at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)

          at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)

          at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)

          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)

          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)

          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)

          at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)

          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)

          at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)

          at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)

          at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)

          at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)

          at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

          at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      >

      ####<Jul 1, 2013 1:58:50 AM IST> <Error> <Deployer> <ram> <MedRecSvr1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <aaa1e3e54fdb4a71:-1ab34ec4:13f96a7d7e2:-8000-000000000000131f> <1372624130485> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application 'medrec'.>

       

      Thanks in Advacne !

       

      Regards,

      Ramprakash Arun