• 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 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: 27762
196
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: 67746
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic