3 Replies Latest reply on Mar 15, 2012 2:24 PM by René van Wijk

    Messsage Driven EJB is not getting deployed in Weblogic 12c

    923714
      Hi,

      I am getting following exception while deploying Message Driven EJB iin weblogic 12c. But same ejb.jar file works fine in Weblogic 11g
      Please let me know what may be the problem and solution for this.

      Exception:

      weblogic.application.ModuleException: Exception preparing module: EJBModule(CMJobManagerEJB.jar)

      Unable to deploy EJB: /Path_of_file/CMJobManagerEJB.jar from CMJobManagerEJB.jar:

      011113

      at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:447)
      at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
      at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
      at weblogic.application.internal.flow.ModuleStateDriver.prepare(ModuleStateDriver.java:38)
      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:139)
      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:55)
      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
      at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:61)
      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
      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: 011113 NestedException Message is :011113
      at weblogic.ejb.container.deployer.MessageDrivenBeanInfoImpl.<init>(MessageDrivenBeanInfoImpl.java:739)
      at weblogic.ejb.container.deployer.BeanInfoFactory.createBeanInfoImpl(BeanInfoFactory.java:36)
      at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:546)
      at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:242)
      at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:864)
      at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:419)
      at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
      at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
      at weblogic.application.internal.flow.ModuleStateDriver.prepare(ModuleStateDriver.java:38)
      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:139)
      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:55)
      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
      at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:61)
      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
      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)

      Thanks
      Naveen
        • 1. Re: Messsage Driven EJB is not getting deployed in Weblogic 12c
          Pierluigi Vernetto
          http://iderror.com/errors/oracle/weblogic-103/wl103-ejb/bea-011113-error-the-message-driven-bean-displayname-does-not-have-a-message-destination-configured-the-message-destination-must-be-set-using-a-message-destination-link-destination-resource/

          have you verified that the Queue/Topic is targeted to the same deployment target where you put the MDB, and is there in the JNDI tree?
          • 2. Re: Messsage Driven EJB is not getting deployed in Weblogic 12c
            923714
            Thanks for the reply,

            Yes, Queue/Topic is targeted to the same deployment target where MDB has put, I am not using annotations, instead I am using deployment descriptor to deploy the ejb.
            Following is the deployment descriptor.

            <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
            <enterprise-beans>
            <message-driven>
            <ejb-name>CMJobManager</ejb-name>
            <ejb-class>MDBClassr</ejb-class>
            <transaction-type>Bean</transaction-type>
            <message-destination-type>javax.jms.Queue</message-destination-type>
            ....
            <resource-ref>
            <res-ref-name>jdbc/catalog</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
            </resource-ref>
            </message-driven>
            </enterprise-beans>
            </ejb-jar>

            <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd">
            <weblogic-enterprise-bean>
            <ejb-name>CMJobManager</ejb-name>
            <message-driven-descriptor>
            <destination-jndi-name>MyQueue</destination-jndi-name>
            <connection-factory-jndi-name>MyQueueConnectionFactory</connection-factory-jndi-name>
            </message-driven-descriptor>
            </weblogic-enterprise-bean>
            </weblogic-ejb-jar>

            I have MyEjb.jar file and My.war file, and both packaged it in .ear, on deploying the .ear file I am getting the above exception. The same was working fine in 11g.
            • 3. Re: Messsage Driven EJB is not getting deployed in Weblogic 12c
              René van Wijk
              Could you try with
              <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
                       version="3.1">
              </ejb-jar>
              Note the version change to 3.1.

              An example set-up that uses a stateless EJB plus message-driven bean can be found here: http://middlewaremagic.com/weblogic/?p=7716