13 Replies Latest reply on Jul 27, 2011 8:29 PM by Hector Mendoza

    Remote ServiceInvoker - looking for working example

    Łukasz Stachowiak Newbie

      Hi!

       

       

      I'm looking for working example of project which use ServiceInvoker to invoke JBoss ESB service on remote server. I know that this kind of client (remote) needs additional configuration (jbossesb-properties.xml and uddi.xml) but I can't figure it out how to make it work. Can someone provide me working example? Or some step-by-step tutorial? I will be very grateful!

       

       

      Łukasz

        • 1. Re: Remote ServiceInvoker - looking for working example
          Daniel Bevenius Master

          Hi,

           

          have you taken a look at the section "Configuration for a remote ServiceInvoker" in the Programmers Guide? It has a section that about how to set up the correct path for a service invoker.

           

          Also searching this forum should give you a few hits as this as been asked in the past.

           

          Regards,

           

          /Daniel

          • 2. Re: Remote ServiceInvoker - looking for working example
            Łukasz Stachowiak Newbie

            yes, I read it and there's only stuff about required jars. About configuration there is only few words:

            The following configuration file is also required to be available on the classpath:
            • jbossesb-properties.xml
            • META-INF/uddi.xml

            And thats all. I need this configuration. Currently I'm fighting with exception:

            ERROR [main] (JAXRConnectionFactory.java:131) - Could not set up a connection to the Registry. Invalid queryManagerURL: jnp://localhost:1199/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire javax.xml.registry.InvalidRequestException: Invalid queryManagerURL: jnp://localhost:1199/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire      at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)      at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:128)      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:299)      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.(ServiceInvoker.java:174)      at org.jboss.soa.esb.client.ServiceInvoker.(ServiceInvoker.java:155)      at org.jboss.soa.esb.client.ServiceInvoker.(ServiceInvoker.java:197)      at pl.lstachowiak.esb.jbossclient.Client.callSynchronously(Client.java:23)      at pl.lstachowiak.esb.jbossclient.Client.main(Client.java:40) Caused by: java.net.MalformedURLException: unknown protocol: jnp      at java.net.URL.(URL.java:574)      at java.net.URL.(URL.java:464)      at java.net.URL.(URL.java:413)      at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)      ... 11 more

             

             

            /Łukasz

            • 3. Re: Remote ServiceInvoker - looking for working example
              Scott Dawson Apprentice

              In the registry section of jbossesb-properties.xml, try setting these values:

               

              <property name="org.jboss.soa.esb.registry.queryManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire"/>

              <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDIPublicationService#publish"/>

              <property name="org.jboss.soa.esb.registry.securityManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDISecurityService#secure"/>

               

              Regards,

              Scott

              • 4. Re: Remote ServiceInvoker - looking for working example
                joe_boy12 Novice

                Lukasz

                 

                I have it working from my desktop talking to my laptop. You need start the ESB server with -b option e.g. run -c esb -b mylaptop.abc.com

                 

                then on remote client box (in my case desktop)

                put the laptop IP (wireless or local) in your hosts file e.g.

                10.xxx.xxx.xx mylaptop.abc.com

                 

                I also have following files in classpath or in META-INF on remote client

                 

                alter jbossesb-properties.xml with

                <property name="org.jboss.soa.esb.jndi.server.url" value="mylaptop.abc.com"/>

                <property name="org.jboss.soa.esb.mail.smtp.host" value="mylaptop.abc.com"/>

                 

                ===========================================

                then have following in uddi.xml

                 

                <?xml version="1.0" encoding="ISO-8859-1" ?>
                <uddi>
                    <reloadDelay>5000</reloadDelay>
                    <manager name="test-manager">
                  <nodes>
                   <node>
                       <!-- required 'default' node -->
                    <name>default</name>
                    <description>Main jUDDI node</description>
                    <properties>
                     <property name="serverName" value="mylaptop.abc.com" />

                     <property name="serverPort" value="8880" />
                    </properties>
                    <!-- RMI Transport Settings -->
                    <proxyTransport>org.jboss.internal.soa.esb.registry.client.JuddiRMITransport</proxyTransport>
                    <custodyTransferUrl>/juddiv3/UDDICustodyTransferService</custodyTransferUrl>
                    <inquiryUrl>/juddiv3/UDDIInquiryService</inquiryUrl>
                           <publishUrl>/juddiv3/UDDIPublicationService</publishUrl>
                           <securityUrl>/juddiv3/UDDISecurityService</securityUrl>
                    <subscriptionUrl>/juddiv3/UDDISubscriptionService</subscriptionUrl>
                    <subscriptionListenerUrl>/juddiv3/UDDISubscriptionListenerService</subscriptionListenerUrl>
                    <juddiApiUrl>/juddiv3/JUDDIApiService</juddiApiUrl>
                    <javaNamingFactoryInitial>org.jnp.interfaces.NamingContextFactory</javaNamingFactoryInitial>
                    <javaNamingFactoryUrlPkgs>org.jboss.naming</javaNamingFactoryUrlPkgs>
                    <javaNamingProviderUrl>jnp://mylaptop.abc.com:1099</javaNamingProviderUrl>
                   </node>
                  </nodes>
                </manager>
                </uddi>

                ==================================================

                and jndi.properties

                java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
                java.naming.provider.url=jnp://mylaptop.abc.com:1099
                java.naming.factory.url.pkgs=org.jboss.naming
                java.naming.factory.url.pkgs=org.jnp.interfaces

                 

                 

                again this is on SOA 5.1 and really not sure whether we need all these files/entries on remote client - but this is working.

                 

                Message was edited by: joe_boy12

                • 5. Re: Remote ServiceInvoker - looking for working example
                  Łukasz Stachowiak Newbie

                  hi joe_boy12!

                   

                  Thanks for your answer! Could you paste me your full jbossesb-properties? I still have the same exception with unknown protocol: jnp

                   

                  Thanks in advance!

                   

                   

                  Łukasz

                  • 6. Re: Remote ServiceInvoker - looking for working example
                    joe_boy12 Novice

                    here is the whole jbossesb-properties.xml file from my classpath - I believe you have all the jars in classpath too

                    ================

                    <?xml version="1.0" encoding="ISO-8859-1"?>
                    <esb
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
                        <properties name="core">
                      <property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
                      <property name="org.jboss.soa.esb.jndi.server.url" value="mylaptop.abc.com"/>
                      <property name="org.jboss.soa.esb.persistence.connection.factory"  value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
                            <property name="jboss.esb.invm.scope.default" value="NONE"/>
                        </properties>
                      <properties name="security">
                            <property name="org.jboss.soa.esb.services.security.implementationClass" value="org.jboss.internal.soa.esb.services.security.JaasSecurityService" />
                            <property name="org.jboss.soa.esb.services.security.callbackHandler" value="org.jboss.internal.soa.esb.services.security.UserPassCallbackHandler" />
                            <property name="org.jboss.soa.esb.services.security.sealAlgorithm" value="TripleDES" />
                         <property name="org.jboss.soa.esb.services.security.sealKeySize" value="168" />
                         <property name="org.jboss.soa.esb.services.security.contextTimeout" value="30000" />
                         <property name="org.jboss.soa.esb.services.security.contextPropagatorImplementationClass" value="org.jboss.internal.soa.esb.services.security.JBossASContextPropagator" />
                         <property name="org.jboss.soa.esb.services.security.publicKeystore" value="/publicKeyStore" />
                         <property name="org.jboss.soa.esb.services.security.publicKeystorePassword" value="testKeystorePassword" />
                         <property name="org.jboss.soa.esb.services.security.publicKeyAlias" value="testAlias" />
                         <property name="org.jboss.soa.esb.services.security.publicKeyPassword" value="testPassword" />
                    <property name="org.jboss.soa.esb.services.security.publicKeyTransformation" value="RSA/ECB/PKCS1Padding" />
                        </properties>
                        <properties name="registry">
                         <property name="org.jboss.soa.esb.registry.queryManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire"/>
                         <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDIPublicationService#publish"/>
                         <property name="org.jboss.soa.esb.registry.securityManagerURI" value="org.apache.juddi.v3.client.transport.wrapper.UDDISecurityService#secure"/>
                         <property name="org.jboss.soa.esb.registry.implementationClass" value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
                         <property name="org.jboss.soa.esb.registry.factoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
                         <property name="org.jboss.soa.esb.registry.user" value="root"/>
                         <property name="org.jboss.soa.esb.registry.password" value="root"/>
                         <!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
                         <property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.LocalTransport"/>
                         <property name="org.jboss.soa.esb.scout.proxy.uddiVersion" value="3.0"/>
                         <property name="org.jboss.soa.esb.scout.proxy.uddiNameSpace" value="urn:uddi-org:api_v3"/>
                         <!-- Organization Category to be used by this deployment. -->
                            <property name="org.jboss.soa.esb.registry.orgCategory" value="org.jboss.soa.esb.:category"/>
                        </properties>
                        <properties name="transports" depends="core">
                         <property name="org.jboss.soa.esb.mail.smtp.host" value="mylaptop.abc.com"/>
                         <property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
                         <property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
                         <property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
                        </properties>
                        <properties name="connection">
                         <property name="min-pool-size" value="5"/>
                         <property name="max-pool-size" value="10"/>
                         <property name="blocking-timeout-millis" value="5000"/>
                         <property name="abandoned-connection-timeout" value="10000"/>
                         <property name="abandoned-connection-time-interval" value="30000"/>
                        </properties>
                        <properties name="dbstore">
                      <property name="org.jboss.soa.esb.persistence.db.connection.url"  value="jdbc:oracle:thin://mylaptop.abc.com:1521/"/>
                      <property name="org.jboss.soa.esb.persistence.db.jdbc.driver"   value="oracle.jdbc.driver.OracleDriver"/>
                      <property name="org.jboss.soa.esb.persistence.db.user"    value="me"/>
                      <property name="org.jboss.soa.esb.persistence.db.pwd"    value="password"/>
                      <property name="org.jboss.soa.esb.persistence.db.pool.initial.size" value="2"/>
                      <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
                      <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
                      <!--table managed by pool to test for valid connections - created by pool automatically -->
                      <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
                      <!-- # of milliseconds to timeout waiting for a connection from pool -->
                      <property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis" value="5000"/>
                                    <property name="org.jboss.soa.esb.persistence.db.conn.manager" value="org.jboss.internal.soa.esb.persistence.manager.StandaloneConnectionManager"/>
                        </properties>

                        <properties name="messagerouting">
                         <property name="org.jboss.soa.esb.routing.cbrClass" value="org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter"/>
                        </properties>
                    </esb>
                    ============

                    • 7. Re: Remote ServiceInvoker - looking for working example
                      Łukasz Stachowiak Newbie

                      Still not working :(

                      ERROR [main] (JAXRConnectionFactory.java:131) - Could not set up a connection to the Registry. Invalid queryManagerURL: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire
                      javax.xml.registry.InvalidRequestException: Invalid queryManagerURL: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire
                           at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)
                           at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:128)
                           at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:299)
                           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.(ServiceInvoker.java:174)
                           at org.jboss.soa.esb.client.ServiceInvoker.(ServiceInvoker.java:155)
                           at org.jboss.soa.esb.client.ServiceInvoker.(ServiceInvoker.java:197)
                           at pl.lstachowiak.esb.jbossclient.Client.callSynchronously(Client.java:23)
                           at pl.lstachowiak.esb.jbossclient.Client.main(Client.java:40)
                      Caused by: java.net.MalformedURLException: no protocol: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire
                           at java.net.URL.(URL.java:567)
                           at java.net.URL.(URL.java:464)
                           at java.net.URL.(URL.java:413)
                           at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)
                           ... 11 more
                      • 8. Re: Remote ServiceInvoker - looking for working example
                        joe_boy12 Novice

                        this is how my Eclipse classpath looks like, the instructions missing couple of jars in programmers guide.

                         

                        ======================

                        <?xml version="1.0" encoding="UTF-8"?>
                        <classpath>
                        <classpathentry kind="src" path="src"/>
                        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre6"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/activation.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/antlr.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/concurrent.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/ejb3-persistence.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/FastInfoset.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/getopt.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/hibernate-annotations.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/hibernate-commons-annotations.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/hibernate-core.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/hibernate-validator.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/hornetq-core-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/hornetq-jms-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jacorb.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/javassist.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jaxb-api.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jaxb-impl.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jaxb-xjc.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jaxws-rt.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jaxws-tools.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-aop-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-appclient.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-aspect-jdk50-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-common-core.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-deployers-client-spi.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-deployers-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-deployers-core-spi.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-deployers-core.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-deployers-vfs-spi.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-deployers-vfs.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-deployment.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-common-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-core-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-ext-api-impl.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-ext-api.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-proxy-clustered-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-proxy-impl-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-proxy-spi-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-security-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ejb3-vfs-spi.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ha-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-ha-legacy-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-iiop-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-integration.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-j2se.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-jaspi-api.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-javaee.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-jsr77-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-logging-jdk.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-logging-log4j.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-logging-spi.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-mdr.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-messaging-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-metadata.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-profileservice-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-remoting.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-security-spi.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-serialization.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-srp-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-system-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-system-jmx-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jboss-xml-binding.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossall-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbosscx-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossjmx-ant.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossjts-integration.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossjts-jacorb.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossjts.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbosssx-as-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbosssx-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-common.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-framework.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-jboss50.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-native-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-native-core.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-native-jaxrpc.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-native-jaxws-ext.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-native-jaxws.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-native-saaj.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jbossws-spi.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jettison.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jmx-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jmx-invoker-adaptor-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/jnp-client.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/log4j.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/logkit.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/mail.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/netty.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/riftsaw-tools-2.1.5.Final.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/riftsaw-utils-2.1.5.Final.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/scout-1.2.2.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/slf4j-api.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/slf4j-jboss-logging.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/stax-api.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/stax-ex.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/streambuffer.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/trove.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/wsdl4j.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/wstx.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/client/xmlsec.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/commons-codec-1.3.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/commons-collections.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/commons-configuration-1.5.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/commons-lang.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/commons-logging.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/httpclient-4.0.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/httpcore-4.0.1.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/log4j.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/xercesImpl.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/jbossesb-config-model-1.0.1.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/jbossesb-registry.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/jbossesb-rosetta.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/jbossts-common.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/juddi-client-3.0.4.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/juddi-core-3.0.4.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/uddi-ws-3.0.4.jar"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/esb/xbean-2.2.0.jar"/>
                        <classpathentry kind="lib" path="resource"/>
                        <classpathentry kind="lib" path="/jboss-esb-shared-lib/common/xalan-2.7.0.jar"/>
                        <classpathentry kind="output" path="bin"/>
                        </classpath>

                        ======================

                        • 9. Re: Remote ServiceInvoker - looking for working example
                          everson . Newbie

                          hi lukasz

                           

                          did you  fix your problem ?

                           

                          I have the same problem, i'm trying to run serviceinvoker standalone

                           

                          I copy into my classpath jbossesb-properties.xml from helloworld quickstarts

                           

                           

                          System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");

                          ServiceInvoker deliveryAdapter = new ServiceInvoker("colaboradorActionCategory", "colaboradorActionService");//exception

                           

                           

                          14:42:43,100 ERROR [main][JAXRConnectionFactory] Could not set up a connection to the Registry. Invalid queryManagerURL: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire

                          javax.xml.registry.InvalidRequestException: Invalid queryManagerURL: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire

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

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

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

                              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 br.senai.sc.integracao.teste.esb.ColaboradorIntegracaoTest.testeenvio(ColaboradorIntegracaoTest.java:58)

                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                              at java.lang.reflect.Method.invoke(Method.java:597)

                              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)

                              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

                              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)

                              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)

                              at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)

                              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)

                              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)

                              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)

                              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)

                              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)

                              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)

                              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)

                              at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

                              at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)

                              at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

                              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

                              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

                              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

                              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

                          Caused by: java.net.MalformedURLException: no protocol: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire

                              at java.net.URL.<init>(URL.java:567)

                              at java.net.URL.<init>(URL.java:464)

                              at java.net.URL.<init>(URL.java:413)

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

                              ... 33 more

                          • 11. Re: Remote ServiceInvoker - looking for working example
                            everson . Newbie

                            I don't have uddi.xml? in my project classpath ... do I need make a uddi.xml file ? or is it already exists ? always there one on jboss  temp files

                            • 12. Re: Remote ServiceInvoker - looking for working example
                              Tom Cunningham Master

                              everson - try taking a look at this thread :

                               

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

                               

                              There's a lot of gotchas here, and I think this thread hit a lot of them.

                              • 13. Re: Remote ServiceInvoker - looking for working example
                                Hector Mendoza Newbie

                                I follow the instructions describe there, but still with the same error.

                                 

                                I use JBoss ESB Server 4.9 (use -b 0.0.0.0 to start up)

                                jdk 6 and try to invoke from eclipse ESB proyect, i attach follow files for inspection:

                                 

                                src

                                - META-INF/uddi.xml

                                - jbossesb-properties.xml

                                - jndi.properties

                                 

                                And the files i had included in classpath. I use the jars rom here .

                                 

                                I been trying with several configurations and nothing work out, and yes i saw other post and the problem with the jar version files and registry configuration.

                                 

                                Suggestions?

                                 

                                18:16:05,562 ERROR [main][JAXRConnectionFactory] Could not set up a connection to the Registry. Invalid queryManagerURL: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire
                                javax.xml.registry.InvalidRequestException: Invalid queryManagerURL: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire
                                    at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)
                                    at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:128)
                                    at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:299)
                                    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 com.kaf.esb.test.ESBClient.main(ESBClient.java:18)
                                Caused by: java.net.MalformedURLException: no protocol: org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService#inquire
                                    at java.net.URL.<init>(Unknown Source)
                                    at java.net.URL.<init>(Unknown Source)
                                    at java.net.URL.<init>(Unknown Source)
                                    at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)
                                    ... 10 more
                                

                                 

                                 

                                I don't see a juddiv3.war inside the jboss esb server, but i see in the jbossesb installation zip, but cant deploy the war. Is necesary?