You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by S Ramakrishnan <rk...@cisco.com> on 2001/04/02 23:24:51 UTC
ClassNotFound exceptions with Tomcat/4.0-b2
Environment:
Windows2000
Tomcat4.0-b2 standalone
Problem:
I recently upgraded to Tomcat/4.0-b2 from the previous version of
4.0. I find that its not able to locate the servlet class files
under webapps/<mywebapp>/web-inf/classes.
I do not have a security manager installed.
This used to work before I upgraded. Is there a quirk with
TC4.0-b2 about loading classes that I should be aware of?
Also, what should be approach to troubleshoot this failure
to load this class? I have set debug to 4 and am tracking
logs\localhost_log*txt.
2001-04-02 14:13:21 StandardContext[/rks]: Mapping contextPath='/rks' with
reque
stURI='/rks/servlet/Quote' and relativeURI='/servlet/Quote'
2001-04-02 14:13:21 StandardContext[/rks]: Decoded
relativeURI='/servlet/Quote'
2001-04-02 14:13:21 StandardContext[/rks]: Trying exact match
2001-04-02 14:13:21 StandardContext[/rks]: Trying prefix match
2001-04-02 14:13:21 StandardContext[/rks]: Mapped to servlet 'invoker' with
ser
vlet path '/servlet' and path info '/Quote' and update=true
2001-04-02 14:13:21 StandardWrapper[/rks:org.apache.catalina.INVOKER.Quote]:
Mar
king servlet org.apache.catalina.INVOKER.Quote as unavailable
2001-04-02 14:13:21 invoker: serveRequest.load
javax.servlet.ServletException: Wrapper cannot find servlet class Quote or a
cla
ss it depends on
[...]
The context is defined as follows:
<servlet>
<servlet-name>
Quote
</servlet-name>
<servlet-class>
Quote
</servlet-class>
</servlet>
Any hints appreciated,
Thanks,
Rk
Re: ClassNotFound exceptions with Tomcat/4.0-b2
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Mon, 2 Apr 2001, S Ramakrishnan wrote:
> Environment:
> Windows2000
> Tomcat4.0-b2 standalone
>
> Problem:
> I recently upgraded to Tomcat/4.0-b2 from the previous version of
> 4.0. I find that its not able to locate the servlet class files
> under webapps/<mywebapp>/web-inf/classes.
> I do not have a security manager installed.
>
If the actual directory name is "web-inf", then that is your problem. All
pathnames in Tomcat 4.0 are case sensitive, so this must really be
webapps/<mywebapp>/WEB-INF/classes instead.
> This used to work before I upgraded. Is there a quirk with
> TC4.0-b2 about loading classes that I should be aware of?
> Also, what should be approach to troubleshoot this failure
> to load this class? I have set debug to 4 and am tracking
> logs\localhost_log*txt.
>
>
> 2001-04-02 14:13:21 StandardContext[/rks]: Mapping contextPath='/rks' with
> reque
> stURI='/rks/servlet/Quote' and relativeURI='/servlet/Quote'
> 2001-04-02 14:13:21 StandardContext[/rks]: Decoded
> relativeURI='/servlet/Quote'
> 2001-04-02 14:13:21 StandardContext[/rks]: Trying exact match
> 2001-04-02 14:13:21 StandardContext[/rks]: Trying prefix match
> 2001-04-02 14:13:21 StandardContext[/rks]: Mapped to servlet 'invoker' with
> ser
> vlet path '/servlet' and path info '/Quote' and update=true
> 2001-04-02 14:13:21 StandardWrapper[/rks:org.apache.catalina.INVOKER.Quote]:
> Mar
> king servlet org.apache.catalina.INVOKER.Quote as unavailable
> 2001-04-02 14:13:21 invoker: serveRequest.load
> javax.servlet.ServletException: Wrapper cannot find servlet class Quote or a
> cla
> ss it depends on
> [...]
>
> The context is defined as follows:
>
> <servlet>
> <servlet-name>
> Quote
> </servlet-name>
>
> <servlet-class>
> Quote
> </servlet-class>
> </servlet>
>
Is "Quote.class" in the WEB-INF/classes directory? Along with any other
classes that it depends on?
>
> Any hints appreciated,
>
> Thanks,
>
> Rk
>
>
Craig