Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP 404

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I got a weird problem with my application it's a system that generates reports , running on tomcat , my problem is : in Myjsp on submit it goes to Myservelt to handle the request in it then display the results (all done in Myservelt even the display part ) , in Myservelt there is a link that takes you back to Myjsp if you wanna make another report all here works fine , the problem in when i try to make another request from Myjsp to Myservelt , tomcat displays this error :


So why it;s not available now although it was working fine before ?

PS: i didnt call destroy() in any part of my application ...
 
Mohamed Inayath
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could you add the code snippet which is used to call the Myjsp from servlet.

Also the action value of the form from Myjsp.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An entry from http://faq.javaranch.com/java/TomcatFaq

404 Errors

* Why do I get 404 not found?
o You are requesting a page or servlet that's not there. Check whether you are referring to an incorrect file location or have made a typo in a URL. Calling an external resource while on a computer that has no access to the Internet can also cause this.

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohamed Inayath wrote:Hi,

Could you add the code snippet which is used to allc the Myjsp from servlet.


Also the action value of the form from Myjsp.


action value : action="MyServlet"
code snippet which is used to call the Myjsp from servlet :
PS :
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:An entry from http://faq.javaranch.com/java/TomcatFaq

404 Errors

* Why do I get 404 not found?
o You are requesting a page or servlet that's not there. Check whether you are referring to an incorrect file location or have made a typo in a URL. Calling an external resource while on a computer that has no access to the Internet can also cause this.


Hi Guys ,

I fixed this problem by enabling the request logging in the tomcat server like shown here , then i found that the resource's url i'm requesting is wrong so i fixed it than it's working fine now ... actually it;s a very good option to log the requests made to the server...

thanks guys for the help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic