用向导先建立一个Dynamic Web Project,再新建一个class文件,随便加上几个测试方法。
然后使用向导创建并测试webservice;
此时,要注意,tomcat已经设置好,而且,tomcat没有启动;
在这个过程中,遇到几个问题。
问题一:提示server无法打开,或者tomcat损坏;
Error occured when adding the module, CaoyueServer, to the server;
org.eclipse.core.internal.resources.ResourceException: Resource '/Servers' is not open.
org.eclipse.core.runtime.CoreException: The Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-
config is missing. Check the server for errors.
Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The Servers project is closed.
在webservice或者servlet运行时,会启动tomcat,并在workspace中生成一个server目录;同时,在Eclipse中