• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP Status 404

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am newbie to java. I am reading HeadFirst (Servlet &JSP).
I create a project Beer-v1 which i am following the book chapter 3.

I create a folder named Beer-v1 under directory $TOMCAT_HOME/webapps/.
Then, I create a html file named form.html, and complete the html code.

When I startup tomcat, i input http://localhost:8080/ in the address bar and
i can see the tomcat welcome page, but when i http://localhost:8080/Beer-v1/form.html,
it give me a http status 404 error.

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.

Apache Tomcat/6.0.20


I know if the files is not available the error description should be "The requested resource (/Beer-v1/form.html) is not available."
It's weird.

I try to http://localhost:8080/eamples/index.html and i can see the tomcat example page.

I am so confused.

Help and Thanks!
 
XinShou ShangLu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I check catalina log file, and find the error.
The reason is i missed '/' in web.xml.

Now, it runs.
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic