| Author |
Tomcat: page not found
|
Alex Kravets
Ranch Hand
Joined: Jan 24, 2001
Posts: 476
|
|
How do I create a new application in Tomcat? Also, I tried to load a jsp page I wrote from Tomcat's example application -- jsp-examples, and every time I want to call the page http://localhost:8080/jsp-examples/test.jsp I get page not found. What am I doing wrong? thanks, Alex
|
All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12265
|
|
Your Tomcat installation actually contains a Application Developers Guide, in Tomcat4 it is at: /tomcat-docs/appdev/index.html Those links are a pretty good introduction. As to why your jsp is not running - you might get a more informative message by turning off the MSIE "friendly HTTP error messages" - from: Tools -> Internet Options -> Advanced .. under "Browsing" uncheck that option. Also take a look at the Tomcat logs for possible informative messages. Bill
|
Java Resources at www.wbrogden.com
|
 |
Alex Kravets
Ranch Hand
Joined: Jan 24, 2001
Posts: 476
|
|
|
thanks Bill, I'll take a look.
|
 |
Alex Kravets
Ranch Hand
Joined: Jan 24, 2001
Posts: 476
|
|
This is what my localhost_log looks like: stderr file is empty. I just think if I can run example jsps, shouldn't I be able to create a jsp page, put it in deployed application and view it? Also, I tried to modify date.jsp file in C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples\dates to just say 'test' but when I try to load that page I get the same contents of original dates.jsp even if I restart tomcat. thanks, Alex [ March 31, 2004: Message edited by: Alex Kravets ] [ March 31, 2004: Message edited by: Alex Kravets ] [ March 31, 2004: Message edited by: Alex Kravets ]
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12265
|
|
I'm mystified as to why you are not seeing the modified date.jsp .. You might try deleting all the files under the work directory which should force Tomcat to recompile all jsp. One possibility - this happened to me - I had a version of Tomcat 4 running and installed Tomcat 5 in another directory. When I ran startup.bat in the Tomcat 5 bin directory, it was actually picking up environment variables from the other installation and really running Tomcat 4. When you run the startup.bat - do the values for JAVA_HOME and CATALINA_HOME look right? Bill
|
 |
Alex Kravets
Ranch Hand
Joined: Jan 24, 2001
Posts: 476
|
|
Ahh...sound of relief! Finally it works. Everything started to work after I deleted a jsp file from /jsp-examples/dates/date.jsp and replaced it with my jsp. Now even jsp that I put under jsp-examples work fine. Very strange... Thanks you very much for your help Bill!
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: Tomcat: page not found
|
|
|