1 Reply Latest reply on Oct 26, 2006 7:00 PM by Jason Greene

    Exception when invoking EJB3 webservice from clients/SchemaB

    Marco Novice

      hi all,
      i have exposed an EJB3 as a webservice....
      it is deployed fine on jboss, but whenn i try to invoke it from a client i got this bad exception..

      Exception in thread "main" java.rmi.RemoteException: Call invocation failed: Cou
      ld not transmit message; nested exception is:
       javax.xml.soap.SOAPException: Could not transmit message
       at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
       at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
       at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
       at $Proxy0.testWebServiceMethod(Unknown Source)
       at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.doTest(WSFacadeTester.j
      ava:49)
       at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.main(WSFacadeTester.jav
      a:34)
      Caused by: javax.xml.soap.SOAPException: Could not transmit message
       at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204
      )
       at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
       ... 5 more
      Caused by: java.lang.NoSuchMethodError: org.jboss.xb.binding.sunday.unmarshallin
      g.SchemaBinding.setXopMarshaller(Lorg/jboss/xb/binding/sunday/xop/XOPMarshaller;
      )V
       at org.jboss.ws.jaxb.JBossXBMarshallerImpl.marshal(JBossXBMarshallerImpl
      .java:145)
       at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.
      java:107)
       at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElemen
      t.java:157)
       at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.j
      ava:817)
       at org.jboss.ws.soap.SOAPContentElement.handleMTOMTransitions(SOAPConten
      tElement.java:1015)
       at org.jboss.ws.soap.SOAPContentElement.write(SOAPContentElement.java:96
      8)
       at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
      va:171)
       at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
      va:184)
       at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
      va:184)
       at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
      va:184)
       at org.jboss.ws.soap.SAAJElementWriter.printInternal(SAAJElementWriter.j
      ava:163)
       at org.jboss.ws.soap.SAAJElementWriter.print(SAAJElementWriter.java:142)
      
       at org.jboss.ws.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:266)
       at org.jboss.ws.binding.soap.SOAPMessageMarshaller.write(SOAPMessageMars
      haller.java:78)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnect
      ion(HTTPClientInvoker.java:164)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPCli
      entInvoker.java:81)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.jav
      a:143)
       at org.jboss.remoting.Client.invoke(Client.java:525)
       at org.jboss.remoting.Client.invoke(Client.java:488)
       at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189
      )
       ... 6 more
      


      in running my client, i am launching application as follows..

      C:\Sw\J2MEJobApp\wsclient>java -cp activation.jar;jbossall-client.jar;jboss-xml-
      binding.jar;jbossws-client.jar;mail.jar;serializer.jar;xalan.jar;xercesImpl.jar;
      xml-apis.jar;target\wsclient-1.0-SNAPSHOT.jar;. ws.jboss.org.samples.jsr181ejb.WSFacadeTester
      


      i m guessing there's a classpath clash... can anyone help me in fixing the problem?

      thanks and regards
      marco