2 Replies Latest reply on Dec 15, 2008 11:11 AM by John Harrison

    jboss 5, jdk 6 and web services

    John Harrison Newbie

      I've trying to deploy a SOAP web service on jboss 5. The service and client have been compiled with JDK 6. I've copied the jboss-native-* jars files to the lib/endorsed directory as recommended.

      When I run the client I get the following exception

      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
      at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.(AttachmentUnmarshallerImpl.java:55)
      at com.sun.xml.ws.message.stream.StreamMessage.readPayloadAsJAXB(StreamMessage.java:215)
      at com.sun.xml.ws.client.sei.ResponseBuilder$Body.readResponse(ResponseBuilder.java:444)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
      at $Proxy24.legacySelectAndSection(Unknown Source)
      at org.cas.ddaa.ws.test.DDAAClientTest.callMethod(DDAAClientTest.java:119)
      at org.cas.ddaa.ws.test.DDAAClientTest.main(DDAAClientTest.java:134)

      This happening when my client is unmarshalling the response from the server. Everything on the server has run correctly.

      Any suggestions? I'm stumped, apart from realising that it something to do with the problems using JDK 6 and JBoss.