• 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 error.. Help required.

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Someone please respond.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Happily living in the valley of the dried frogs with a few tiny ads.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic