File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse and Tomcat instance on *nix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse and Tomcat instance on *nix" Watch "Eclipse and Tomcat instance on *nix" New topic

Eclipse and Tomcat instance on *nix

lukasz antoniow

Joined: Sep 23, 2009
Posts: 2
hi everyone

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??
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

To connect to an external Tomcat, start it with " 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.
lukasz antoniow

Joined: Sep 23, 2009
Posts: 2
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')...
I agree. Here's the link:
subject: Eclipse and Tomcat instance on *nix
It's not a secret anymore!