Lou-
I have noted these maladies can happen when Tomcat's default-servlet is not configured correctly Please display configuration for defaultServlet located at $CATALINA_HOME/conf/web.xml
(it should look something like)

<servlet>
       <servlet-name>default</servlet-name>
       <servlet-class>
         org.apache.catalina.servlets.DefaultServlet
       </servlet-class>
       <init-param>
           <param-name>debug</param-name>
           <param-value>0</param-value>
       </init-param>
       <init-param>
           <param-name>listings</param-name>
           <param-value>true</param-value>
       </init-param>
       <load-on-startup>1</load-on-startup>
   </servlet>
...
   <servlet-mapping>
       <servlet-name>default</servlet-name>
       <url-pattern>/</url-pattern>
   </servlet-mapping>


doc available at
http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html#what

HTH,
Martin--
__________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.


[EMAIL PROTECTED] wrote:
I have tomcat 5.0.28 installed under AIX 5.03 (no issues under Windows):

URL's tried:

Tomcat default page: http://<host>:8080/
Next, I clicked on the jsp examples link on the default Page, it
returned HTTP Status 404 - /jsp-examples/
          http://<host>:8080/jsp-examples/

I even tried individual pages, same 404 return code: HTTP Status 404 -
/jsp-examples/jsp2/simpletag/hello.jsp
        http://<host>:8080/jsp-examples/jsp2/simpletag/hello.jsp



-----Original Message-----
From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 7:17 AM
To: Tomcat Users List
Subject: Re: HTTP Status 404 - /jsp-examples/

[EMAIL PROTECTED] wrote:

Can't get the jsp-example to run, getting 404 error.

I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The service is running under the same account that I used to install. I have setup the following environment variables:

        CATALINA_HOME
        CATALINA_BASE
        JAVA_HOME

I have added following to the path: /usr/java14/jre/bin:/usr/java14/bin

The default page index.jsp from the webapps folder comes up okay and I



can perform most of the admin functions however the jsp-examples and servelet examples return 404 error.

I have installed tomcat multiple times yet no luck. Google has not been of any help. In the bugs database, only reference I found was to check on the tomcat users list.

Seems like tomcat is missing the context path for jsp-examples, where would I check that? Shouldn't that be alreday defined in the default configuration files.

Please advise, I am really frustrated.  Thanks!


Email Firewall made the following annotations
----------------------------------------------------------------------
-- NOTICE ---

This message is for the designated recipient only and may contain

confidential, privileged or proprietary information. If you have
received it in error, please notify the sender immediately and delete
the original and any copy or printout. Unintended recipients are
prohibited from making any other use of this e-mail. Although we have
taken reasonable precautions to ensure no viruses are present in this
e-mail, we accept no liability for any loss or damage arising from the
use of this e-mail or attachments, or for any delay or errors or
omissions in the contents which result from e-mail transmission.

---------------------------------------------------------------------


You didn't show an example of the url being called, so I must ask if you
included the port on which tomcat is running in your call.
  ie.... http://<host>:8080/jsp-examples/<some.jsp>

8080 is the default, but it can be changed in the server.xml file.
- Lou Caudell
(Notice: This party reserves all rights)

---------------------------------------------------------------------
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]



Sounds silly, but I would place a simple html file in the directory to determine the status of your tomcat instance. Actually the default page at http://<host:8080>/ should be there. It's always a good idea to install all of the management/sample tools the first time on a new platform.

- Lou Caudell
(Notice: This party reserves all rights)



---------------------------------------------------------------------
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]

Reply via email to