• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

shutdown failed Tomcat in netbeans6.1

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using netbeans6.1 with tomcat6.X when I try shutdown server it always show shutdown failed any solutions to prevent this problem.
[ September 04, 2008: Message edited by: Karup Mew ]
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when you hit that cross 'X' for shutdown, What you saw on Tomcat output window? Pl Copy paste that error or message here , may be that help to resolve !
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sagar,

The following message are displayed in console

Using CATALINA_BASE: C:\Documents and Settings\Administrator\.netbeans\6.1\apache-tomcat-6.0.16_base
Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.16
Using CATALINA_TMPDIR: C:\Documents and Settings\Administrator\.netbeans\6.1\apache-tomcat-6.0.16_base\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_03
Sep 4, 2008 2:15:37 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0_06\bin;.;f:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem\;F:\sathish\Sathishwork\Engineering\DashBoard\JNI\IV-Dashboard-Plugin-1.0.0.0\;.;F:\Program Files\IBM\Lotus\Notes;.;F:\Program Files\IBM\WebSphere\AppServer\bin;C:\Program Files\TortoiseSVN\bin
Sep 4, 2008 2:15:40 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
Sep 4, 2008 2:15:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6986 ms
Sep 4, 2008 2:15:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 4, 2008 2:15:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Loaded at startupF:\NetSpace\Dashboard1.0\build\web\
Sep 4, 2008 2:16:13 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
Sep 4, 2008 2:16:14 PM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind
Sep 4, 2008 2:16:14 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
Sep 4, 2008 2:16:14 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=1 time=0/187 config=null
Sep 4, 2008 2:16:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 33761 ms
Sep 4, 2008 2:18:22 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8084
Sep 4, 2008 2:18:23 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Connection Pool Destroyed:
Sep 4, 2008 2:18:23 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 2:18:24 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 2:18:25 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 2:18:26 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8084
[ September 04, 2008: Message edited by: Karup Mew ]
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karup Mew:
Hi Sagar,

The following message are displayed in console

Sep 4, 2008 2:16:14 PM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind



The problem seems like the above exception , and when you searched this on Google , you ll find plenty of discussion .

The quick solution ll be , another instance of tomcat already running , shutdown it first !
[ September 04, 2008: Message edited by: Sagar Rohankar ]
 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karup Mew:

.
.
INFO: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind
.
.



As pointed b Saagar, your tomcat seems to be running already.
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found another tomcat instance and stopped that even the tomcat was shutdown failed.Kindly gothrough the following console output once again



Using CATALINA_BASE: C:\Documents and Settings\Administrator\.netbeans\6.1\apache-tomcat-6.0.16_base
Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.16
Using CATALINA_TMPDIR: C:\Documents and Settings\Administrator\.netbeans\6.1\apache-tomcat-6.0.16_base\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_03
Sep 4, 2008 3:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0_06\bin;.;f:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem\;F:\sathish\Sathishwork\Engineering\DashBoard\JNI\IV-Dashboard-Plugin-1.0.0.0\;.;F:\Program Files\IBM\Lotus\Notes;.;F:\Program Files\IBM\WebSphere\AppServer\bin;C:\Program Files\TortoiseSVN\bin
Sep 4, 2008 3:00:57 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
Sep 4, 2008 3:00:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1064 ms
Sep 4, 2008 3:00:57 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 4, 2008 3:00:57 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Loaded at startupF:\NetSpace\Dashboard1.0\build\web\
Sep 4, 2008 3:01:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
Sep 4, 2008 3:01:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 4, 2008 3:01:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/141 config=null
Sep 4, 2008 3:01:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10328 ms
Sep 4, 2008 3:06:42 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8084
Sep 4, 2008 3:06:43 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 4, 2008 3:06:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:44 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:45 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Connection Pool Destroyed:
Sep 4, 2008 3:06:46 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:47 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:48 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:48 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8084

 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is your localhost:8084 showing in browser?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Using CATALINA_BASE: C:\Documents and Settings\Administrator\.netbeans\6.1\apache-tomcat-6.0.16_base
Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.16
Using CATALINA_TMPDIR: C:\Documents and Settings\Administrator\.netbeans\6.1\apache-tomcat-6.0.16_base\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_03
Sep 4, 2008 3:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0_06\bin;.;f:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem\;F:\sathish\Sathishwork\Engineering\DashBoard\JNI\IV-Dashboard-Plugin-1.0.0.0\;.;F:\Program Files\IBM\Lotus\Notes;.;F:\Program Files\IBM\WebSphere\AppServer\bin;C:\Program Files\TortoiseSVN\bin
Sep 4, 2008 3:00:57 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
Sep 4, 2008 3:00:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1064 ms
Sep 4, 2008 3:00:57 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 4, 2008 3:00:57 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Loaded at startupF:\NetSpace\Dashboard1.0\build\web\
Sep 4, 2008 3:01:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
Sep 4, 2008 3:01:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 4, 2008 3:01:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/141 config=null
Sep 4, 2008 3:01:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10328 ms



This part of your code shows the tomcat starup succefully w/o any exception or error !

Sep 4, 2008 3:06:42 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8084

Sep 4, 2008 3:06:43 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 4, 2008 3:06:43 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:44 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:45 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Connection Pool Destroyed:
Sep 4, 2008 3:06:46 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:47 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:48 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sep 4, 2008 3:06:48 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8084


and exactly after 5 minuted your Tomcat shutting down! That weird (If that automatically happening ) , Had you find something in tomcat logs ?

Maybe this question more Tomcat issue now, Pl post a new question in Tomcat section !
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sagar and Akildesh
I have moved this post into tomcat forum thanks for your valuable suggestion
[ September 04, 2008: Message edited by: Karup Mew ]
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karup Mew:
Hi Sagar and Akildesh
I have moved this post into tomcat forum thanks for your valuable suggestion

[ September 04, 2008: Message edited by: Karup Mew ]



:roll:
How did you do that?
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Akhilesh Trivedi:



How did you do that?



still now I dont have any solution I just post this question in tomcat forum
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. Only moderators can move the topic to other forum. You will not be able to do it. You can only create copies. But then now that you have started this thread, just keep going into the flow, dont create copies of the same-topic that will lead to ambiguity.

Getting back to where we left, you did not tell us, what is the result of http://localhost:8084 in your browser.
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its working with this port (8084)
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karup Mew:
Its working with this port (8084)



congrts
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Getting back to where we left, you did not tell us, what is the result of http://localhost:8084 in your browser



Its working in this port(8084) already but shutdown the tomcat is always failed
[ September 04, 2008: Message edited by: Karup Mew ]
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karup Mew:


Its working in this port(8084) already but shutdown the tomcat is always failed

[ September 04, 2008: Message edited by: Karup Mew ]



How do you say that it is working?
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sagar Rohankar:


congrts



http://faq.javaranch.com/java/UseRealWords
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karup Mew:


Its working in this port(8084) already but shutdown the tomcat is always failed


Whenever you tried to stop tomcat , is it pop up a window saying "cant shutdown tomcat on port 8084" or the message gets displayed on tomcat output window ?

And try this , when you shutdown the tomcat (though message is there), access the URL again , is it still show the "tomcat running message !!"
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sagar Rohankar:

And try this , when you shutdown the tomcat (though message is there), access the URL again , is it still show the "tomcat running message !!"



Few seconds it shows the page as running
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One final solution,

1.download Tomcat 6 Core ZIP , Not windows installer ,
2. Uninstall the previous instances of Tomcat
3. Just unzipped this downloaded Tomcat dir and paste into any directory , lets say "C:\Tomcat 6"
4.Now in Netbeans , go to Tools >> Servers >> and remove tomcat .
5. Now again go to Servers >> now attached the the new downloaded tomcat from location "c:\Tomcat 6" ,

7. Start it and stop it server then

If you can do this I sure it solves all the problem !!
 
Karup Mew
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sagar Rohankar:
One final solution,

1.download Tomcat 6 Core ZIP , Not windows installer ,
2. Uninstall the previous instances of Tomcat
3. Just unzipped this downloaded Tomcat dir and paste into any directory , lets say "C:\Tomcat 6"
4.Now in Netbeans , go to Tools >> Servers >> and remove tomcat .
5. Now again go to Servers >> now attached the the new downloaded tomcat from location "c:\Tomcat 6" ,

7. Start it and stop it server then

If you can do this I sure it solves all the problem !!



Thanks alot Sagar now it works fine after add new server 6.0.18 but i dont know reason for this problem
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karup Mew:


Thanks alot Sagar now it works fine after add new server 6.0.18 but i dont know reason for this problem



Sagar, your final solution is working but reason of the problem is not known. And also let us know why
download Tomcat 6 Core ZIP , Not windows installer ,?
[ September 04, 2008: Message edited by: Akhilesh Trivedi ]
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The magic is hidden in all the files present in directory %TOMCAT_HOME%/bin, where you find many .bat and .sh files like shutdown.bat , startup.bat , which helps to shutdown and start the server respectively !

And Interesting thing is , this files are needed by NB6 to properly shutdown and start/restart the server within a NB, (ultimately when you hook some server with NB, its find out those respective start/stop .bat server files)..

Now when we unzipped the core tomcat file , it contains those .bat file but not in Windows installer setup file( Its provide an enrty in Start > Progrms >>Tomcat 6, from where you can monitor Tomcat ).

Hope this clarifies !
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sagar Rohankar:
The magic is hidden in all the files present in directory %TOMCAT_HOME%/bin, where you find many .bat and .sh files like shutdown.bat , startup.bat , which helps to shutdown and start the server respectively !

And Interesting thing is , this files are needed by NB6 to properly shutdown and start/restart the server within a NB, (ultimately when you hook some server with NB, its find out those respective start/stop .bat server files)..

Now when we unzipped the core tomcat file , it contains those .bat file but not in Windows installer setup file( Its provide an enrty in Start > Progrms >>Tomcat 6, from where you can monitor Tomcat ).

Hope this clarifies !



I have worked on Eclipse, how do I configure Tomcat on NB6?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Download NB6 , In between the setup it ask you for which server you want to install either GlassFish Or Tomcat 6 (this 2 servers are bundled in NB6), Select Tomcat and it continue with its installation , Now when you start NB6 , you ll find Tools >> Servers >> Tomcat , start it and you are good to go !!

Everything related to , you can find here !
 
reply
    Bookmark Topic Watch Topic
  • New Topic