This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 371
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
 
 
subject: setting tomcat5.5 server in eclipse