1 Reply Latest reply on Feb 14, 2006 12:50 PM by Thomas Diesler

    Minimum list of libraries for a jaxr client

    Noel Rocher Apprentice

      when doing a JAXR client test, I'm using *.jar from jboss/client and jboss/server/default/lib. It works.

      Looking at the testsuite + more tests, I've found that a reduced list could be :

      (jdk 1.4.2_06 / JBoss-4.0.3SP1)

       <fileset dir="${lib.dir}">
       <include name="juddi.jar" />
       </fileset>
       <fileset dir="${jboss.home}/lib/endorsed">
       <include name="*.jar" />
       </fileset>
       <fileset dir="${jboss.home}/client">
       <include name="wsdl4j.jar" />
       <include name="namespace.jar" />
       <include name="log4j.jar" />
       <include name="axis-ws4ee.jar" />
       <include name="jboss-ws4ee-client.jar" />
       <include name="jboss-jaxrpc.jar" />
       <include name="jboss-saaj.jar" />
       <include name="jboss-j2ee.jar" />
       <include name="jbossall-client.jar" />
       <include name="jboss-common-client.jar" />
       <include name="commons-logging.jar" />
       <include name="activation.jar" />
       <include name="commons-discovery.jar" />
       <include name="scout.jar" />
       <include name="juddisaaj.jar" />
       </fileset>
       <fileset dir="${lib.dir}/jwsdp15">
       <include name="jaxr-api.jar" />
       </fileset>
      


      but I've got :

       [java] - Mapping Exception to AxisFault
       [java] java.lang.ClassCastException
       [java] at org.jboss.axis.message.SOAPBodyAxisImpl.getFirstBody(SOAPBodyAxisImpl.java:235)
       [java] at org.jboss.axis.message.SOAPEnvelopeAxisImpl.getFirstBody(SOAPEnvelopeAxisImpl.java:242)
       [java] at org.jboss.axis.client.Call.invoke(Call.java:3005)
       [java] at org.jboss.axis.client.Call.invoke(Call.java:2059)
       [java] at org.jboss.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:125)
       [java] at org.jboss.jaxr.juddi.transport.SaajTransport.send(SaajTransport.java:81)
       [java] at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
       [java] at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:547)
       [java] at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:532)
       [java] at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:678)
       [java] at org.jboss.example.uddi.publisher.WSDLToUDDI.<init>(WSDLToUDDI.java:65)
       [java] at org.jboss.example.uddi.publisher.SimpleWSDLPublisher.init(SimpleWSDLPublisher.java:159)
       [java] at org.jboss.example.uddi.publisher.SimpleWSDLPublisher.main(SimpleWSDLPublisher.java:131)
       [java] Client::
       [java] at org.jboss.jaxr.juddi.transport.SaajTransport.send(SaajTransport.java:94)
       [java] at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
       [java] at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:547)
       [java] at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:532)
       [java] at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:678)
       [java] at org.jboss.example.uddi.publisher.WSDLToUDDI.<init>(WSDLToUDDI.java:65)
       [java] at org.jboss.example.uddi.publisher.SimpleWSDLPublisher.init(SimpleWSDLPublisher.java:159)
       [java] at org.jboss.example.uddi.publisher.SimpleWSDLPublisher.main(SimpleWSDLPublisher.java:131)
       [java] Client::
       [java] at org.jboss.jaxr.juddi.transport.SaajTransport.send(SaajTransport.java:101)
       [java] at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
       [java] at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:547)
       [java] at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:532)
       [java] at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:678)
       [java] at org.jboss.example.uddi.publisher.WSDLToUDDI.<init>(WSDLToUDDI.java:65)
       [java] at org.jboss.example.uddi.publisher.SimpleWSDLPublisher.init(SimpleWSDLPublisher.java:159)
       [java] at org.jboss.example.uddi.publisher.SimpleWSDLPublisher.main(SimpleWSDLPublisher.java:131)
       [java] Caused by: Client::
       [java] at org.jboss.jaxr.juddi.transport.SaajTransport.send(SaajTransport.java:94)
       [java] ... 7 more
       [java] javax.xml.registry.JAXRException: Client::
      


      Any advice ?
      Also, is using the JAXRConnection from JNDI will reduce my list ?

      --noel