Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Tomcat 7.0 not working properly with eclipse EE juno version

When I run apache tomcat 7.0 alone, it works without any flaw in my browser I can execute the examples also, but when I apache tomcat 7.0 in eclipse I'm getting a 404 error message saying that "requested resource is not available". I just type the session example program and run it again, it shows this 404 error message only.

How do I resolve it?

I don't know whether it's the problem with tomcat or with eclipse..

Please help!!

like image 449
Singa Selva Sankar M Avatar asked Nov 19 '25 21:11

Singa Selva Sankar M


1 Answers

I think your eclipse is configured to load a webapp folder that is not the one installed with tomcat, please follow the steps below:

  1. Open the Run Configuration of the Tomcat 7 in the eclipse
  2. Go to the Arguments tab
  3. In the VM arguments, it should have a property listed: -Dwtp.deploy=...
  4. The folder on this property define the webapp folder for the tomcat started from the eclipse
  5. If you want it to load the tomcat examples, change the folder of that property to the one that have the examples
like image 72
fmodos Avatar answered Nov 21 '25 19:11

fmodos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!