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: users@tomcat.apache.org To unsubscribe, 
>e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org 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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to