" Apache " is the name of a large software company that offers many products. I assume that you really mean his Tomcat product. "
Given that you are using XAMPP, you are most likely using Windows. Given that you are a PHP guy using Windows, you most likely downloaded the Tomcat Windows installer as a .exe instead of the Tomcat library as a .zip file. A Windows installer for Windows production environments (and therefore not for a development environment) will install Tomcat as a Windows service that starts automatically every time Windows starts (and therefore already occupies these ports).
You do not want to use the Tomcat Windows service if you simply develop and want to manage Tomcat from within Eclipse.
Stop the Tomcat service in the Windows Services Manager (start> run> services.msc) and / or remove the Tomcat Windows service. You just need a Tomcat library like .zip . All you have to do is extract it to the right place. Once you are stopped / deleted, you can start it in Eclipse without any problems.
source share