When developing a struts2 project using eclipse today, right-click Run on server and the following message appears:
The server does not support edition 3.0 of the J2EE Web module specification
Tomcat 6.0 is used to create this project. JDK 1.6 is used, while Tomcat 6.0 supports servlet 2.5.
Find a solution on the Internet and share the following:
There is. SettingsFolder, which hasOrg. Eclipse. WST. Common. Project. facet. Core. xmlFile, the content is as follows:
<? XML version = "1.0" encoding = "UTF-8"?>
<Faceted-Project>
<Fixed facet = "JST. Web"/>
<Fixed facet = "WST. jsdt. Web"/>
<Fixed facet = "Java"/>
<Installed facet = "Java" version = "1.5" type = "codeph" text = "/codeph"/>
<Installed facet = "JST. Web" version ="3.0"/>
<Installed facet = "WST. jsdt. Web" version = "1.0"/>
</Faceted-Project>
Set<Installedfacet = "JST. Web" version = "3.0"/>Change
<Installed facet = "JST. Web" version = "2.5" type = "regxph" text = "yourobjectname"/>