2 Replies Latest reply on Jul 7, 2008 11:48 AM by Andy Taylor

    problem with creating Queue with JbossAS 5 Beta4 !

    John smith Newbie

      Hello,

      I try to create a Queue on JBoss 5, so I added the following line to file:destinations-service.xml situated in deploy/messaging directory:

      <mbean code = "org.jboss.jms.server.destination.QueueService"
      name = "jboss.messaging.destination: service = Queue, name = jms / Ping"
      xmbean-dd = "xmdesc / Queue-xmbean.xml">
      @ org.jboss.system.deployers.managed.ManagementObjectClass (code = org.jboss.jms.server.destination.QueueServiceMO) </ annotation>
      <depends optional-attribute-name="ServerPeer"> jboss.messaging: service = ServerPeer </ depends>
      jboss.messaging: service = PostOffice </ depends>
      </ mbean>


      after that, i've the following error message at the startup of JBossAS 5.0.0 Beta4:

      2008-07-07 14:37:22,075 ERROR [org.jboss.messaging.util.ExceptionUtil] Queue[/queue/jms/Ping, name=jms/Ping] startService
      javax.naming.NameNotFoundException: jms not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
      at org.jnp.server.NamingServer.rebind(NamingServer.java:165)
      at org.jnp.server.NamingServer.rebind(NamingServer.java:168)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:518)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:482)
      at org.jboss.jms.server.DestinationJNDIMapper.registerDestination(DestinationJNDIMapper.java:142)
      at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:134)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:299)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
      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:585)
      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.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
      at $Proxy5.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.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:327)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
      at org.jboss.system.ServiceController.start(ServiceController.java:431)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:150)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:108)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
      at org.jboss.Main.boot(Main.java:208)
      at org.jboss.Main$1.run(Main.java:534)
      at java.lang.Thread.run(Thread.java:595)
      2008-07-07 14:37:22,076 DEBUG [org.jboss.jms.server.destination.QueueService] Started jboss.messaging.destination:service=Queue,name=jms/Ping

      but at the end we can see the line put in bold that jms/Ping is started!
      so, somone have an idea to solve this.

      Best Regards.


        • 1. Re: problem with creating Queue with JbossAS 5 Beta4 !
          John smith Newbie

           

          "Nouredine13" wrote:
          Hello,

          I try to create a Queue on JBoss 5, so I added the following line to file:destinations-service.xml situated in deploy/messaging directory:

          <mbean code = "org.jboss.jms.server.destination.QueueService"
          name = "jboss.messaging.destination: service = Queue, name = jms / Ping"
          xmbean-dd = "xmdesc / Queue-xmbean.xml">
          <annotation> @ org.jboss.system.deployers.managed.ManagementObjectClass (code = org.jboss.jms.server.destination.QueueServiceMO) </ annotation>
          <depends optional-attribute-name="ServerPeer"> jboss.messaging: service = ServerPeer </ depends>
          <depends> jboss.messaging: service = PostOffice </ depends>
          </ mbean>


          after that, i've the following error message at the startup of JBossAS 5.0.0 Beta4:

          2008-07-07 14:37:22,075 ERROR [org.jboss.messaging.util.ExceptionUtil] Queue[/queue/jms/Ping, name=jms/Ping] startService
          javax.naming.NameNotFoundException: jms not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
          at org.jnp.server.NamingServer.rebind(NamingServer.java:165)
          at org.jnp.server.NamingServer.rebind(NamingServer.java:168)
          at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:518)
          at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:482)
          at org.jboss.jms.server.DestinationJNDIMapper.registerDestination(DestinationJNDIMapper.java:142)
          at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:134)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:299)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
          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:585)
          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.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
          at $Proxy5.start(Unknown Source)
          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.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:327)
          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
          at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
          at org.jboss.system.ServiceController.start(ServiceController.java:431)
          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:150)
          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:108)
          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
          at org.jboss.Main.boot(Main.java:208)
          at org.jboss.Main$1.run(Main.java:534)
          at java.lang.Thread.run(Thread.java:595)
          2008-07-07 14:37:22,076 DEBUG [org.jboss.jms.server.destination.QueueService] Started jboss.messaging.destination:service=Queue,name=jms/Ping

          but at the end we can see the line put in bold that jms/Ping is started!
          Can anyone tell me what could be the possible cause for the following error?? Thanks a lot!!

          Best Regards.




          • 2. Re: problem with creating Queue with JbossAS 5 Beta4 !
            Andy Taylor Master

            Try changing the name from jms/Ping to Ping or something similar. The default context name is /queues so you will look it up via /queues/Ping.