1 Reply Latest reply on Jan 28, 2011 8:17 AM by tcunning

    Cannot run Webservice consumer example in Eclipse

    markboletti

      Hi all ESB users,

      I'm trying to execute the Webserviceconsumer1 example from the quickstart using Eclipse.

      I've formerly installed JBoss ESB on JBoss AS 5.1 and I've let Eclipse configure the classpath using the JBoss ESB Runtime.

      However launching the SendESBMessage example I have the following error:

       

      Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException: Invocation exception. null

          at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)

          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)

          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)

          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)

          at org.jboss.soa.esb.samples.quickstart.webservice_consumer1.test.SendEsbMessage.sendMessage(SendEsbMessage.java:44)

          at org.jboss.soa.esb.samples.quickstart.webservice_consumer1.test.SendEsbMessage.main(SendEsbMessage.java:62)

      Caused by: org.jboss.soa.esb.services.registry.RegistryException: Invocation exception. null

          at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:121)

          at org.jboss.soa.esb.services.registry.RegistryFactory.getRegistry(RegistryFactory.java:86)

          at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:220)

          at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)

          ... 5 more

      Caused by: java.lang.NullPointerException

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Class.java:247)

          at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:65)

          at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:110)

          ... 8 more

       

      Reading in the forum, I've found that jbossesb-properties.xml is required for remote clients. After adding it, I've the following exception:

       

       

      Caused by: javax.xml.registry.JAXRException: org.apache.ws.scout.transport.TransportException: java.lang.Exception: Cannot locate configuration source META-INF/uddi.xml

          at org.apache.ws.scout.registry.BusinessQueryManagerV3Impl.findConcepts(BusinessQueryManagerV3Impl.java:535)

          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getJBossESBTModel(JAXRRegistryImpl.java:625)

          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:301)

       

       

      I've tried scouting for this file in the Webserviceconsumer1 example, however this file does not exist. So I wonder how can the example run correctly from the ant runtest command line ?

      Any idea?

      thanks

      Mark

        • 1. Cannot run Webservice consumer example in Eclipse
          tcunning

          I think what you need to do is go through the "Configuring a remote ServiceInvoker" section of the Programmer's Guide and add the JARs to the classpath that are suggested there.      

           

          Alternatively you could configure the SendJMSMessage example depending on whether you are interested in using the ServiceInvoker or just running the quickstart.