im using bluewhite64 (port of slackware) with eclipse galileo and tomcat 6. eclipse works fine, so does tomcat. i run tomcat as an instance with global installation folder and personal instance. that seems to be working fine, i can login to manager page, i havent got to deploying apps yet
what i want to do is make eclipse use that instance. so far the only way it works is if i install tomcat in my home directory where i have permissions to all the files.
i can add the instance to config path, but i have to provide the path to global installation (cos thats where the libs are) and when i do 'run on sever' i get
'Cannot create a server using the selected type'
i think eclipse is trying to use the main installation and has problems with permissions.
so does anybody know how to make it use the tomcat instance??
To connect to an external Tomcat, start it with "catalina.sh jpda.start". That will launch Tomcat with the internal debugger activated and listening.
To get Eclipse to connect, create a new debugging session using the Run/debug menu to open up the profile dialog, select "Remote Java Application", and create a new profile (I name mine "Remote Tomcat"). The port has to be the same port that Tomcat opened, which is typically port 8000. With a little luck, that will be the one that Eclipse automatically configures.
There is another way to run Tomcat, using the internal WST debugging facilities where it copies your config information and allows you to use the "Run on Server" features built into Eclipse. If you've read some of my lunatic ravings elsewhere in this forum you'll know that I consider it to be useless for serious web application development.
An IDE is no substitute for an Intelligent Developer.
Joined: Sep 23, 2009
Ooops my previous post seems to have dissapeared.
Anyway it doesnt work, i get connection timed out error. I just verified that tomcat is working fine (i just deployed my first 'app')...