Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting tomcat5.5 server in eclipse

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic