Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » external tools & Tomcat
external tools & Tomcat [message #175798] Sun, 29 August 2004 12:11 Go to next message
Eclipse UserFriend
Originally posted by: ChuckChopp.rtfmcsi.com

I have configured my local installation of Tomcat v4.1.30 as an external
tool in Eclipse 3.0 / MyEcliipse v3.8.0. I have set up the command line to
start Tomcat using a .BAT file that uses "run" rather than "start" so that
Tomcat does not detach and run in a separate process. This works for
starting it up from the external tools menu. However, when I terminate the
instance of Tomcat from within Eclipse I find that although Eclipse says it
was terminated, it is in fact still running and doesn't show anything
additional in the "Console" window within Eclipse. TASKMGR.EXE still reports
"java.exe" is running and my webapp is still responding. If I go to a
command prompt and manually run the "shutdown.bat" file in the "bin" folder
of my Tomcat installation then Tomcat shuts down.

Even if I exit from Eclipse, the instance of Tomcat will continue to run
detached w/o a console unless I use "shutdown.bat" to terminate Tomcat.

My question is why does Tomcat continue to run after Eclipse has supposedly
terminated it, or else why does Eclipse fail to properly terminate the
captive instance of Tomcat that it was running in the Eclipse console?


--
Chuck Chopp

ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com

RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road 864 801 2774 fax
Greer, SC 29651

Do not send me unsolicited commercial email.
Re: external tools & Tomcat [message #176213 is a reply to message #175798] Wed, 01 September 2004 09:35 Go to previous message
Eclipse UserFriend
"Chuck Chopp" <ChuckChopp@rtfmcsi.com> wrote in message
news:cgsv0m$1po$1@eclipse.org...
> I have configured my local installation of Tomcat v4.1.30 as an external
> tool in Eclipse 3.0 / MyEcliipse v3.8.0. I have set up the command line to
> start Tomcat using a .BAT file that uses "run" rather than "start" so that
> Tomcat does not detach and run in a separate process.

This sounds like the right thing to do. Eclipse will terminate the process
that it launched (the .bat file in this case). Since Tomcat is running in
the same process, I would expect it to be terminated too. However, you may
want to try the same thing programatically. I.e. under the covers, all we do
is a "Runtime.exec(...)", and then termiante (destory()) the associated
java.lang.Process.

Darin
Previous Topic:Eclipse Compiles Differently for JAVA vs. jsp??
Next Topic:J2EE javadoc integration
Goto Forum:
  


Current Time: Mon May 12 01:44:15 EDT 2025

Powered by FUDForum. Page generated in 0.07777 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top