Tomcat & Eclipse Integration

I am developing on an Ubuntu 8.04 machine using Eclipse Ganymede. I installed Tomcat 5.5 using sudo apt-get install tomcat5.5 tomcat5.5-adminand using an Ant script, I deploy my WAR file by copying it to $CATALINA_HOME/webapps.

Then I created an Eclipse project, and I brought the compiled source to a similar, but separate directory structure in $PROJECT_ROOT/target/. I am still deploying the WAR file by right-clicking on it build.xmland selecting my task deploy-war.

Since Tomcat works like a deamon, it starts automatically at boot, I do not instruct it when to start or exit.

My problems with this setting:

  • Using this approach, I do not get any output to the Eclipse console, since Tomcat is a user tomcat55, and I have a different login and no access to Stdout tomcat55.
  • The logging that is taking place is also aimed at the Stdoutmoment, which I find quite enjoyable during development. But it is not nice when I do not see it. :-)
  • I have no servers under the tab Serverand no Run configurations. This makes it impossible to use Debug modeEclipse, which is otherwise quite convenient.

What do you think I should do to integrate them and, in turn, make my development environment a lot better?

+5
source share
5 answers

, Tomcat. apache-tomcat-x.y.z.zip , - eclipse, tomcat. , j2ee/wtp Eclipse. Windows, , Linux.

: , tomcat.

+3

Tomcat Eclipse - . .

+3

1 2, .

3: . tomcat

export JPDA_ADDRESS=8000
export JPDA_TRANSPORT=dt_socket

eclipse : - - java .

0

eclipse tomcat, . , " ", , . java , tomcat, -, . tomcat, .

-1

If you want to regularly debug and reload Tomcat applications, you can take a look at MyEclipse - it can make things a lot easier.

-1
source

All Articles