• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Http error 404 The requested resource is not available

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am perplexed by this problem of tomcat, the same web app code is working sometimes & sometimes I get
error "Http error 404 The requested resource is not available". Even index.jsp doesn't work.
There is no syntax or path error I have double checked. When I restart sometimes the app starts working.

Has this problem occurred with anyone? I am unable to find any logic for this.
Expecting help. Thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IF your web app throws an UnavailableException, the server will throw a 404 for all subsequent requests.

Close examination of the log files is in order.

Bill
 
Ranch Hand
Posts: 75
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am perplexed by this problem of tomcat, the same web app code is working sometimes & sometimes I get
error "Http error 404 The requested resource is not available". Even index.jsp doesn't work.
There is no syntax or path error I have double checked. When I restart sometimes the app starts working.



seems that your application is not always successfully deployed.
all you have to do is to check your catalina.out log file, and see what kind of exceptions cause application fail to deploy.
 
Saloon Keeper
Posts: 23882
162
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You also need to ensure that you aren't just dumping files into Tomcat and expecting them to work. You have to have an actual WAR deployment.

And, if you are using Eclipse to run Tomcat and in particular, the Eclipse WTP feature, you may have to run around and kick it a few times, since WTP doesn't do too well in the area of automatically picking up application context changes.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sudden inspiration: is your servlet program in a package?

If not, whether it works or not will depend on your "current directory" when you try to access it.

In any case, lets see the web.xml

Bill
 
Sheriff
Posts: 67553
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check the ServletsFaq where you will find a list of things to check for.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic