tomcat stop problem

i am using intellijidea 5.0.1 and apache-tomcat. i have integrated both them. when i run my module everything is fine ,apache is running. but when i close my module server can not be stopped.and when i want to run my module again an error is occurt. "8080 port already in use".
Startup/Connection
Startup script----->> C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe
Shutdown script---->> C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe

9 comments

Hello ahmet,

i am using intellijidea 5.0.1 and apache-tomcat. i have integrated
both them. when i run my module everything is fine ,apache is
running. but when i close my module server can not be stopped.and when
i want to run my module again an error is occurt. "8080 port already
in use".

Startup/Connection

Startup script----->> C:\Program Files\Apache Software
Foundation\Tomcat 5.5\bin\tomcat5.exe

Shutdown script---->> C:\Program Files\Apache Software
Foundation\Tomcat 5.5\bin\tomcat5.exe


Try to set the checkbox "use default" for Shutdown script in Run Configuration
| Starrup/Connection.

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Try to set the checkbox "use default" for Shutdown script in Run
Configuration | Starrup/Connection.


I've tried yesterday and it did not found the exe, it still wanted to use
the bat (or cmd?) files.

Tom

0

Hello Tom,

>> Try to set the checkbox "use default" for Shutdown script in Run
>> Configuration | Starrup/Connection.
>>

I've tried yesterday and it did not found the exe, it still wanted to
use the bat (or cmd?) files.


That was printed in the Run console after pressing the 'stop' button?

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

when i check defalut

C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\catalina.bat
is written. but there is no file as name catalina.bat.
what will i write in to a *.bat file to start and stop tomcat server.if i can do it i will create this file.

0

Hello ahmet,

when i check defalut

C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\catalina.bat

is written. but there is no file as name catalina.bat.

what will i write in to a *.bat file to start and stop tomcat
server.if i can do it i will create this file.


You can create file "shutdown.bat" in "C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\"
and write to it
java -jar bootstrap.jar stop

After that specify the following:
Startup script: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe
Shutdown script: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\shutdown.bat

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Download the complete Tomcat package, not the Windows installer. You'll
get the start and stop scripts for free there.

Nikolay Chashnikov (JetBrains) wrote:

Hello ahmet,

>> when i check defalut
>>
>> C:\Program Files\Apache Software Foundation\Tomcat
>> 5.5\bin\catalina.bat
>>
>> is written. but there is no file as name catalina.bat.
>>
>> what will i write in to a *.bat file to start and stop tomcat
>> server.if i can do it i will create this file.
>>


You can create file "shutdown.bat" in "C:\Program Files\Apache Software
Foundation\Tomcat 5.5\bin\" and write to it
java -jar bootstrap.jar stop

After that specify the following:
Startup script: C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe
Shutdown script: C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\shutdown.bat

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

thanks all. i have downloaded complete tomcat file instead of windows binary file .http://godel.cs.bilgi.edu.tr/mirror/apache/tomcat/tomcat-5/v5.5.15/bin/apache-tomcat-5.5.15.zip. and now there is no problem any more

0

Hello Ahmet,

thanks all. i have downloaded complete tomcat file instead of windows
binary file
.http://godel.cs.bilgi.edu.tr/mirror/apache/tomcat/tomcat-5/v5.5.15/bi
n/apache-tomcat-5.5.15.zip. and now there is no problem any more


http://support.jetbrains.com/kb/entry!default.jspa?categoryID=22&externalID=57
ftp://intellij.net/pub/.idea/TomcatTutorial/TomcatJspDebug.zip:

... For 5.x Tomcat versions make sure to download the zipped version instead
of installer, since the installer doesnâ??t contain batch startup script ...

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"




0

Please sign in to leave a comment.