XAMPP Tomcat Not Stopping

10,396

You should check the PID and verify that it is not associated with any other service/process mistaken for Tomcat by XAMPP.

In my case I had Jenkins running on port 8080 and starting XAMPP it was "guessing" that Tomcat was already running:

Tomcat detected as already running


In reality, looking at the PID (198092 in my case) it was associated with java.exe:

java.exe

and this was a process generated by my Jenkins server running on that port:

Jenkins On

This is why you cannot stop Tomcat from there... (it is not Tomcat running on 8080).


To verify this and properly start Tomcat you can try this:

Stopping Jenkins:

Jenkins Off

Will remove the service running on 8080 and XAMPP is able to correctly detect that Tomcat is not running:

Tomcat not running

At this point you can Start Tomcat in XAMPP (and it should start for real this time):

Tomcat running

Going to the localhost page, port 8080 you will have a proof of it:

Tomcat Page

If you want you can now successfully stop it from XAMPP:

Tomcat Stop

Share:
10,396
Ani
Author by

Ani

I am a learner with over 5 years of experience working on AWS, NodeJs, Java and Python I'm 4x AWS certified and experienced in architecting, implementing and troubleshooting applications using Amazon Web Services. Technical skills involve working on NodeJs, Java and Python, using Serverless, Spring, Hibernate and Express frameworks using NoSQL(AWS DynamoDB) databases, Search engines(AWS CloudSearch and ElasticSearch) and Relational DBs(MySql / Postgres)

Updated on July 24, 2022

Comments

  • Ani
    Ani almost 2 years

    I have XAMPP installed on my Windows machine, I am unable to stop the Tomcat server.

    I have tried to kill the process with the Process Id as well, But weirdly it's not showing in the Task Manager nor the local Services, Which I referred from here - apache service not stopping in xampp

    Here's my XAMPP Control Panel screenshot - enter image description here

    Here's the Task Manager, I can't find the Process ID 3104 as shown in the XAMPP Control Panel-

    enter image description here

    I did run the command "Services.msc" to find and stop it but, no luck there either.

    enter image description here

  • Admin
    Admin over 2 years
    Please provide additional details in your answer. As it's currently written, it's hard to understand your solution.