This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes setting tomcat5.5 server in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "setting tomcat5.5 server in eclipse" Watch "setting tomcat5.5 server in eclipse" New topic
Author

setting tomcat5.5 server in eclipse

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 363
I have downloaded tomcat5.5, windows services installer under "core"

When I run windows services installer it creates "C:\Program Files\Apache Software Foundation" path.

Is this installation dir for tomcat or is it "C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\classes" as thats where class files are kept for java class files to be run using tomcat ?

I have to setup tomcat server for eclipse and I am not sure what path shall I put in that field.
When I provide value in the field as "C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\classes " , I am getting error "The Tomcat installation directory is not valid. It is missing expected file or folder common/i18n."
When I provide value in the field as "C:\Program Files\Apache Software Foundation\Tomcat 5.5" , I dont get this error but when I go to Add and Remove section, I dont have any selection to choose from. If I close the wizard without making a selection and then run server, I get an error message asking to setup the server.
Please let me know what path shall I provide as installation dir

Thanks
Joe carco
Ranch Hand

Joined: Apr 14, 2009
Posts: 82
The Tomcat installation dir for eclipse usually is the Tomcat base dir, in your case: C:\Program Files\Apache Software Foundation\Tomcat 5.5
You can only add / remove projects in the wizard if you have any eclipse web projects active in your current workspace. You are not forced to make one though in order to setup Tomcat for eclipse.
I'm not sure but maybe eclipse doesn't like the windows service version of tomcat. Eclipse tries to start and shutdown tomcat by itself. Perhaps the service version is missing the startup and shutdown scripts needed?

I recommend downloading the non-windows-serivce version of Tomcat, unpack it into a directory and use that one for eclipse.
I doubt that eclipse knows how to "net start ..." and "net stop ..." a windows service
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting tomcat5.5 server in eclipse
 
Similar Threads
Failed to install Tomcat5 Service
Compilation problem in servlets
How to add tomcat 5.5.27 server in eclipse europa 3.3.2
CATALINA_HOME directory location question
Compiling servlet [was: HTTP Status 404 - Servlet Login is not available]