This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

404 - Page not found ??

 
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am studying HFSJ chapter 3 and i am finding following problem..!
As per the book i made one form.html page and put it into

Tomcat Directory/webapps/Beer-v1/form.html

Now i tried following:
http://localhost:8080/Beer-v1/form.html

It is saying page not found, I have put page inside that directory but still this irritating message, I have restarted tomcat and even my system but no solution..if i ping
http://localhost:8080/examples/index.html
and this
http://localhost:8080/
These are working fine then why there is a problem with my page
?

I am using Window vista..! Is it due to this crap window?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sunny Jain:
..if i ping


Are you really pinging? Why not just try them in your browser? Can you access the Servlet and JSP examples that come packaged with Tomcat?

One common problem is that people make their html file using Notepad and then do not change the "Save as Type" (.txt text file is the default), resulting in an actual file name of: somefile.html.txt even though windows hides the final extension.

Have you tried using an image or other kind of file?
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marc,

I have solved my problem, The problem was with web.xml file.
Now it is running fine.
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic