Eclipse uses tomcat 6 to run and find that it cannot be used

Because the default is different when each project is created,
and then there are some configurations where the tomcat server cannot work together.
Here is the facet dynamic module version 2.5 can use tomcat 6
and dynamic module version 3 can only use tomcat 7
You can modify the file to put org.eclipse.wst.common.project.facet.core.xml in the




.settings folder under the project folder to org.eclipse.wst in the .settings folder under the project folder. common.project.facet.core.xml
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="wst.jsdt.web"/>
  <fixed facet="java "/>
  <fixed facet="jst.web"/>
  <installed facet="java" version="1.6"/>
  <installed facet="jst.web" version="3.0"/>
  < installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
  <installed facet="jst.web" version="3.0"/> is
changed to
  <installed facet="jst.web" version="2.5"/>
and it's ok after a few cleans

http://blog.csdn.net/ tooocoldlove/article/details/7976652


dynamic web module and the corresponding TOMCAT version are

relatively clumsy, just write it down, and I will study it in depth tomorrow.
Roughly because there are many types of java web systems, such as static and dynamic, and dynamic java web project needs to set dynamic web module, that is, dynamic web page model, it must be matched with the corresponding server to run, today The problem I see is that
dynamic web module 2.4 corresponds to Tomcat 5.5
dynamic web module 2.5 corresponds to Tomcat 6.0
dynamic web module 3.0 corresponds to Tomcat 7.0

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326261640&siteId=291194637