10 Replies Latest reply on Jan 25, 2010 4:24 AM by dennyxu

    ESB ServiceInvoker does not work

    dennyxu

      I tried to run JBoss ESB 4.7 quickstarts in SOA-p 5.0 which contains ESB4.7 runtime, if I try to send an ESB message to test the deployed esb service, it fail every time,  take *Helloworld *quickstart as an example,  after I deployed it to SOA-P 5.0 successfully, I tried to run SendJMSMessage, it work fine, but when I tried to  run SendESBMessage with serviceCategory=FirstServiceESB, serviceName=SimpleListener , it failed with the following excaption:

      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:55)
      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:341)
          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:646)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:300)
          ... 8 more

       

      I also checked the ESB-console,  the service "FirstServiceESB:SimpleListener" list there, doesn't the ServiceInvoker work for ESB4.7 or SOA-P 5.0?

       

      Thanks, Denny

        • 1. Re: ESB ServiceInvoker does not work
          beve

          Hi Denny,

           

          but when I tried to  run SendESBMessage with serviceCategory=FirstServiceESB, serviceName=SimpleListener , it failed with the following excaption:

           

          Are you using 'ant sendesb' to test this? If not can you try that to see that it works?

           

          Regards,

           

          /Daniel

          • 2. Re: ESB ServiceInvoker does not work
            kconner

            ServiceInvoker definitely works.

             

            It looks like you have an issue with your scout/juddi configuration and/or classpath, as this is coming from the V3 registry code.

             

            Kev

            • 3. Re: ESB ServiceInvoker does not work
              dennyxu

              Daniel, I ran the test using Eclipse.

               

              I just download a jbossesb-server-4.7, changed quickstarts.properties to set the property "org.jboss.esb.server.home" to  "/home/fugang/jboss-all/jbossesb-server-4.7" , start the server and run the "helloworld" example using "ant sendesb" after it was deployed to the server, it works,  then I change the property "org.jboss.esb.server.home" to "/home/fugang/jboss-all/jboss-soa-p.5.0.0/jboss-as" in  quickstarts.properties and run the same "helloworld", it does not work with the error:


              [java] WARNING: Error loading security provider org.bouncycastle.jce.provider.BouncyCastleProvider: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/fugang/jboss-all/jbossesb-server-4.7/samples/quickstarts/helloworl

              ............

              ], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}

               

              BUILD FAILED
              /home/fugang/jboss-all/jbossesb-server-4.7/samples/quickstarts/helloworld/build.xml:23: Java returned: -1

               

              Is there any special configuration for ServiceInvoker with SOA-P 5.0?

               

              Denny

              • 4. Re: ESB ServiceInvoker does not work
                kconner
                There is no org.bouncycastle in SOA as far as I am aware, looks like you have an environmental issue.
                • 5. Re: ESB ServiceInvoker does not work
                  dennyxu
                  I download the SOA-P5.0 beta1 from porkchop, why is the jar missing? so it should be a bug of SOA? I don't find bouncycastle.jar in jbossesb-server-4.7 either, but it works.
                  • 6. Re: ESB ServiceInvoker does not work
                    kconner
                    The question should be why are you configuring it.  This is not a jar which is associated with SOA nor with ESB.
                    • 7. Re: ESB ServiceInvoker does not work
                      dennyxu
                      I didn't configure it, what I have done is trying to run the "helloworld" quickstart of ESB 4.7 in SOA-P 5.0,  I just following the quickstarts guide line. I change nothing except set quickstart.properties.
                      • 8. Re: ESB ServiceInvoker does not work
                        kconner
                        bouncycastle is a cryptographic extension which needs to be configured in your environment, it is not something that we configure in SOA nor ESB.
                        • 9. Re: ESB ServiceInvoker does not work
                          beve

                          Hi Denny,

                           

                          like Kev said this is probably something in your local setup. I've downloaded the same version as you are using and tried this and it works without error for me.

                           

                          Can you take a look in the $JAVA_HOME/jre/lib/security/java.security and see if you have a security provider named org.bouncycastle.jce.provider.BouncyCastleProvider?

                           

                          Regards,

                           

                          /Daniel

                          • 10. Re: ESB ServiceInvoker does not work
                            dennyxu
                            Daniel, I don't find a security provider named org.bouncycastle.jce.provider.BouncyCastleProvider in the java.security file.   I run the "helloworld" quickstart on two different PC , one is on Fedora 10 and another is Fedora 8,  they both get the same error as described :
                            https://jira.jboss.org/jira/browse/SOA-1864
                            , just now, I tried to run the test on Vista, it works without errors, it seems something wrong with my Linux environment.