Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Very strange behavior, please, HELP (GenericServlet problem, error 500)

Very strange behavior, please, HELP (GenericServlet problem, error 500)

2003-06-06       - By Shapira, Yoav

 Back

Howdy,
I'm so tired of typing this explanation ;(

Your error is not a ClassNotFoundException.  It's a
NoClassDefFoundError.  They are different.  It happens because you have
multiple copies of servlet.jar in your classpath.  One of this copies,
likely the one /usr/java1.2, is old.

Your manipulations of the classpath are wrong and have just worsened
your situation.  Wipe out your tomcat installation.  Do a clean one.
Don't modify the CLASSPATH in your environment.  Don't modify the
CLASSPATH in catalina.sh.  Don't add anything to common/lib.  Just put
the jars you need in your webapp's WEB-INF/lib directory.  Make sure to
NOT put servlet.jar there.  You must only have one servlet.jar, the one
that comes with tomcat, throughout your entire tomcat installation.

Yoav Shapira
Millennium ChemInformatics


>-- --Original Message-- --
>From: Pavel Senko [mailto:psenko@(protected)]
>Sent: Thursday, June 05, 2003 3:36 PM
>To: tomcat-user@(protected)
>Subject: Very strange behavior, please, HELP (GenericServlet problem,
error
>500)
>
>Hi All,
>
>I've got Tomcat 4.1.18 + Apache 1.39 (Solaris, Sparc); Tomcat itself
>works OK (shows examples, docs and all stuff).
>
>When I try to execute one servlet, it gives me error 500 (see error
text
>below).
>I've put into CLASSPATH everything *.jar (then restarted Tomcat and
>Apache), copied all the jars into <tomcat>/common/lib but the errors
>still apprears.
>I've also edited catalina.sh and hardcoded CLASSPATH there just to be
>sure Tomcat wouldn't miss it for some mistique reason. Still no
progress.
>
>Here is CLASSPATH:
>/usr/java1.2/jre/lib/exactvm.jar:/usr/java1.2/jre/lib/rt.jar:/usr/java1
.2/l
>ib/dt.jar:/usr/java1.2/jre/lib/ext/javax/servlet:/usr/java1.2/jre/lib/e
xt:/
>usr/java1.2/lib/tools.jar:/usr/java1.2/lib/dt.jar:/usr/java1.2/src.jar:
/met
>rics/tomcat/common/lib/naming-
>resources.jar:/metrics/tomcat/common/lib/naming-
>factory.jar:/metrics/tomcat/common/lib/naming-
>common.jar:/metrics/tomcat/common/lib/mail.jar:/metrics/tomcat/common/l
ib/j
>ta.jar:/metrics/tomcat/common/lib/jndi.jar:/metrics/tomcat/common/lib/j
dbc2
>_0-stdext.jar:/metrics/tomcat/common/lib/jasper-
>runtime.jar:/metrics/tomcat/common/lib/jasper-
>compiler.jar:/metrics/tomcat/common/lib/commons-
>pool.jar:/metrics/tomcat/common/lib/commons-logging-
>api.jar:/metrics/tomcat/common/lib/commons-
>dbcp.jar:/metrics/tomcat/common/lib/commons-
>collections.jar:/metrics/tomcat/common/lib/ant.jar:/metrics/tomcat/comm
on/l
>ib/activation.jar:/metrics/tomcat/common/lib/chart.ext.jar:/metrics/tom
cat/
>common/lib/chart.jar:/usr/java:.:/metrics/tomcat/common/lib/servlet.jar
:/me
>trics/tomcat/common/lib:/metrics/tomcat/common/lib/chartServer.jar
>
>I've seen the similar errors topics where the advice "include tools.jar
>into CLASSPATH" seems to be working.
>I'm kind of new in Servlets, so I don't really know what to dig. Any
>advice will be appreciated.
>
>Thanks,
>Pavel.
>
>here it is, the error:
>
>HTTP Status 500 -
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
----
>-- --
>
>type Exception report
>
>message
>
>description The server encountered an internal error () that prevented
>it from fulfilling this request.
>
>exception
>
>javax.servlet.ServletException Source code of javax.servlet.ServletException: Cannot allocate servlet instance for
>path /servlet/com.objectplanet.chart.ChartServlet
>at java.lang.Throwable Source code of java.lang.Throwable(Native Method)
>at java.lang.Throwable Source code of java.lang.Throwable(Compiled Code)
>at java.lang.Throwable Source code of java.lang.Throwable(Compiled Code)
>at java.lang.Exception Source code of java.lang.Exception(Compiled Code)
>at javax.servlet.ServletException Source code of javax.servlet.ServletException(ServletException.java:132)
>at
>org.apache.catalina.servlets.InvokerServlet Source code of org.apache.catalina.servlets.InvokerServlet(InvokerServlet
.jav
>a:435)
>at
>org.apache.catalina.servlets.InvokerServlet Source code of org.apache.catalina.servlets.InvokerServlet(InvokerServlet.java:1
80)
>at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:740)
>at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
>at
>org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(Applic
atio
>nFilterChain.java:247)
>at
>org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFil
terC
>hain.java:193)
>at
>org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperVal
ve.j
>ava:260)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>at
>org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextVal
ve.j
>ava:191)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(Compiled Code)
>at org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext(Compiled Code)
>at
>org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.jav
a:18
>0)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.java:170)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:641)
>at
>org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve.jav
a:17
>2)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:641)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>at
>org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve
.jav
>a:174)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>at
org.apache.coyote.tomcat4.CoyoteAdapter Source code of org.apache.coyote.tomcat4.CoyoteAdapter(CoyoteAdapter.java:223)
>at org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Compiled Code)
>at
>org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
>ection(Http11Protocol.java:386)
>at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
>at
>org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
>Code)
>at java.lang.Thread Source code of java.lang.Thread(Thread.java:479)
>
>
>root cause
>
>java.lang.NoClassDefFoundError Source code of java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
>at java.lang.ClassLoader Source code of java.lang.ClassLoader(Native Method)
>at java.lang.ClassLoader Source code of java.lang.ClassLoader(Compiled Code)
>at java.lang.ClassLoader Source code of java.lang.ClassLoader(Compiled Code)
>at java.lang.ClassLoader Source code of java.lang.ClassLoader(Compiled Code)
>at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>at java.lang.ClassLoader Source code of java.lang.ClassLoader(Compiled Code)
>at org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader(Compiled
Code)
>at org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader(Compiled
Code)
>at org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper(Compiled Code)
>at org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper(Compiled Code)
>at
>org.apache.catalina.servlets.InvokerServlet Source code of org.apache.catalina.servlets.InvokerServlet(InvokerServlet
.jav
>a:416)
>at
>org.apache.catalina.servlets.InvokerServlet Source code of org.apache.catalina.servlets.InvokerServlet(InvokerServlet.java:1
80)
>at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:740)
>at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
>at
>org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(Applic
atio
>nFilterChain.java:247)
>at
>org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFil
terC
>hain.java:193)
>at
>org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperVal
ve.j
>ava:260)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>at
>org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextVal
ve.j
>ava:191)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(Compiled Code)
>at org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext(Compiled Code)
>at
>org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.jav
a:18
>0)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.java:170)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:641)
>at
>org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve.jav
a:17
>2)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:641)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>at
>org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve
.jav
>a:174)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
>keNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
>at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
>at
org.apache.coyote.tomcat4.CoyoteAdapter Source code of org.apache.coyote.tomcat4.CoyoteAdapter(CoyoteAdapter.java:223)
>at org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Compiled Code)
>at
>org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
>ection(Http11Protocol.java:386)
>at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
>at
>org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
>Code)
>at java.lang.Thread Source code of java.lang.Thread(Thread.java:479)
>
>
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to whom
it is addressed, and may not be saved, copied, printed, disclosed or used by
anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.