Monday, December 21, 2009

Integrate Tomcat in Eclipse

********************
symptom
********************
If tomcat is started from cmd, the apps work just OK. But if it is started from eclipse, the apps cannot work (localhost:8080 also cannot access).

********************
reason
********************
Configuration of tomcat inside eclipse is not correct.

********************
cure
********************
Follow the setting in http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
Refer to "Integrate Tomcat in Eclipse" especially.

Doubleclick the Tomcat server entry in the Servers tab, you'll get the server configuration. At the left column, under Server Locations, select Use Tomcat installation. This way Eclipse will take full control over Tomcat, so that you will be able to access the default Tomcat homepage with the Tomcat Manager at http://localhost:8080 when running from inside Eclipse.

No comments:

Post a Comment