Running Apache-Tomcat in eclipse [message #277588] |
Mon, 13 December 2004 17:01  |
Eclipse User |
|
|
|
Originally posted by: farshad.intelliresponse.com
Hi All,
I have an application running in a apache-tomcat environment. Apache is in
front for authentication/static pages/etc. and tomcat does all the job.
They talk to each other via mod_JK2. Both apache and tomcat are defined as
separate services in Windows and run via a shell-script. I call the script
as an External-tools and it runs fine and I can run my application in a
browser. However, when I want to debug the application and put breakpoints
to stop the app in certain points, it keeps running (same as it runs
normally) to the end. I wrote another application and used only tomcat
(running inside eclipse) and was able to debug that application with no
problem.
My Questions:
Is there any way that I define a Windows service as the External-tool?
Is it possible to setup Apache (the same way that we define app-servers in
Eclipse) in Eclipse?
Thanks in advance.
|
|
|
|
Re: Running Apache-Tomcat in eclipse [message #277600 is a reply to message #277588] |
Tue, 14 December 2004 02:48  |
Eclipse User |
|
|
|
Originally posted by: daniel.rohe.stud.tu-ilmenau.de
I use a startup-script for tomcat, too. I've taken the script
"startup-tomcat.cmd" from tomcat_home/bin and added the following lines, so
the JVM in which tomcat lives will start with debugging support.
:doneSetArgs
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=8000
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
:end
Here you can see that there are two new variables (JPDA_TRANSPORT and
JPDA_ADDRESS) and the command for starting tomcat contains a new attribute
(jpda). These variables can also be applied to the tomcat Windows service
through the start menu "Configure Tomcat".
When you start tomcat with this script you can debug your web application
with external debugging in eclipse. I also use an Ant build file which
creates an exploded web archiv (directory with web application layout) and I
map the context in tomcat to this directory, so I can make "hot code
replacement".
Greetings
Daniel
"farshad" <farshad@intelliresponse.com> schrieb im Newsbeitrag
news:cpl3gb$d1$1@www.eclipse.org...
> Hi All,
>
> I have an application running in a apache-tomcat environment. Apache is in
> front for authentication/static pages/etc. and tomcat does all the job.
> They talk to each other via mod_JK2. Both apache and tomcat are defined as
> separate services in Windows and run via a shell-script. I call the script
> as an External-tools and it runs fine and I can run my application in a
> browser. However, when I want to debug the application and put breakpoints
> to stop the app in certain points, it keeps running (same as it runs
> normally) to the end. I wrote another application and used only tomcat
> (running inside eclipse) and was able to debug that application with no
> problem.
>
> My Questions:
> Is there any way that I define a Windows service as the External-tool?
> Is it possible to setup Apache (the same way that we define app-servers in
> Eclipse) in Eclipse?
>
> Thanks in advance.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03322 seconds