This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tomcat: page not found  RSS feed

 
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Bill, I'll take a look.
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!