Solution 1:
Create an identical Tomcat server, add the application to the server, and start the server. The problem is that some directories do not exist)
Solution 2:
Software:
- Eclipse-jee-ganymede-SR1-win32.zip(Version: 3.4.1, build ID: M20080911-1700)
Step:
- New-> Web-> dynamic web project (target runtime: Apache Tomcat 6.0; Dynamic Web module version: 2.5)
- Window-> show view-> servers, new-> server, add and remove projects..., start (server)
Warning:
- [Setpropertiesrule] {server/service/engine/host/context} setting property 'source' to 'org. Eclipse. JST. J2EE. SERVER: demo' did not find a matching property.
Solution:
- Server's properties-> General-> location =/servers/tomcat v6.0 server at localhost. server;
- Project Explorer-> servers-> Tomcat v6.0 server at localhost. server, double click to open it.
- Server options-> check "Publish module contexts to separate XML files ".
Explaination:
- Tomcat of previous version doesn' t support the "Source" attribute in the "context" node of "server. xml" file.
Result:
- A separate XML file named "demo. xml" was created in the "$ server path $ \ conf \ Catalina \ localhost \".