1 2 Previous Next 16 Replies Latest reply on Nov 30, 2012 2:39 AM by carl918 Go to original post
      • 15. Re: Use of ServiceInvoker to test an ESB service
        bfitzpat

        Yes, thanks to the thread Tom pointed out, I was able to figure out the issue.

         

        Evidently that UDDI.XML file has to go somewhere very specific in the project trying to invoke the service. Instead of putting it into the root folder of the project, it really wanted it in this folder:

         

        conf/registry/META-INF

         

        AND I had to add the conf/registry directory to my project build path as a Class  Source Folder. But once that was done it worked great.

         

        Just a matter of getting all the ducks in a row a-quackin'!

         

        Thanks to everybody who pitched in to get me to the finish line - I appreciate all the help! Now I can tackle getting these examples wrapped up so they can be used in JBDS 4.1 when it comes out in the next month or two.

        • 16. Re: Use of ServiceInvoker to test an ESB service
          carl918

          QQ截图20121130153114.png

          my project contructs like above graph,and i'sure added all jars ,but SendEsbMessage can work yet,report err following:

          Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException

                    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:54)

          Caused by: org.jboss.soa.esb.services.registry.RegistryException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException

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

                    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.reflect.InvocationTargetException

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

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

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

                    ... 8 more

          1 2 Previous Next