Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2005

Tip: Looking for answers? Try searching our database.

NoClassDefFoundError for SerializerFactory on Debian Tomcat but it works on SuSE.

Thread view: 
Adam Funk - 28 Nov 2005 11:35 GMT
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.
Roedy Green - 28 Nov 2005 16:04 GMT
> java.lang.NoClassDefFoundError
>        uk.ac.nactem.util.XMLWriter.write(XMLWriter.java:126)

see http://mindprod.com/jgloss/caq.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.