1 Reply Latest reply on Feb 21, 2013 4:49 AM by Raman Sheshadri

    Error In deploying JMS queue in Jboss 5.1.0

    Raman Sheshadri Newbie

      Hello Folks,,

       

      I am getting this error from past 3-4 days. However i followed the posts from Jai/Peter. But still could not able to deploy it on the server.

       

      I am using Jboss 5.1.0 AS and i have a MDB and i ma using JMS to deploy a Queue but i landed with this error.

       

      13:13:49,845 ERROR [AbstractKernelController] Error installing to Instantiated: name=jboss.messaging.destination:name=userRegEmailQueue,service=Queue state=Described mode=Manual requiredState=Configured

      javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object

      at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:102)

      at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:100)

      at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:100)

      at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:100)

      at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:100)

      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:190)

      at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)

      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1359)

      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)

      at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:211)

      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:130)

      at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)

      at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:37)

      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

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

      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

      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.system.ServiceController.doChange(ServiceController.java:688)

      at org.jboss.system.ServiceController.install(ServiceController.java:274)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

      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)

      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:1178)

      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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

      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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

      at org.jboss.Main.boot(Main.java:221)

      at org.jboss.Main$1.run(Main.java:556)

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

      13:13:49,851 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/Raman/Softwares/jboss-5.1.0.GA/server/default/deploy/messaging/cox-destinations-service.xml state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.messaging.destination:service=Queue,name=userRegEmailQueue

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

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

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

       

       

       

      This is my *-destinatinations-service under deploy/messaging folder

       

      <mbean code="org.jboss.jms.server.destination.QueueService" 

            name="jboss.messaging.destination:service=Queue,name=userRegEmailQueue">  

            <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>  

            <depends>jboss.messaging:service=PostOffice</depends>  

         </mbean>

       

      I replaced hasql-persistence_*.xml to mysql-*-*.xml

       

      i also added in components.xml file .

       

      Also i could not understand why the queue is not started and i got following error while server startup

       

      13:14:13,672 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@7d64df06{name=jboss.j2ee:ear=coxfyt.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

      13:14:13,761 INFO  [EJBContainer] STARTED EJB: com.cox.common.utils.RegUserEmailMDB ejbName: RegUserEmailMDB

      13:14:13,897 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=coxfyt.ear/coxfyt.jar#coxfytDatabase

      13:14:14,008 WARN  [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@e1ec4c4(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@7ea32424 destination=queue/userRegEmailQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)

      javax.naming.NameNotFoundException: DLQ not bound

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

      at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

      at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

      at org.jnp.server.NamingServer.lookup(NamingServer.java:399)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

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

      at org.jboss.util.naming.Util.lookup(Util.java:222)

      at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQDestination(AbstractDLQHandler.java:106)

      at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:82)

      at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)

      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:413)

      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:351)

      at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)

      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

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

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

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

      13:14:14,064 INFO  [Version] Hibernate Annotations 3.4.0.GA

      13:14:14,104 INFO  [Environment] Hibernate 3.3.1.GA

      13:14:14,115 INFO  [Environment] hibernate.properties not found

      13:14:14,121 INFO  [Environment] Bytecode provider name : javassist

       

      ...

      ...

       

      Kindly suggest me . Do i missed out any other stuffs?

       

      Thanks in Advance