NoClassDefFoundError for SerializerFactory on Debian Tomcat but it works on SuSE.
- From: Adam Funk <a24061@xxxxxxxxx>
- Date: Mon, 28 Nov 2005 11:35:24 +0000
On my own computer, using the following Debian packages
libtomcat5-java 5.0.30-7
tomcat5 5.0.30-7
tomcat5-admin 5.0.30-7
tomcat5-webapps 5.0.30-7
I get this exception
java.lang.NoClassDefFoundError
uk.ac.nactem.util.XMLWriter.write(XMLWriter.java:126)
on this line
SerializerFactory sFactory =
SerializerFactory.getSerializerFactory(outputFormat.getMethod());
of a class that includes the following imports
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;
import org.apache.xml.serialize.*;
import org.w3c.dom.*;
import org.xml.sax.*;
when I try to run the program as a Tomcat webapp. But when I run it from
the console, the XMLWriter.write() method works without any problems and
produces the correct output.
On another computer (SuSE 9.2) with the following packages
struts-webapps-tomcat5-1.1-2
tomcat5-admin-webapps-5.0.27-9
tomcat5-5.0.27-9
tomcat5-webapps-5.0.27-9
the same web application runs and produces the correct output.
On both machines I installed the web application by deploying the same .war
file through the Tomcat manager.
I would be grateful for any suggestions for identifying and correcting the
discrepancy.
.
- Follow-Ups:
- Prev by Date: Re: read keyboard input and storing in an array?
- Next by Date: Re: cant's compile with javac
- Previous by thread: (help plz) help me in downloading weblogic latest version
- Next by thread: Re: NoClassDefFoundError for SerializerFactory on Debian Tomcat but it works on SuSE.
- Index(es):