BTW, I tried it from my java IDE, but I don't have an IDE integrated with Tomcat, and I got a different error when I tried it- probably because I wasn't invoking from within a servlet engine.
-Mark
Davanum Srinivas wrote:
can u please post the whole stacktrace...
-- dims
On 4/30/05, Mark Leone <[EMAIL PROTECTED]> wrote:
I have a servlet in which I'm making a static call to org.apache.utils.XMLUtils.newDocument(InputStream inp). Tomcat, my servlet container, returns a class definition not found error, looking for SOAPException. I've gone through the XMLUtils source code ( and source code for all methods invoked by newDocument() ) over and over again, and there's simply no reference to SOAP exception anywhere in my processing thread. It appears only one time in the entire class, in method getEncoding(), which cannot possibly be invoked downstream of newDocument(). And anyway, it's certainly not one of the three exceptions thrown by newDocument().
Something weird is going on here. Here is the stack trace returned by Tomcat when I invoke the servlet.
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException Proxy.ProxyServlet.handleHtmlFile(ProxyServlet.java:94) Proxy.ProxyServlet.doGet(ProxyServlet.java:55) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
ProxyServlet is my code, and line 94 reads
Document doc = XMLUtils.newDocument(conn.getInputStream())
conn is an instance of HttpURLConnection that was returned by url.openConnection(), where url is an instance of URL initialized to a valid url value.
