I've been chasing this one for days now and I've finally decided to ask for
some help...


I've tried fixing the problem by rebuilding all components at least twice.

Running Tomcat stand-alone works fine.  I can connect to the example pages
on port 8080 and then work with all of the examples.

BUT

When I try to connect to the same example pages using apache, listening on
port 80, I receive the following exceptions:

URL: http://www.forrester.org/examples

result:

Error: 500

Internal Servlet Error:


java.io.FileNotFoundException: webapps/examples/ples
 at java.io.FileInputStream.<init>(FileInputStream.java)
 at java.io.FileInputStream.<init>(FileInputStream.java)
 at
org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:285)
 at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:200)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:4
13)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:234)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:371)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:147)
 at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
 at java.lang.Thread.run(Thread.java)


And by adding a slash to the end:
URL: http://www.forrester.org/examples/

result:

Error: 404

File Not Found
/examples/



URL: http://www.forrester.org/examples/jsp

result:
Adding jsp to the path produces this:

Error: 500

Internal Servlet Error:


java.io.FileNotFoundException: webapps/examples/ples/jsp
 at java.io.FileInputStream.<init>(FileInputStream.java)
 at java.io.FileInputStream.<init>(FileInputStream.java)
 at
org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:285)
 at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:200)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:4
13)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:234)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:371)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:147)
 at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
 at java.lang.Thread.run(Thread.java)


Please note that the path being shown in the FileNotFoundException in both
both traces is not the same as the path in the url.  It has been munged:
java.io.FileNotFoundException: webapps/examples/ples
                                                ^^^^
java.io.FileNotFoundException: webapps/examples/ples/jsp
                                                ^^^^

I'm following the Apache - Tomcat How To note the the letter.  Any
suggestions?

Thanks,
Paul Forrester
[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to