tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Servlet running/not running
Date Fri, 25 Oct 2002 19:08:31 GMT

You are a life-saver. It's up and running....

Many thanks.

Sohail Ahmed
GeneralCologne Re
Tel:(203) 328 - 5332

                      "Shapira, Yoav"                                                    
                      <Yoav.Shapira@mpi        To:       "Tomcat Users List" <>
                      .com>                    cc:       (bcc: Sohail Ahmed/GCR-NAmerica/GRN)
                                               Subject:  RE: Servlet running/not running 
                      10/25/2002 02:40                                                   
                      Please respond to                                                  
                      "Tomcat Users                                                      


>I have installed Tomcat 4.1.12. I have this directory structure for a
>servlet. C:\Tomcat\webapps\myApp\WEB-INF\classes and the servlet name
>test. OK. When I try to see this servlet by
>http://localhost:8080/myApp/servlet/test, I get this; "The requested
>resource (/myApp/servlet/test) is not available. Now, if I copy the
>test.class file to C:\Tomcat\webapps\examples\WEB-INF\classes, it works
>(http://localhost:8080/examples/servlet/test), which leads me to
>that I need to do some tweaking with the configuration.

4.1.12 comes with the default invoker servlet mapping turned off for
security.  The release notes have the full details.

Uncomment the <servlet-mapping> element for the invoker servlet in
$CATALINA_HOME/conf/web.xml to make the above work.

Better yet, declare a mapping for your servlet by adding the following
to your web.xml (the one in myApp/WEB-INF):



And then access your servlet by

This way, you don't have to have the invoker servlet.

>THREAT: I posted this question yesterday too but didn't get any reply.
>Understand that I'm a Microsoft programmer trying to get on board with
>Java people and if you don't help me, I'll go back to working on good
> It's more of a threat to IIS actually :)

Funniest paragraph I've seen in a while ;) ;) ;)

Yoav Shapira
Millennium ChemInformatics
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:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message