10 Replies Latest reply: Feb 19, 2013 6:58 PM by Nikhil Kumar RSS

Jboss quickstart example

le cesta Newbie

Hello,

 

  While trying to run quickstart available with jbossesb-server-4.10, I am getting below exception.

 

Please let me know cause and solution for the same. Thanks in advance.

 

 

17:53:46,830 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 43s:809ms

17:53:51,831 INFO [JBoss4ESBDeployer] create esb service, Helloworld.esb

17:53:51,839 INFO [JBoss4ESBDeployer] create esb service, helloworld_sql_action.esb

17:53:51,870 INFO [InquiryHelper] uddi:juddi.apache.org:85505d78-28bd-47cf-97a6-5e1e7cdc2c3d is modified Thu Feb 16 12:44:37 IST 2012 1329376477431

17:53:51,951 INFO [InquiryHelper] uddi:juddi.apache.org:85505d78-28bd-47cf-97a6-5e1e7cdc2c3d is modified Thu Feb 16 17:53:51 IST 2012 1329395031885

17:53:51,993 ERROR [ExceptionUtil] SessionEndpoint[41-il7hrpyg-1-guegrpyg-huaaql-s2q3qs4] createQueue [51-ll7hrpyg-1-guegrpyg-huaaql-s2q3qs4]

javax.jms.JMSException: There is no administratively defined queue with name:queue/quickstart_helloworld_Request_gw

at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createQueue(ServerSessionEndpoint.java:299)

at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createQueue$aop(SessionAdvised.java:105)

at org.jboss.jms.server.endpoint.advised.SessionAdvised$createQueue_6431069199924553036.invokeNext(SessionAdvised$createQueue_6431069199924553036.java)

at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)

at org.jboss.jms.server.endpoint.advised.SessionAdvised$createQueue_6431069199924553036.invokeNext(SessionAdvised$createQueue_6431069199924553036.java)

at org.jboss.jms.server.endpoint.advised.SessionAdvised.createQueue(SessionAdvised.java)

at org.jboss.jms.wireformat.SessionCreateQueueRequest.serverInvoke(SessionCreateQueueRequest.java:74)

at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)

at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)

at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)

at org.jboss.remoting.Client.invoke(Client.java:1925)

at org.jboss.remoting.Client.invoke(Client.java:786)

at org.jboss.remoting.Client.invoke(Client.java:774)

at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)

at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)

at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createQueue$aop(ClientSessionDelegate.java:319)

at org.jboss.jms.client.delegate.ClientSessionDelegate$createQueue_6431069199924553036.invokeNext(ClientSessionDelegate$createQueue_6431069199924553036.java)

at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)

at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)

at org.jboss.jms.client.delegate.ClientSessionDelegate$createQueue_6431069199924553036.invokeNext(ClientSessionDelegate$createQueue_6431069199924553036.java)

at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)

at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)

at org.jboss.jms.client.delegate.ClientSessionDelegate$createQueue_6431069199924553036.invokeNext(ClientSessionDelegate$createQueue_6431069199924553036.java)

at org.jboss.jms.client.delegate.ClientSessionDelegate.createQueue(ClientSessionDelegate.java)

at org.jboss.jms.client.JBossSession.createQueue(JBossSession.java:250)

at org.jboss.internal.soa.esb.rosetta.pooling.WrappedSession.createQueue(WrappedSession.java:294)

at org.jboss.internal.soa.esb.rosetta.pooling.JmsSession.createQueue(JmsSession.java:282)

at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.prepareMessageReceiver(JmsGatewayListener.java:433)

at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doInitialise(JmsGatewayListener.java:114)

at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.initialise(AbstractManagedLifecycle.java:133)

at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.initialiseInstances(ManagedLifecycleController.java:109)

at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.start(ManagedLifecycleController.java:66)

at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployment.startService(JBoss4ESBDeployment.java:228)

at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

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

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

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

at $Proxy0.start(Unknown Source)

at org.jboss.system.ServiceController.start(ServiceController.java:417)

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

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

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

at $Proxy26.start(Unknown Source)

at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.start(JBoss4ESBDeployer.java:402)

at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

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

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

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

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

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

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

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

at $Proxy9.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

17:53:51,998 INFO [InquiryHelper] uddi:juddi.apache.org:85505d78-28bd-47cf-97a6-5e1e7cdc2c3d is modified Thu Feb 16 17:53:51 IST 2012 1329395031885

17:53:52,028 ERROR [RequestHandler] obj+parameter+must+not+be+null

17:53:52,071 ERROR [RequestHandler] The+binding+template+was+not+found+for+the+given+key%3A++uddi%3Ajuddi.apache.org%3Ababd2c5f-5c9b-4bde-b4f2-4da41683582b

17:53:52,074 WARN [ServiceController] Problem starting service jboss.esb:deployment=Helloworld.esb

org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexpected JMS error from prepareMessageReceiver

at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doInitialise(JmsGatewayListener.java:122)

at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.initialise(AbstractManagedLifecycle.java:133)

at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.initialiseInstances(ManagedLifecycleController.java:109)

at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.start(ManagedLifecycleController.java:66)

at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployment.startService(JBoss4ESBDeployment.java:228)

at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

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

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

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

at $Proxy0.start(Unknown Source)

at org.jboss.system.ServiceController.start(ServiceController.java:417)

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

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

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

at $Proxy26.start(Unknown Source)

at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.start(JBoss4ESBDeployer.java:402)

at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

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

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

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

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

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

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

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

at $Proxy9.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

Caused by: javax.jms.JMSException: There is no administratively defined queue with name:queue/quickstart_helloworld_Request_gw

at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createQueue(ServerSessionEndpoint.java:299)

at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createQueue$aop(SessionAdvised.java:105)

at org.jboss.jms.server.endpoint.advised.SessionAdvised$createQueue_6431069199924553036.invokeNext(SessionAdvised$createQueue_6431069199924553036.java)

at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)

at org.jboss.jms.server.endpoint.advised.SessionAdvised$createQueue_6431069199924553036.invokeNext(SessionAdvised$createQueue_6431069199924553036.java)

at org.jboss.jms.server.endpoint.advised.SessionAdvised.createQueue(SessionAdvised.java)

at org.jboss.jms.wireformat.SessionCreateQueueRequest.serverInvoke(SessionCreateQueueRequest.java:74)

at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)

at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)

at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)

at org.jboss.remoting.Client.invoke(Client.java:1925)

at org.jboss.remoting.Client.invoke(Client.java:786)

at org.jboss.remoting.Client.invoke(Client.java:774)

at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)

at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)

at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createQueue$aop(ClientSessionDelegate.java:319)

at org.jboss.jms.client.delegate.ClientSessionDelegate$createQueue_6431069199924553036.invokeNext(ClientSessionDelegate$createQueue_6431069199924553036.java)

at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)

at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)

at org.jboss.jms.client.delegate.ClientSessionDelegate$createQueue_6431069199924553036.invokeNext(ClientSessionDelegate$createQueue_6431069199924553036.java)

at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)

at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)

at org.jboss.jms.client.delegate.ClientSessionDelegate$createQueue_6431069199924553036.invokeNext(ClientSessionDelegate$createQueue_6431069199924553036.java)

at org.jboss.jms.client.delegate.ClientSessionDelegate.createQueue(ClientSessionDelegate.java)

at org.jboss.jms.client.JBossSession.createQueue(JBossSession.java:250)

at org.jboss.internal.soa.esb.rosetta.pooling.WrappedSession.createQueue(WrappedSession.java:294)

at org.jboss.internal.soa.esb.rosetta.pooling.JmsSession.createQueue(JmsSession.java:282)

at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.prepareMessageReceiver(JmsGatewayListener.java:433)

at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doInitialise(JmsGatewayListener.java:114)

... 50 more

  • 1. Re: Jboss quickstart example
    Tom Cunningham Master

    It looks like the queue file isn't getting deployed.      How are you deploying your .esb's?      Are you running "ant clean deploy" from the quickstart directory

     

    sh% cd product/samples/quickstarts/helloworld

    sh% ant clean deploy

  • 2. Re: Jboss quickstart example
    Len DiMaggio Apprentice

    Hi - didn't this resolve the problem?

     

    https://community.jboss.org/message/717637#717637

  • 3. Re: Jboss quickstart example
    le cesta Newbie

    Hi..

     

    This problem has resolved while running Helloworld from command prompt

     

    I m still getting error when I try to run from eclipse..

  • 5. Re: Jboss quickstart example
    Raghav VIswanathan Newbie

    Hello,

     

    If you are using the example from the link mentioned by Len, Then there is a possibilty that the deployment.xml wouldnt have got packaged with your .esb file. open your esb file to confirm.

     

    Parallelly you could do this

    1. start the Jboss Server
    2. copy the queue defenition xml's first
    3. then deploy your esb from eclipse.

     

    This should work.

     

    Note: The deployment.xml file tells the server about the dependencies the .esb file has.

     

     

    You can check the status of the queue in the admin console. This will tell you if the queue service is started or stopped.

     

     

    Regards,

    Raghav.V

  • 6. Re: Jboss quickstart example
    Nikhil Kumar Newbie

    Thanks Raghav! Deploying the queue definition before the esb archive deployment does avert this error message.

     

    However, is there a way to package the queue definition inside the esb archive (so that all components are in a single archive that can be deployed in one step), and yet let queue definitions be deployed before it attempts to start the queues?

     

    Regards,

    Nikhil

  • 7. Re: Jboss quickstart example
    Tom Cunningham Master

    Nikhil,

     

    What are the contents of your .esb archive (can you list them out)?      Raghav is suggesting that your ESB archive might not contain a META-INF/deployment.xml - or if it does contain a META-INF/deployment.xml it is not correctly referring to your queues.       The deployment.xml would ensure that the ESB archive does not deploy before the queues are deployed.

     

    I tried using the examples from the anonsvn link that Len provided, and the helloworld example there definitely contains the deployment.xml, so maybe using those examples rather than whichever one you are currently using would be another way around this issue.

     

     

    --Tom

  • 8. Re: Jboss quickstart example
    Nikhil Kumar Newbie

    Thanks for replying Tom. Quickstart examples work just fine. It's only when I start playing with my own queues that the problem occurs.

    Queues do get deployed (and are active, as well as visible in JMX console), but only after spewing out this exception message. Please let me know if you see something odd in the code/exception below.

     

    deployment.xml is present in META-INF directory along with jboss-esb.xml file.

    nikkumar@eesdev001cnc:/home/nikkumar/temp>jar -tvf SubmitPODemo.esb

      4808 Tue Feb 12 18:31:42 EST 2013 META-INF/demoPO.xsd

      3210 Mon Feb 11 23:03:28 EST 2013 META-INF/demoPOAddress.xsd

       980 Sat Feb 09 18:46:00 EST 2013 META-INF/demoPOFault.xsd

       999 Sat Feb 09 18:39:40 EST 2013 META-INF/demoPOResponse.xsd

       208 Sat Feb 09 22:21:24 EST 2013 META-INF/deployment.xml

      3472 Mon Feb 18 20:34:24 EST 2013 META-INF/jboss-esb.xml

      2688 Sun Feb 17 22:40:42 EST 2013 demoPO-SOAP.xml

       357 Tue Feb 12 19:16:16 EST 2013 demoPOFault.xml

       383 Mon Feb 11 17:08:20 EST 2013 demoPOResponse.xml

       382 Sat Feb 09 21:12:06 EST 2013 hornetq-jms.xml.not.used

       741 Mon Feb 18 20:15:48 EST 2013 jbm-queue-service.xml

      1233 Mon Feb 11 06:57:40 EST 2013 quickstartPO-SOAP.xml

      2062 Mon Feb 11 21:59:12 EST 2013 com/test/soa/esb/po/test/SOAPTest.class

      2411 Sun Feb 17 13:55:40 EST 2013 com/test/soa/esb/po/ShipToCustomer.class

      2799 Sun Feb 17 22:20:50 EST 2013 com/test/soa/esb/po/OrderItem.class

      2411 Sun Feb 17 13:55:52 EST 2013 com/test/soa/esb/po/BillToCustomer.class

      1680 Sun Feb 17 22:15:18 EST 2013 com/test/soa/esb/po/OrderHeader.class

      4419 Mon Feb 18 20:34:24 EST 2013 com/test/soa/esb/po/ProcessOrderAction.class

      1496 Mon Feb 11 21:59:12 EST 2013 org/jboss/soa/esb/dvdstore/Customer.class

      1795 Mon Feb 11 21:59:12 EST 2013 org/jboss/soa/esb/dvdstore/OrderItem.class

      2581 Mon Feb 11 21:59:12 EST 2013 org/jboss/soa/esb/dvdstore/OrderHeader.class

      2486 Mon Feb 11 21:59:12 EST 2013 org/jboss/soa/esb/dvdstore/DVDStoreAction.class

      3457 Wed Feb 13 06:58:36 EST 2013 smooks-res-po.xml

      2201 Thu Jul 19 21:55:04 EDT 2012 smooks-res-quickstart.xml

      4727 Sun Feb 17 22:28:06 EST 2013 smooks-res-split.xml

      2002 Sun Feb 17 22:37:14 EST 2013 orderitem-split.ftl

     

     

    Content of deployment.xml is as follows:

    <?xml version="1.0"?>

    <jbossesb-deployment>

      <depends>jboss.esb:deployment=soap.esb</depends>

      <jmsQueue>demoPO_Request_esb</jmsQueue>

      <jmsQueue>demoPO_Request_esb_reply</jmsQueue>

    </jbossesb-deployment>

     

     

    Relevant content from jboss-esb.xml is as follows:

        <providers>

              <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">

                  <jms-bus busid="demoPOEsbChannel">

                            <jms-message-filter dest-type="QUEUE" dest-name="queue/demoPO_Request_esb" selector="serviceName='SubmitPODemoService'" />

                  </jms-bus>

              </jms-provider>

          </providers>

     

     

    Content of jbm-queue-service.xml is as follows:

    <?xml version="1.0" encoding="UTF-8"?>

    <server>

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

        name="jboss.esb.test.destination:service=Queue,name=demoPO_Request_esb"

        xmbean-dd="xmdesc/Queue-xmbean.xml">

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

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

      </mbean>

     

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

        name="jboss.esb.test.destination:service=Queue,name=demoPO_Request_esb_reply"

        xmbean-dd="xmdesc/Queue-xmbean.xml">

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

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

      </mbean>

    </server>

     

      

    21:25:08,661 ERROR [ExceptionUtil] SessionEndpoint[fl-0zkkfcdh-1-v1vtdcdh-khthik-1410a] createQueue [gl-9zkkfcdh-1-v1vtdcdh-khthik-1410a]

    javax.jms.JMSException: There is no administratively defined queue with name:queue/demoPO_Request_esb

              at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createQueue(ServerSessionEndpoint.java:314)

              at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createQueue$aop(SessionAdvised.java:105)

              at org.jboss.jms.server.endpoint.advised.SessionAdvised$createQueue_6431069199924553036.invokeTarget(SessionAdvised$createQueue_6431069199924553036.java)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

              at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

              at org.jboss.jms.server.endpoint.advised.SessionAdvised.createQueue(SessionAdvised.java)

              at org.jboss.jms.wireformat.SessionCreateQueueRequest.serverInvoke(SessionCreateQueueRequest.java:74)

              at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:165)

              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

              at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

              at org.jboss.remoting.Client.invoke(Client.java:2070)

              at org.jboss.remoting.Client.invoke(Client.java:879)

              at org.jboss.remoting.Client.invoke(Client.java:867)

              at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)

              at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)

              at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createQueue$aop(ClientSessionDelegate.java:319)

              at org.jboss.jms.client.delegate.ClientSessionDelegate$createQueue_6431069199924553036.invokeTarget(ClientSessionDelegate$createQueue_6431069199924553036.java)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

              at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)

              at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

              at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:172)

              at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

              at org.jboss.jms.client.delegate.ClientSessionDelegate.createQueue(ClientSessionDelegate.java)

              at org.jboss.jms.client.JBossSession.createQueue(JBossSession.java:250)

              at org.jboss.internal.soa.esb.rosetta.pooling.WrappedSession.createQueue(WrappedSession.java:294)

              at org.jboss.internal.soa.esb.rosetta.pooling.JmsSession.createQueue(JmsSession.java:282)

              at org.jboss.internal.soa.esb.couriers.JmsCourier.createMessageConsumer(JmsCourier.java:608)

              at org.jboss.internal.soa.esb.couriers.JmsCourier.internalPickupPayload(JmsCourier.java:501)

              at org.jboss.internal.soa.esb.couriers.JmsCourier.pickupPayload(JmsCourier.java:477)

              at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup(JmsCourier.java:470)

              at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:228)

              at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:204)

              at org.jboss.soa.esb.listeners.message.MessageAwareListener.waitForEventAndProcess(MessageAwareListener.java:311)

              at org.jboss.soa.esb.listeners.message.MessageAwareListener.doRun(MessageAwareListener.java:267)

              at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)

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

    21:25:08,674 INFO  [QueueService] Queue[/queue/demoPO_Request_esb] started, fullSize=200000, pageSize=2000, downCacheSize=2000

    21:25:08,686 INFO  [QueueService] Queue[/queue/demoPO_Request_esb_reply] started, fullSize=200000, pageSize=2000, downCacheSize=2000

    21:25:09,662 WARN  [MessageAwareListener] Error processing courier, backing off for 1000 milliseconds

    21:25:10,664 INFO  [MessageAwareListener] State reached : false

  • 9. Re: Jboss quickstart example
    Tom Cunningham Master

    Your deployment.xml should look something like (I'm not sure this is exactly correct, but I think I'm reading your jbm-queue-service.xml correctly :

     

    <?xml version="1.0" encoding="UTF-8"?><jbossesb-deployment>
      <depends>jboss.esb.test.destination:service=Queue,name=demoPO_Request_esb</depends>
      <depends>jboss.esb.test.destination:service=Queue,name=demoPO_Request_esb_reply</depends>
    </jbossesb-deployment>
    

     

    The <jmsQueue/> notation you are using in your deployment.xml is quickstart-specific - quickstarts/conf/base-build.xml transforms that notation to bean names for HornetQ/JBoss Messaging/JbossMQ depending on what messaging implementation is being used by the app server you are deploying to.       Since you are building your archive within Eclipse rather than the quickstart build files, this transformation isn't occurring.

     

    Fix up your deployment.xml and you'll be fine.

  • 10. Re: Jboss quickstart example
    Nikhil Kumar Newbie

    Thanks a lot Tom!

    This did fix the issue.