• 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
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Tomcat: page not found

 
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!
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic