• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Problem

 
Stanley Form
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Apache Tomcat 5.0.28 Server. The icon on the lower right says it is operating and it opens the Jakata page with http://localhost:8080/

The form.html file opens with the following for a url:
file:///C:/Tomcat/webapps/Beer-v1/form.html/

There is a 404 error when entering:
http://localhost:8080/Beer-v1/form.html/

TOMCAT_HOME is set to C:\tomcat and the application is in this directory.

Any ideas on what is wrong?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For starters, you probably don't want to end that URL with a slash.
 
Ramen Chatterjee
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Hope this isnt stating the obvious, but have you tried following the deployment documentation?

Ramen
 
Saurabh Chaubey
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I guess you are not having the WEB-INF directory at web app's context root.

Create a WEB-INF directory as C:/Tomcat/webapps/Beer-v1/WEB-INF

Now restart the server and check it out.

regards,
Saurabh
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few suggestions (I have never configured Tomcat directly on Windows, so I'm talking from a Linux perspective):
  • Does your C:\Tomcat\conf\server.xml contain an entry for localhost at port 8080, and does that entry reference C:\Tomcat\webapps as its appRoot or docRoot? I doubt this is problem because you are getting a 404, so it is definitely connecting.
  • Remove the / from the end of your URL, it should end with /form.html
  • Do you have a /WEB-INF/web.xml relative to your application? If not, you will require one with earlier versions of Tomcat. As of Java EE 5 (the new version), you don't actually require it, but its use was mandated for all (even static) applications prior to EE 5.
  • See if that helps.
     
    Consider Paul's rocket mass heater.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic