Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:54:21+00:00 2026-06-16T01:54:21+00:00

I installed tomcat 7 on centos 5.8. Then I executed ./startup.sh and ./shutdown.sh, it

  • 0

I installed tomcat 7 on centos 5.8.
Then I executed ./startup.sh and ./shutdown.sh, it worked well.

Then I put a something.war under the webapps/. it worked well too.
But when i shutdown the tomcat, it doesn’t work and throws an exception:

java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at java.net.Socket.<init>(Socket.java:375)
        at java.net.Socket.<init>(Socket.java:189)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453)

And i’m sure:

  1. The tomcat is running and works well before i execute ./shutdown.sh

  2. The process of the tomcat is still alive, but it isn’t listening the port 8080, after i execute ./shutdown.sh

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:54:23+00:00Added an answer on June 16, 2026 at 1:54 am

    Some possibilities come to my mind:

    • It is possible that your webapp starts a thread that doesn’t run as “daemon” – thus keeping the process alive. Change this in the webapp to behave more friendly – or implement a listener that shuts down the thread when your webapp is shutting down. You can test this by triggering a thread dump (kill -3 pid) on the running tomcat process, the output will (most likely) end up in catalina.out
    • There might be another tomcat running, on a different port – that’s what you see in ps output
    • You have changed the “shutdown” port (see tomcat’s server.xml) – that’s what shutdown.sh is contacting in order to instruct tomcat to shut down
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Apache Geronimo installed with Tomcat. I am building a war file and
I has installed my tomcat version 6 on centos 5.5 using jsvc as the
I have a fedora server. I installed tomcat via yum package manager. Then I
I've installed Tomcat today on my local VMware Workstation and loaded *.war YouTrack there.
I installed tomcat to win2003 server. When I start it by tomcat/bin/startup.bat , I
I've installed Tomcat and I've been testing it: I wrote some .html and .jsp
A few days ago I installed tomcat 7 and decided to try building a
Alright, this is a very simple question. I just installed Tomcat 6 on my
I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I am new to java vaadin framework. I have installed APACHE TOMCAT 6 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.