Thanks again, David.
Since I restarted, the localhost log has:
Aug 24, 2006 9:31:17 AM org.apache.catalina.core.ApplicationContext
log
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
[EMAIL PROTECTED]
ui
java.lang.ClassNotFoundException: ui
...
Aug 24, 2006 9:31:17 AM org.apache.catalina.core.ApplicationContext
log
SEVERE: invoker: Cannot allocate servlet instance for path
/elsewise/servlet/ui/user/LoginServlet
javax.servlet.ServletException: Wrapper cannot find servlet class ui
or a class it depends on
...
And
Aug 24, 2006 9:32:00 AM org.apache.catalina.core.ApplicationContext
log
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
[EMAIL PROTECTED]
elsewise
java.lang.ClassNotFoundException: elsewise
...
Aug 24, 2006 9:32:00 AM org.apache.catalina.core.ApplicationContext
log
SEVERE: invoker: Cannot allocate servlet instance for path
/elsewise/servlet/elsewise/ui/user/LoginServlet
javax.servlet.ServletException: Wrapper cannot find servlet class
elsewise or a class it depends on
...
However, I shut Tomcat down again, restarted it, and tried to access the
"Hello World (down one)" Servlet Example from the default Tomcat home page.
I got no error messages in the log, even though it still gives me the 404,
not found error.
So I guess these two 404 errors are from a different cause?
Steve
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 24, 2006 10:03 AM
To: Tomcat Users List
Subject: Re: Apache 5.5 HelloWorldExample 404 error
Ok.
Have you taken a look at the logs generated by tomcat from startup through
the request? May have some insight as to what's happening (or not
happening).
--David
Steve Willett (Initiative Computing) wrote:
>David, thanks for your quick response to my post!
>
>My reading of the dire warnings about enabling the invoker servlet lead
>me to believe that I should not do so in a production environment.
>However, this is a development environment, and I don't want to have to
>modify a web.xml file every time I create a new Servlet class. Am I
>reading this wrong?
>
>As to the problem - my servlet was in package "elsewise.ui.user" (not
>"ui.user") and my class file was in the directory you specified.
>
>I just tried moving the class tree down one level:
>
> webapps/elsewise/WEB-INF/classes/elsewise/ui/user/LoginServlet.class
>
> and changed the form tag to:
>
> <form action="servlet/elsewise/ui/user/LoginServlet" method=POST>
>
>I got a similar error:
>
> The requested resource
>(/elsewise/servlet/elsewise/ui/user/LoginServlet) is not available.
>
>In my original post I pointed out that I was having a similar problem
>with the default Tomcat home page "Hello World" example. Since I did
>not change the location of these files from the original installation,
>I assume there is a configuration error. If I get that working, I can
>compare my attempts to set up my own application to that example.
>
>Any thoughts?
>
>Steve
>
>-----Original Message-----
>From: David Smith [mailto:[EMAIL PROTECTED]
>Sent: Thursday, August 24, 2006 4:24 AM
>To: Tomcat Users List
>Subject: Re: Apache 5.5 HelloWorldExample 404 error
>
>I won't comment (too much) on the implications of enabling the invoker
>servlet. I just hope you read the dire warnings before doing that.
>
>On the problem itself --
>
>Did you declare your servlet of package ui.user and place the compiled
>.class file in webapps/elsewise/WEB-INF/classes/ui/user? Did you also
>restart tomcat after enabling the invoker and your webapp after placing
>the class file where it belongs?
>
>Just covering the usual suspects here.
>
>--David
>
>Steve Willett (Initiative Computing) wrote:
>
>
>
>>I have installed Apache.5.5.17 on my Windows XP development box
>>(steve.elsewise.net) to work on a web-app, but I cannot get the webapp
>>to find the servlet files. When I try, with a jsp link:
>>
>> <form action="servlet/ui/user/LoginServlet" method=POST>
>>
>>I get the following error:
>>
>> HTTP Status 404 - /elsewise/servlet/ui/user/LoginServlet
>>
>> type Status report
>>
>> message /elsewise/servlet/ui/user/LoginServlet
>>
>> description The requested resource
>>(/elsewise/servlet/ui/user/LoginServlet) is not available.
>> Apache Tomcat/5.5.17
>>
>>With the following URL displayed in the address window:
>>
>> http://steve.elsewise.net/elsewise/servlet/ui/user/LoginServlet
>>
>>When I go to the Apache default page on this machine
>>(http://steve.elsewise.net/), it comes up fine. When I go to the
>>Servlet Examples, the page comes up and the "Hello World" example
>>works, but the "Hello World (down one)" example gives me a similar error:
>>
>> HTTP Status 404 - /servlets-examples/world/servlet/HelloWorldExample
>>
>> type Status report
>>
>> message /servlets-examples/world/servlet/HelloWorldExample
>>
>> description The requested resource
>>(/servlets-examples/world/servlet/HelloWorldExample) is not available.
>> Apache Tomcat/5.5.17
>>
>>I am assuming I have some problem with my configuration files. I have
>>uncommented the "invoker" servlet and servlet-mapping tags in my
>>default web.xml file.
>>
>>Any suggestions?
>>
>>Steve Willett
>>Initiative Computing
>>510 654-7818
>>
>>
>>---------------------------------------------------------------------
>>To start a new topic, e-mail: [email protected] To unsubscribe,
>>e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: [email protected] To unsubscribe,
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>__________ NOD32 1.1723 (20060824) Information __________
>
>This message was checked by NOD32 antivirus system.
>http://www.eset.com
>
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: [email protected] To unsubscribe,
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected] To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________ NOD32 1.1724 (20060824) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]