tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: <load-on-startup> and Tomcat v4.0
Date Fri, 21 Sep 2001 18:10:18 GMT
On Fri, 21 Sep 2001, Graham Leggett wrote:

> Date: Fri, 21 Sep 2001 19:59:59 +0200
> From: Graham Leggett <minfrin@sharp.fm>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: Re: <load-on-startup> and Tomcat v4.0
>
> "Craig R. McClanahan" wrote:
>
> > As a general note, Tomcat 4 uses a validating XML parser when reading
> > web.xml files, to help you ensure that your web apps will be portable to
> > any container.  A consequence of this is that you must follow the element
> > ordering requirements in the DTD *exactly*.  Tomcat 3.2 did not do a
> > validating parse, so it accepted invalid web.xml files.
>
> This is probably the problem - in the root web.xml load-on-startup was
> last, and in the stuff supplied to me load-on-startup was first.
>
> Having fixed this though a new problem has arisen:
>
> I'm getting this in the logfile suddenly:
>
> 2001-09-21 12:27:21 StandardWrapper[:jsp]: Using Jasper classloader for
> servlet jsp
> 2001-09-21 12:27:21 StandardWrapper[:jsp]: Marking servlet jsp as
> unavailable
> 2001-09-21 12:27:21 StandardContext[]: Servlet  threw load() exception
> javax.servlet.ServletException: Class
> org.apache.jasper.servlet.JspServlet is not a Servlet
> [snip]
>
> 2001-09-21 12:56:18 StandardWrapper[/thh:feersum]: Marking servlet
> feersum as unavailable
> 2001-09-21 12:56:18 StandardContext[/thh]: Servlet /thh threw load()
> exception
> javax.servlet.ServletException: Class
> com.bitr8.feersumenjin.control.web.MainServlet is not a Servlet
> [snip]
>

This error is usually caused by having a "servlet.jar" file in your system
extensions directory.  Doing this causes grief.  A future update will make
Tomcat less sensitive to this particular issue, but for now you have to
remove any old servlet.jar file here.

> I understood from the docs that Tomcat v4.0 was backwards compatible -
> yet it complains that all of the servlets it's supposed to run are not
> servlets - does this make sense to anyone? Is there something missing
> that I should be configuring?
>
> Regards,
> Graham
> --

Craig


Mime
View raw message