This week's giveaway is in the OCPJP forum.
We're giving away four copies of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) and have Paul Anilprem on-line!
See this thread for details.
Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Eclipse and Tomcat instance on *nix

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
 
Saloon Keeper
Posts: 25608
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
lukasz antoniow
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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')...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic