File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Status 404 error.. Help required.

 
Cm Ananth
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Cm Ananth
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someone please respond.
 
Amit Y Desai
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic