Web project deployment to Tomcat in addition to the Eclipse plugin, Eclipse also has a servers window to deploy. Issue background: Servers window, I previously created a tomcat v6.0 Server, then I deleted the auto-generated project servers, and changed the tomcat path configuration in eclipse (because I deployed it with the configuration file server.xml). The problem arises, and now I'm going to re-build a Tomcat 6.0 server, and I'll find that there's no such thing as.
But I found other TOMCT 7.0 server,5.0 server in short I have not established and strongly deleted Tomcat server can be built, in addition to the previous Tomcat 6.0 server good, but also online to find the answer, some people say delete the project storage directory G:\ Workspace\.metadata\.plugins under the file, I tried not to. Later read an article http://tieba.baidu.com/p/2128705220, the problem is not the same but I found a thing, that's the pathwindow->preference->server->runtime environment->Open a look in eclipse, sweetie, this is the configuration source in the Servers window, and you'll see that there's only one JBoss server configuration in the diagram, because I just configured it, but there's a Tomcat 6.0 server! is this not the one I used to delete? Feel a little bit, so I deleted this Tomcat 6.0 server, and then new. In the new process found a phenomenon, the Tomcat path is not correct, this is my path configuration before modifying the Tomcat path, really is my forced action caused by the problem, I intend to re-unzip the eclipse package, change the eclipse use, no need to change the path of the wrong prompt , create complete. Now I'm going to new a Tomcat 6.0 Server, found out, OK! You can create a new! See Click Finish button Finish new, obediently, Servers window and have Tomcat 6.0 Server, excited I spent time, hit so many words to record the solution of this problem, good!
Eclipse failed to create a Tomcat 6.0 server in the Servers window