aspose file tools*
The moose likes Tomcat and the fly likes Http error 404 The requested resource is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Http error 404 The requested resource is not available" Watch "Http error 404 The requested resource is not available" New topic
Author

Http error 404 The requested resource is not available

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 148

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
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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
K. Gil
Ranch Hand

Joined: Apr 29, 2011
Posts: 75

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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16303
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

Please check the ServletsFaq where you will find a list of things to check for.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Http error 404 The requested resource is not available