This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes 404 - Page not found ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "404 - Page not found ??" Watch "404 - Page not found ??" New topic
Author

404 - Page not found ??

Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

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?


Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

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?


A good workman is known by his tools.
Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

Hi Marc,

I have solved my problem, The problem was with web.xml file.
Now it is running fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 404 - Page not found ??
 
Similar Threads
Unable to run Servlets using Tomcat
Tomcat Problem
Head First Sample Code
page not found error
Tocat issue