2 Replies Latest reply on Sep 30, 2011 7:40 PM by Tom Cunningham

    helloworld - esbmessage error

    everson . Newbie

      I'm testing the helloworld sample from jbesb4,9 and I got the follow error when I execute the ant task, and the second error when I execute by eclipse the SendEsbMessage file.

       

       

      1- I have org.uddi.api_v3.ObjectFactory in my classpath into uddi-ws-3,0,3

      sendesb:

           [echo] Runs Test ESB Message Sender

           [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/uddi/api_v3/ObjectFactory

           [java]     at org.apache.ws.scout.registry.RegistryV3Impl.<init>(RegistryV3Impl.java:143)

           [java]     at org.apache.ws.scout.registry.ConnectionImpl.<init>(ConnectionImpl.java:81)

           [java]     at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:102)

           [java]     at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:128)

           [java]     at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:299)

           [java]     at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)

           [java]     at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)

           [java]     at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)

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

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

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

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

           [java]     at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:55)

           [java] Caused by: java.lang.ClassNotFoundException: org.uddi.api_v3.ObjectFactory

           [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

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

           [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

           [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)

           [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)

           [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

           [java]     ... 13 more

       

      BUILD FAILED

      /home/everson.santos/Downloads/jbossesb-4.9-original/samples/quickstarts/helloworld/build.xml:23: Java returned: 1

       

       

       

      2-

      Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.Exception: Cannot locate configuration source META-INF/uddi.xml

          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.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:55)

      Caused by: org.jboss.soa.esb.services.registry.RegistryException: org.apache.ws.scout.transport.TransportException: java.lang.Exception: Cannot locate configuration source META-INF/uddi.xml

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

          at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)

          at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)

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

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

          ... 4 more

      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)

          ... 8 more

        • 1. Re: helloworld - esbmessage error
          nikhil kaja Newbie

          hi

           

          i am having the following issue can u help me out with this, i am trying to invoke a service which is there on other laptop, from my desktop using service invoker , i am using quick strt helloworld example , and configured according to jboss esb programming  guide, my error is :

           

           

          Exception in thread "main" java.lang.NoClassDefFoundError: org/uddi/api_v3/ObjectFactory

              at org.apache.ws.scout.registry.RegistryV3Impl.<init>(RegistryV3Impl.java:143)

              at org.apache.ws.scout.registry.ConnectionImpl.<init>(ConnectionImpl.java:81)

              at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:102)

              at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:128)

              at org.jboss.internal.soa.esb.services.registry.JAXRConnectionSingleton.getConnection(JAXRConnectionSingleton.java:60)

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

              at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)

              at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)

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

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

              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.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:56)

          Caused by: java.lang.ClassNotFoundException: org.uddi.api_v3.ObjectFactory

              at java.net.URLClassLoader$1.run(Unknown Source)

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

              at java.net.URLClassLoader.findClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at java.lang.ClassLoader.loadClassInternal(Unknown Source)

           

          how to configure my remote system (laptop in my case.)in the helloworld client ??

           

          thanks in advance

          • 2. Re: helloworld - esbmessage error
            Tom Cunningham Master

            Nikhil's post is a duplicate and answered here :

             

            http://community.jboss.org/message/629656#629656