5 Replies Latest reply on Jan 6, 2011 9:28 AM by 829005

    EJB CREATION FAILED

    praveenap-790230
      Hey guys I am trying to port a application that used to run on Weblogic8.1 to weblogic 10.3.

      I get the following error in the log files.

      The java.naming.provider.url was t3://localhost:7021 earlier. I got a similar error so I changed it to t3://localhost:7001. I still get the same error.

      Says EJB CREATION FAILED.

      Please help me.



      Some additional information:
      Application used to run on Weblogic8.1 in the past.
      I have two domins in the setup





      environment:{java.naming.provider.url=t3://localhost:7001, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, java.naming.referral=throw}
      CLASS :class com.drapl.ds.adapter.MqToIvrsAdapter_3l1x87_Impl
      TRANSACTION :null
      EJB CREATION FAILED
      javax.naming.NameNotFoundException: Unable to resolve 'com.drapl.bivr.cf.MQConnectionFactory'. Resolved 'com.drapl.bivr.cf'; remaining name 'MQConnectionFactory'
           at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
           at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
           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.BasicNamingNode.lookup(BasicNamingNode.java:214)
           at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
           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:380)
           at javax.naming.InitialContext.lookup(InitialContext.java:392)
           at com.drapl.bivr.ds.adapter.AbstractMQAdapter.getQueueReceiver(AbstractMQAdapter.java:257)
           at com.drapl.bivr.ds.adapter.AbstractMQAdapter.getQueueReceiver(AbstractMQAdapter.java:228)
           at com.drapl.bivr.ds.adapter.AbstractMQAdapter.start(AbstractMQAdapter.java:130)
           at com.drapl.bivr.ds.adapter.AbstractMQAdapter.ejbCreate(AbstractMQAdapter.java:69)
           at com.drapl.bivr.ds.adapter.MqToIvrsAdapter_3l1x87_Impl.ejbCreate(MqToIvrsAdapter_3l1x87_Impl.java:162)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:205)
           at weblogic.ejb.container.pool.Pool.createInitialBeans(Pool.java:300)
           at weblogic.ejb.container.manager.StatelessManager.initializePool(StatelessManager.java:444)
           at weblogic.ejb.container.deployer.EJBDeployer.initializePools(EJBDeployer.java:1546)
           at weblogic.ejb.container.deployer.EJBDeployer.start(EJBDeployer.java:1377)
           at weblogic.ejb.container.deployer.EJBModule.start(EJBModule.java:589)
           at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
           at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
           at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
           at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
           at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
           at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
           at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
           at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
           at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
           at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
           at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
           at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
           at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
           at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
           at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
           at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
           at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
        • 1. Re: EJB CREATION FAILED
          René van Wijk
          Looks like you have connected succesfully to the server. The problem
          is the jndi name you provide to look up the resource. It is saying
          it has succesfully resolved com.drapl.bivr.cf but the name MQConnectionFactory
          is not found in the JNDI environment.

          Maybe the connection factory MQConnectionFactory is not yet created or you
          have misspelled the name when you created it - Check the JNDI name
          you have provided when you created the resource.
          • 2. Re: EJB CREATION FAILED
            praveenap-790230
            Just wanted to know what does the following denote:

            java.naming.provider.url=t3://localhost:7021


            is port 7021 a standard port where ejbs are available for lookup?

            Actually the original error was:

            environment:{java.naming.provider.url=t3://localhost:7021, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, java.naming.referral=throw}
            CLASS :class com.drapl.bqp.ds.adapter.qpsToMqAdapter_f6cp6x_Impl
            TRANSACTION :null
            EJB CREATION FAILED
            javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7021: Destination unreachable; nested exception is:   
                java.net.ConnectException: Connection refused: connect; No available router to destination]
            at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
            at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
            at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:367)
            at weblogic.jndi.Environment.getContext(Environment.java:315)
            at weblogic.jndi.Environment.getContext(Environment.java:285)
            at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at com.drapl.bqp.ds.adapter.AbstractMQAdapter.getInitialContext(AbstractMQAdapter.java:314)
            at com.drapl.bqp.ds.adapter.AbstractMQAdapter.getQueueReceiver(AbstractMQAdapter.java:256)
            at com.drapl.bqp.ds.adapter.AbstractMQAdapter.getQueueReceiver(AbstractMQAdapter.java:228)
            at com.drapl.bqp.ds.adapter.AbstractMQAdapter.start(AbstractMQAdapter.java:130)
            at com.drapl.bqp.ds.adapter.AbstractMQAdapter.ejbCreate(AbstractMQAdapter.java:69)
            at com.drapl.bqp.ds.adapter.qpsToMqAdapter_f6cp6x_Impl.ejbCreate(qpsToMqAdapter_f6cp6x_Impl.java:162)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:205)
            at weblogic.ejb.container.pool.Pool.createInitialBeans(Pool.java:300)
            at weblogic.ejb.container.manager.StatelessManager.initializePool(StatelessManager.java:444)
            at weblogic.ejb.container.deployer.EJBDeployer.initializePools(EJBDeployer.java:1546)
            at weblogic.ejb.container.deployer.EJBDeployer.start(EJBDeployer.java:1377)
            at weblogic.ejb.container.deployer.EJBModule.start(EJBModule.java:589)
            at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
            at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
            at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
            at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
            at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
            at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
            at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
            at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
            at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
            at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
            at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
            at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
            at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
            at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
            at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
            at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
            at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
            at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
            at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
            Caused by: java.net.ConnectException: t3://localhost:7021: Destination unreachable; nested exception is:
            java.net.ConnectException: Connection refused: connect; No available router to destination
            at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:203)
            at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
            at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:352)
            ... 47 more
            Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
            java.net.ConnectException: Connection refused: connect; No available router to destination
            at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
            at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
            at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
            at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
            at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
            at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
            ... 49 more
            environment:{java.naming.provider.url=t3://localhost:7021, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, java.naming.referral=throw}
            CLASS :class com.drapl.bqp.ds.adapter.qpsToMqAdapter_f6cp6x_Impl
            TRANSACTION :null
            EJB CREATION FAILED
            javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7021: Destination unreachable; nested exception is:
                 java.net.ConnectException: Connection refused: connect; No available router to destination]
                 at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
                 at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
                 at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:367)
                 at weblogic.jndi.Environment.getContext(Environment.java:315)
                 at weblogic.jndi.Environment.getContext(Environment.java:285)
                 at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
                 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
                 at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
                 at javax.naming.InitialContext.init(InitialContext.java:223)
                 at javax.naming.InitialContext.<init>(InitialContext.java:197)
                 at com.drapl.bqp.ds.adapter.AbstractMQAdapter.getInitialContext(AbstractMQAdapter.java:314)
                 at com.drapl.bqp.ds.adapter.AbstractMQAdapter.getQueueReceiver(AbstractMQAdapter.java:256)
                 at com.drapl.bqp.ds.adapter.AbstractMQAdapter.getQueueReceiver(AbstractMQAdapter.java:228)
                 at com.drapl.bqp.ds.adapter.AbstractMQAdapter.start(AbstractMQAdapter.java:130)
                 at com.drapl.bqp.ds.adapter.AbstractMQAdapter.ejbCreate(AbstractMQAdapter.java:69)
                 at com.drapl.bqp.ds.adapter.qpsToMqAdapter_f6cp6x_Impl.ejbCreate(qpsToMqAdapter_f6cp6x_Impl.java:162)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:205)
                 at weblogic.ejb.container.pool.Pool.createInitialBeans(Pool.java:300)
                 at weblogic.ejb.container.manager.StatelessManager.initializePool(StatelessManager.java:444)
                 at weblogic.ejb.container.deployer.EJBDeployer.initializePools(EJBDeployer.java:1546)
                 at weblogic.ejb.container.deployer.EJBDeployer.start(EJBDeployer.java:1377)
                 at weblogic.ejb.container.deployer.EJBModule.start(EJBModule.java:589)
                 at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
                 at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
                 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                 at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
                 at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
                 at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
                 at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
                 at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
                 at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
                 at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
                 at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
                 at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
                 at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
                 at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
                 at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
                 at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
                 at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
                 at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
                 at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
                 at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
                 at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
                 at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
                 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                 at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
            Caused by: java.net.ConnectException: t3://localhost:7021: Destination unreachable; nested exception is:
                 java.net.ConnectException: Connection refused: connect; No available router to destination
                 at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:203)
                 at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
                 at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:352)
                 ... 47 more
            Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
                 java.net.ConnectException: Connection refused: connect; No available router to destination
                 at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
                 at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
                 at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
                 at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
                 at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
                 at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
                 ... 49 more




            h2.I tried searching for the port 7021 in the code and in the server config files and could not find it anywhere so I changed it to 7001 and then I get the error that i have posted in the first post.h2.
            • 3. Re: EJB CREATION FAILED
              René van Wijk
              t3 is the protocol to be used to communicate with your WebLogic server.
              localhost is the hostname on which the WebLogic server runs.
              7001 or 7021 is the port on which the WebLogic server listens for incoming requests.

              So if you provided a connection string make sure the server is running and listening on the
              information you provided: t3://<host-name-or-IP-address-where-weblogic-is-running>:<port-number>

              The default port of the adminserver is 7001 (this is not shown in the config.xml file). When you changed
              the portnumber the following should be present in the config.xml file: <listen-port>portnumber</listen-port>
              • 4. Re: EJB CREATION FAILED
                praveenap-790230
                René is right here.

                As I've told in my previous post, it turned out to be the port that was the issue. The application used to pick port 7021 from the database.

                I changed it there to the server's port (7001 in my case) and things started working fine.

                René Thanks alot mate.

                Keep up the good work
                • 5. Re: EJB CREATION FAILED
                  829005
                  +"I changed it there to the server's port (7001 in my case) and things started working fine."+

                  Was 7001 the listener port of your domain's Admin Server, or the listener port of your domain's Managed Server which is running your application?