2 Replies Latest reply on Nov 17, 2010 1:40 AM by Emre He

    Deploy MDB on JBoss5.1 failed: Caused by: java.lang.IllegalStateException: Container configuration not found

    Emre He Newbie

      I met the problem during deploy one MDB on jboss 5.1, i attached the error log as below, could you help to check this issue? what i am missing about the configuration?

       

       

      2010-11-17 00:33:18,623 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/opt/jboss-5.1.0.GA/server/myserver/deploy/myserver-myqueue.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/opt/jboss-5.1.0.GA/server/myserver/deploy/myserver-myqueue.ear/myserver-myQueue-mdb.jar/
              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
              at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalStateException: Container configuration not found: Local Message Driven Bean available: {Standard Stateful SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@a06681f5{Standard Stateful SessionBean}, Clustered BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@4e3022f5{Clustered BMP EntityBean}, Instance Per Transaction CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@9bc4fce1{Instance Per Transaction CMP 2.x EntityBean}, Instance Per Transaction BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@78102f5e{Instance Per Transaction BMP EntityBean}, Standard CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@63016d30{Standard CMP EntityBean}, Standard Message Inflow Driven Bean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@93ea997b{Standard Message Inflow Driven Bean}, Standard BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@8123a391{Standard BMP EntityBean}, Clustered CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@300dec94{Clustered CMP EntityBean}, Clustered Stateless SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@950c4c9{Clustered Stateless SessionBean}, Singleton Message Driven Bean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@a5f5dfbe{Singleton Message Driven Bean}, Standard Message Driven Bean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@7c2eddb0{Standard Message Driven Bean}, Standard Pessimistic CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@2b4055a9{Standard Pessimistic CMP 2.x EntityBean}, Standard CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@48cd1f94{Standard CMP 2.x EntityBean}, Standard Pessimistic BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@38672c26{Standard Pessimistic BMP EntityBean}, Clustered Stateful SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@55c6e659{Clustered Stateful SessionBean}, cmp2.x jdbc2 pm=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@eb521850{cmp2.x jdbc2 pm}, Instance Per Transaction CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@59edf8fd{Instance Per Transaction CMP EntityBean}, Standard Pessimistic CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@1a44f5c5{Standard Pessimistic CMP EntityBean}, Standard Stateless SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@12a49cad{Standard Stateless SessionBean}, Clustered CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@b3034cf8{Clustered CMP 2.x EntityBean}, Standard CMP 2.x EntityBean with cache invalidation=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@433ea44a{Standard CMP 2.x EntityBean with cache invalidation}}
              at org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.determineContainerConfiguration(JBossEnterpriseBeanMetaData.java:924)
              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:376)
              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:74)
              at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
              ... 25 more

      {code}2010-11-17 00:33:18,623 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/opt/jboss-5.1.0.GA/server/myserver/deploy/myserver-myqueue.ear/ state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/opt/jboss-5.1.0.GA/server/myserver/deploy/myserver-myqueue.ear/myserver-myQueue-mdb.jar/

              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)

              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)

              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

              at java.lang.Thread.run(Thread.java:595)

      Caused by: java.lang.IllegalStateException: Container configuration not found: Local Message Driven Bean available: {Standard Stateful SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@a06681f5{Standard Stateful SessionBean}, Clustered BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@4e3022f5{Clustered BMP EntityBean}, Instance Per Transaction CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@9bc4fce1{Instance Per Transaction CMP 2.x EntityBean}, Instance Per Transaction BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@78102f5e{Instance Per Transaction BMP EntityBean}, Standard CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@63016d30{Standard CMP EntityBean}, Standard Message Inflow Driven Bean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@93ea997b{Standard Message Inflow Driven Bean}, Standard BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@8123a391{Standard BMP EntityBean}, Clustered CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@300dec94{Clustered CMP EntityBean}, Clustered Stateless SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@950c4c9{Clustered Stateless SessionBean}, Singleton Message Driven Bean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@a5f5dfbe{Singleton Message Driven Bean}, Standard Message Driven Bean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@7c2eddb0{Standard Message Driven Bean}, Standard Pessimistic CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@2b4055a9{Standard Pessimistic CMP 2.x EntityBean}, Standard CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@48cd1f94{Standard CMP 2.x EntityBean}, Standard Pessimistic BMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@38672c26{Standard Pessimistic BMP EntityBean}, Clustered Stateful SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@55c6e659{Clustered Stateful SessionBean}, cmp2.x jdbc2 pm=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@eb521850{cmp2.x jdbc2 pm}, Instance Per Transaction CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@59edf8fd{Instance Per Transaction CMP EntityBean}, Standard Pessimistic CMP EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@1a44f5c5{Standard Pessimistic CMP EntityBean}, Standard Stateless SessionBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@12a49cad{Standard Stateless SessionBean}, Clustered CMP 2.x EntityBean=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@b3034cf8{Clustered CMP 2.x EntityBean}, Standard CMP 2.x EntityBean with cache invalidation=org.jboss.metadata.ejb.jboss.ContainerConfigurationMetaDataWrapper@433ea44a{Standard CMP 2.x EntityBean with cache invalidation}}

              at org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.determineContainerConfiguration(JBossEnterpriseBeanMetaData.java:924)

              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:376)

              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:74)

              at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

              ... 25 more{code}

       

      Many thanks,

      Emre

        • 1. Re: Deploy MDB on JBoss5.1 failed: Caused by: java.lang.IllegalStateException: Container configuration not found
          Wolf-Dieter Fink Master

          Does your 'myserver-myqueue* contains Container configurations that are not within the standardjboss.xml?

          See the caused by:

          Standard Stateful SessionBean,Clustered BMP EntityBean, ...

          Is there a configuration missed?

          • 2. Re: Deploy MDB on JBoss5.1 failed: Caused by: java.lang.IllegalStateException: Container configuration not found
            Emre He Newbie

            As you said, i think it is about standardjboss.xml, originally i have the content:

             

             

                <invoker-proxy-binding>
                  <name>singleton-message-driven-bean</name>
                  <invoker-mbean>default</invoker-mbean>
                  <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
                  <proxy-factory-config>
                    <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
                    <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
                    <CreateJBossMQDestination>false</CreateJBossMQDestination>
                    <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->
                    <MinimumSize>1</MinimumSize>
                    <MaximumSize>1000</MaximumSize>
                    <KeepAliveMillis>30000</KeepAliveMillis>
                    <MaxMessages>1</MaxMessages>
                    <MDBConfig>
                      <ReconnectIntervalSec>10</ReconnectIntervalSec>
                      <DLQConfig>
                        <DestinationQueue>queue/DLQ</DestinationQueue>
                        <MaxTimesRedelivered>10</MaxTimesRedelivered>
                        <TimeToLive>0</TimeToLive>
                      </DLQConfig>
                    </MDBConfig>
                  </proxy-factory-config>
                </invoker-proxy-binding>

            {code}    <invoker-proxy-binding>

                  <name>singleton-message-driven-bean</name>

                  <invoker-mbean>default</invoker-mbean>

                  <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>

                  <proxy-factory-config>

                    <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>

                    <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>

                    <CreateJBossMQDestination>false</CreateJBossMQDestination>

                    <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->

                    <MinimumSize>1</MinimumSize>

                    <MaximumSize>1000</MaximumSize>

                    <KeepAliveMillis>30000</KeepAliveMillis>

                    <MaxMessages>1</MaxMessages>

                    <MDBConfig>

                      <ReconnectIntervalSec>10</ReconnectIntervalSec>

                      <DLQConfig>

                        <DestinationQueue>queue/DLQ</DestinationQueue>

                        <MaxTimesRedelivered>10</MaxTimesRedelivered>

                        <TimeToLive>0</TimeToLive>

                      </DLQConfig>

                    </MDBConfig>

                  </proxy-factory-config>

                </invoker-proxy-binding>{code}

             

             

            I updated it to add local-message-driven-bean:

             

             

            {code}    <invoker-proxy-binding>

                  <name>singleton-message-driven-bean</name>

                  <invoker-mbean>default</invoker-mbean>

                  <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>

                  <proxy-factory-config>

                    <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>

                    <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>

                    <CreateJBossMQDestination>false</CreateJBossMQDestination>

                    <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->

                    <MinimumSize>1</MinimumSize>

                    <MaximumSize>1000</MaximumSize>

                    <KeepAliveMillis>30000</KeepAliveMillis>

                    <MaxMessages>1</MaxMessages>

                    <MDBConfig>

                      <ReconnectIntervalSec>10</ReconnectIntervalSec>

                      <DLQConfig>

                        <DestinationQueue>queue/DLQ</DestinationQueue>

                        <MaxTimesRedelivered>10</MaxTimesRedelivered>

                        <TimeToLive>0</TimeToLive>

                      </DLQConfig>

                    </MDBConfig>

                  </proxy-factory-config>

                </invoker-proxy-binding>

             

              <invoker-proxy-binding>

                <name>local-message-driven-bean</name>

                <invoker-mbean>default</invoker-mbean>

                <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>

                <proxy-factory-config>

                  <JMSProviderAdapterJNDI>LocalJMSProvider</JMSProviderAdapterJNDI>

                  <ServerSessionPoolFactoryJNDI>LocalJMSPool</ServerSessionPoolFactoryJNDI>

                  <CreateJBossMQDestination>true</CreateJBossMQDestination>

                  <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->

                  <MinimumSize>1</MinimumSize>

                    <MaximumSize>1</MaximumSize>

                    <KeepAliveMillis>30000</KeepAliveMillis>

                    <MaxMessages>1</MaxMessages>

                    <MDBConfig>

                      <ReconnectIntervalSec>10</ReconnectIntervalSec>

                      <DLQConfig>

                        <DestinationQueue>queue/DLQ</DestinationQueue>

                        <MaxTimesRedelivered>10</MaxTimesRedelivered>

                        <TimeToLive>0</TimeToLive>

                      </DLQConfig>

                    </MDBConfig>

                  </proxy-factory-config>

                </invoker-proxy-binding>{code}

             

             

            then i come to:

             

             

            {code}2010-11-17 13:37:03,006 ERROR [org.jboss.resource.adapter.jms.inflow.JmsActivation] (WorkManager(2)-5) Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@136f665(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@c69133 destination=queue/myQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=LocalJMSProvider user=null maxMessages=1 minSession=1 maxSession=1 keepAlive=30000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)

            javax.naming.NameNotFoundException: LocalJMSProvider not bound {code}

             

            actually we have no mq:

            jboss.mq

             

            • name=HAJNDIJMSProvider,service=JMSProviderLoader
            • name=LOCALJNDIJMSProvider,service=JMSProviderLoader

             

             

            should i just use below for instead?

             

                  <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>

                  <ServerSessionPoolFactoryJNDI>JMSProvider</ServerSessionPoolFactoryJNDI>

                  <CreateJBossMQDestination>true</CreateJBossMQDestination>

             

            thanks,

            Emre