jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes HTTP Status 404 error..  Help required. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HTTP Status 404 error..  Help required." Watch "HTTP Status 404 error..  Help required." New topic

HTTP Status 404 error.. Help required.

Cm Ananth
Ranch Hand

Joined: Oct 20, 2005
Posts: 44
Hi all.

Im using tomcat 4.1 and I have deployed a WAR file under the webapps folder of tomcat. Tomcat deployed that WAR file on the fly and when i try to access that application("http://localhost:8080/Myapp/index.html") im getting the "Requested resource is not available" error.

index.html is actually present under Myapp folder (not under any sub folders).

I have verified that my application has web.xml and other configurations properly. Sometime back i have deployed the same WAR file in the same way. It was working fine.

Please help me to resolve this.

Thanks in advance..

By Ananth, Bangalore
Cm Ananth
Ranch Hand

Joined: Oct 20, 2005
Posts: 44
Someone please respond.
Amit Y Desai
Ranch Hand

Joined: Dec 06, 2007
Posts: 35
try deleting temporary files of your application under "<tomcat dir>/work" directory....Also when you place war file inside webapps..it also extracts it automatically unders same folder.try deleting all your application files under webapps and place the war again in web apps.
Pavel Cherkashin
Ranch Hand

Joined: Mar 04, 2005
Posts: 47
1. check whether the deployment process finished successfully
2. check whether your tomcat instance listens port 8080 (or whichever you point)
3. check whether the name of your web application (by default - the name of war file without dot and extension) is equal to requested by you
4. check whether the name of file inside a web application archive is the same as requested by you (very often file is index.html, but one try to access index.htm or vice versa)
5. do not place your publicly accessible file inside WEB-INF directory

and at last rarely but check if network service is running. Try ping localhost. If ping will fail - then the reason is in your operation system.
[ February 20, 2008: Message edited by: Pavel Cherkashin ]

Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />www.linkedin.com/in/pcherkas
I agree. Here's the link: http://aspose.com/file-tools
subject: HTTP Status 404 error.. Help required.
It's not a secret anymore!