QM wrote:
On Sat, Apr 30, 2005 at 09:33:11AM -0400, Mark Leone wrote:
: I have a servlet in Tomcat that makes a static call to
: XMLUtils.newDocument(). This is a utility class provided with apache
: axis, and I have axis.jar in %catalina_home%\shared\lib.
Before we even begin -- why is axis.jar in shared/lib? Why not the
webapp's WEB-INF/lib?
Because I want the web app I wrote to be able to call XMLUtils methods,
which are deployed in axis.jar.
A NoClassDefFound error means a class was present at compile time, but
isn't available at runtime; in turn, this usually boils down to a
classloader/visibility issue (if said JAR is somewhere in the
classpath).
Yes, your're right. I didn't realize the scope of dependencies that the
static methods in XMLUtils have on the rest of the axis classes. I moved
saaj.jar to %catalina_home%\shared\lib, and I got other NCDFEs, so I
moved all the axis jars, and it compiles now. However, I'm getting fatal
SAXParser errors when I try to ingest HTML 4.01 documents that are not
well-formed XML. Xerces has implemented support for HTML DOM, but
apparently there's no support for creating an HTMLDocumentImpl object
from an HTML 4.01 InputStream that doesn't happen to be well-formed XML.
If anyone knows a way to do this without writing a custom SAX parser,
please enlighten me.
-Mark
: newDocument() I get a Tomcat error page (see text below) with a partial
: stack trace indicating a missing class definition for
: javax.xml.soap.SOAPException.
Which JAR holds this class def? -or are there multiple JARs that do
this? Do they exist in multiple classloaders?
-QM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]