3 Replies Latest reply on Jun 13, 2008 2:21 PM by Luiz Antonio Falaguasta Barbosa

    Trying to run a .esb configuration for my webservice

    Luiz Antonio Falaguasta Barbosa Novice

      Hi people,

      I copied the jboss-esb.xml of webservice_consumer1 and changed it to:

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



      <jbr-provider name="8ball-provider" protocol="http" host="localhost">
      <jbr-bus busid="8ball-bus" port="8089" />
      </jbr-provider>





      <!-- Listener que aguarda requisições de web services -->
      <jbr-listener name="Http-Gateway" busidref="8ball-bus" is-gateway="true" maxThreads="1"/>


      <!-- Action que encaminha requisições para um web service -->


      <!--property name="responseAsOgnlMap" value="true" /-->








      So, I changed the file jbm-queue-service.xml with the following content:

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

      <mbean code="org.jboss.jms.server.destination.QueueService"
      name="jboss.esb.quickstart.destination:service=Queue,name=8ball_esb"
      xmbean-dd="xmdesc/Queue-xmbean.xml">
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
      jboss.messaging:service=PostOffice

      <mbean code="org.jboss.jms.server.destination.QueueService"
      name="jboss.esb.quickstart.destination:service=Queue,name=8ball_esb_reply"
      xmbean-dd="xmdesc/Queue-xmbean.xml">
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
      jboss.messaging:service=PostOffice



      And the file deployment.xml with the content:

      <jbossesb-deployment>
      jboss.esb:deployment=soap.esb
      jboss.esb:service=SoapUIClientService
      jboss.esb.quickstart.destination:service=Queue,name=8ball_esb
      jboss.esb.quickstart.destination:service=Queue,name=8ball_esb_reply
      </jbossesb-deployment>

      And the file jbmq-queue-service.xml with:

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


      <depends optional-attribute-name="DestinationManager">
      jboss.mq:service=DestinationManager



      <depends optional-attribute-name="DestinationManager">
      jboss.mq:service=DestinationManager




      And I copied the files juddi.properties, jbossesb-properties.xml, log4j.xml and build.xml from webservice_consumer1 quickstart sample without any change.

      I followed the same way of deployment which is described into JBossESB documents, for the quickstart samples.

      Please, does somebody know why it didn't deploy? Look the stack:

      13:33:31,545 INFO [JBoss4ESBDeployer] create esb service, 8ball.esb
      13:33:31,576 INFO [8ball_esb] Bound to JNDI name: queue/8ball_esb
      13:33:31,576 INFO [8ball_esb_reply] Bound to JNDI name: queue/8ball_esb_reply
      13:33:31,654 WARN [ServiceController] Problem starting service jboss.esb:deployment=8ball.esb
      java.lang.RuntimeException: org.jboss.soa.esb.ConfigurationException: Service configuration for Service '8ballServiceCategory:8ballService' doesn't define a Message-Aware Listener (i.e. is-gateway='false').
      at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:132)
      at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployment.startService(JBoss4ESBDeployment.java:82)
      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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      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 org.jboss.system.ServiceController.start(ServiceController.java:435)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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: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 $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      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.GeneratedMethodAccessor18.invoke(Unknown Source)
      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: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: org.jboss.soa.esb.ConfigurationException: Service configuration for Service '8ballServiceCategory:8ballService' doesn't define a Message-Aware Listener (i.e. is-gateway='false').
      at org.jboss.soa.esb.listeners.config.Generator$XMLBeansModel.getListeners(Generator.java:377)
      at org.jboss.soa.esb.listeners.config.Generator$XMLBeansModel.getESBAwareListeners(Generator.java:250)
      at org.jboss.soa.esb.listeners.config.ESBAwareGenerator.generate(ESBAwareGenerator.java:83)
      at org.jboss.soa.esb.listeners.config.Generator.generate(Generator.java:147)
      at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:98)
      ... 48 more
      13:33:31,716 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.esb:deployment=8ball.esb
      State: FAILED
      Reason: java.lang.RuntimeException: org.jboss.soa.esb.ConfigurationException: Service configuration for Service '8ballServiceCategory:8ballService' doesn't define a Message-Aware Listener (i.e. is-gateway='false').
      I Depend On:
      jboss.esb:service=SoapUIClientService
      jboss.esb.quickstart.destination:service=Queue,name=8ball_esb
      jboss.esb:deployment=jbossesb.esb
      jboss.esb.quickstart.destination:service=Queue,name=8ball_esb_reply
      jboss.esb:deployment=soap.esb

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.esb:deployment=8ball.esb
      State: FAILED
      Reason: java.lang.RuntimeException: org.jboss.soa.esb.ConfigurationException: Service configuration for Service '8ballServiceCategory:8ballService' doesn't define a Message-Aware Listener (i.e. is-gateway='false').
      I Depend On:
      jboss.esb:service=SoapUIClientService
      jboss.esb.quickstart.destination:service=Queue,name=8ball_esb
      jboss.esb:deployment=jbossesb.esb
      jboss.esb.quickstart.destination:service=Queue,name=8ball_esb_reply
      jboss.esb:deployment=soap.esb

      Thanks in advance!

      Regards,

      Luiz