1 Reply Latest reply on Jun 23, 2006 5:28 AM by matthewtowler

    Getting started with JBoss and NetBeans

    matthewtowler

      I have been programming for many years, but am new to web services so excuse me if some of this is obvious. I am attempting to get a 'hello world' type application working using the example "NetBeans IDE 5.0 Quick Start Guide for Web Services" from the Netbeans docs. I am using Jboss 4.0.4Patch 1, Java EE 5.0.

      I have read some of the guides and troubleshooters for using Jboss with netbeans, and have found that first building my service first for the Sun Server and then switching to JBoss just before deployment gives me something that deploys and almost works, but at this point I get stuck. The error message I get when I attempt to invoke the service is as follows.

      java.lang.NoClassDefFoundError: com/sun/org/apache/xerces/internal/dom/DocumentImpl

      Looking in the Jboss/lib directory there is a xerces.jar, and in that is a class /org/apache/xerces/dom/DocumentImpl which I am guessing is what should be used, but I note this does not include the /internal/ that is in the error message.

      Skipping past the classloaders, the next part of the calling stack that looks interesting is this. I think this means that it is the SAAJ code that is attempting to open this module and failing.

      at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.(SOAPPartImpl.java:63)
      at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.(SOAPPart1_1Impl.java:29)
      at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:52)
      at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:672)
      at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:87)

      Does anyone have any suggestions as to where I am going wrong?

      I have wondered about trying to use the JBoss example, but it is all command line and for someone with little expertise the graphical build and deployment of netbeans is rather important.

      Thanks for any help

      Matthew