Apache Tomcat not showing in Eclipse Server Runtime Environments
Codemia Knowledge Hub ·
Apache Tomcat usually goes missing from Eclipse's Server Runtime Environments because the Web Tools Platform (WTP) server adapters are not installed, the Tomcat installation path is wrong, or your Eclipse version does not support your Tomcat version. Less often, environment variables or a corrupted workspace are to blame.
Missing server adapters (WTP not installed)
Eclipse needs the right server adapters to work with Tomcat. Open:
Click "Add" and check whether "Apache Tomcat" is listed. If not, Eclipse needs the Web Tools Platform (WTP) plugins. Install them through:
Search for WTP and make sure it is installed.
Wrong Tomcat installation path
Eclipse cannot use Tomcat if the path is incorrect or invalid. Verify the path to your Tomcat installation and make sure its files and folders have the correct permissions. Set the path through:
Choose the matching Tomcat version and give the correct installation directory.
Unsupported Tomcat version
Eclipse may not support a newer or older Tomcat version. Check the Eclipse documentation for compatibility, and if your versions do not match, upgrade or downgrade Tomcat or Eclipse.
Environment variables not set
Missing or incorrect environment variables can break the integration. Make sure CATALINA_HOME and JAVA_HOME point to your Tomcat and Java installations. Check them from the command line:
Corrupted workspace
Internal configuration in the Eclipse workspace sometimes gets corrupted. Start a new workspace and set up the server there:
Create the new workspace and see whether Apache Tomcat can be added now.
Example: adding Tomcat 9 to Eclipse IDE for Enterprise Java Developers
With Tomcat 9 installed and Eclipse IDE for Enterprise Java Developers:
- Install Web Tools Platform: Go to
Help -> Eclipse Marketplace, search, and make sureEclipse WTPis installed. - Add Tomcat in Eclipse:
- Navigate to
Window -> Preferences -> Server -> Runtime Environments. - Click "Add" and select the correct Apache Tomcat version.
- Point to the Apache Tomcat installation directory.
- Verify the setup:
- Make sure Tomcat is not running while you configure it in Eclipse.
- Check that
JAVA_HOMEmatches the JDK version Tomcat requires.
Troubleshooting table
| Problem | Possible Cause | Solution |
| Apache Tomcat missing in IDE | Missing WTP Plugins | Install WTP via Eclipse Marketplace |
| Incorrect server path | Wrong or restricted path to Tomcat installation | Correct the path in Preferences Ensure permissions are set |
| Incompatible versions | Eclipse does not support the Tomcat version | Update/downgrade Eclipse or Tomcat |
| Environment variables | or not set | Set variables in System Properties |
| Corrupted workspace | Internal workspace configurations corrupted | Create a new workspace and retry |
Related reading
- Apache Traffic Server Clustering not working
- App delegate methods aren't being called in iOS 13
- App does not contain the correct beta entitlement
- App getting crash when click on GoogleSignIn button. Why?
- App installation failed Could not write to the device
- App installation failed due to application-identifier entitlement
- ''App not Installed'' Error on Android
- App not setup This app is still in development mode
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseInterview Questions practice on Codemia
Over 11,000 interview practice questions for 300+ companies, searchable by company and role.