问题
I am using Spring Tool Suite (3.3.0).
I am trying to Configure the Apache Tomcat (6.0.45) 6.Server Runtime Environment for a Dynamic Web Project.
After I created the project, and added the Tomcat Runtime to the STS, I clicked on "Properties" and selected "Project Facets".
However the option for Apache Tomcat is disable. I have not be able to find anything in the web related to this.
How can I enable Apache Tomcat runtime on Spring Tool Suite?
Propertied->Project Facets
回答1:
From what I found out "Dynamic Web Module 3.0" will not work with "Apache 6". You either need to Upgrade to "Apache 8" or use "Dynamic Web Module 2.5"
If your project is already 3.0 (like this one), then you need to edit manually the project facet (STS will not allow you to change from 3.0 to 2.5).
To make the change manually follow the process below:
- Go to your project location
- Expand the .settings folder
- Edit org.eclipse.wst.common.project.facet.core.xml
- Change version to 2.5 in this line
- Go to STS
- Right Click on “Your Project”
- Refresh (F5)
- Click on “Project” in the menu
- Select Clean
- Now go to the "Project Facets" screen again and you should be able to select the Apache 6 Runtime environment
来源:https://stackoverflow.com/questions/39167651/runtime-environment-is-disable-on-spring-tool-suite-sts