Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internal Servlet error while running Java application

Status
Not open for further replies.

vapocalypse

Programmer
Oct 30, 2003
2
BR
Hi everybody, I'm having an "Internal Servlet Error" while running a Java application.
I don't know what is happening, but sometimes the execution stops at an exception (backtrace below).
We are using jakarta tomcat 3.3.1a. When it is restarted, the problem doesn't happen anymore in a while, when it happens again later, and we restart the server again and so on...
Does anyone here have an idea of what is going on? I suggested a version upgrade to see if the problem disappears. Should it work?

The server runs on Red Hat Advanced Server 2.1.

Here is the whole error message and backtrace:

Error: 500
Location: /desktop/SizingWizard/do_show_report.jsp
Internal Servlet Error:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.Toolkit$2.run(Toolkit.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at automatos.reports.Cover.addImage(Cover.java:111)
at automatos.reports.covers.desktop.pcapcon.Cover.write(Cover.java:11)
at automatos.reports.desktop.Report.write(Report.java:73)
at automatos.reports.Report.generate(Report.java:115)
at automatos.desktop.cpl.do_pcapcon_5._jspService(do_pcapcon_5.java:505)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Interceptor.java:221)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)

Thanks in advance.

Victor
 
>>>> java.lang.NoClassDefFoundError
You have a CLASSPATH error. In you file "desktop/SizingWizard/do_show_report.jsp" you are trying to invoke a class that Tomcat cannot locate. Check your environment variables, and make sure that custom classes are jar'ed and placed in TOMCAT_HOME/lib, or in TOMCAT_HOME/webapps/YourWebapp/WEB-INF/lib, or as bare class files in TOMCAT_HOME/webapps/YourWebapp/WEB-INF/classes.

Whether you should upgrade Tomcat or not is up to you - if you are running SDK1.4, I would upgrade to Tomcat 4.*, if running SDK1.3, I wouldn't.
 

I know it looks like a CLASSPATH error, but it works with just a restart.
We are using SDK 1.4, I think its better to upgrade to Tomcat 4.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top