初学eclipse,今天安装tomcat插件的时候,走了一个小小的弯路。我用的eclipse的版本是3.2,tomcat插件是3.2, 将tomcat解压到eclipse/plugins下,并在eclipse->window->preferences...作了相应的配置,点击tomcat的时候,出现了类似如下的错误:
2007-6-4 11:13:20 org.apache.catalina.startup.Bootstrap main
警告: Bootsrap: command "D:/Tomcat 5.5/conf/server.xml" does not exist.
如果将preferences...下的Tomcat版面的context declaration mode选择为Context file(之前是选择Server.xml),则能够启动(???),百度了很久都找不到答案,后来终于在google找到了,答案如下:
there is a bug in version 3.2.0 when setting context declaration mode to 'Server.xml', it is fixed in version 3.2.1 (http://www.eclipsetotale.com/tomcatPlugin.html).
重新下载tomcat3.2.1版本,运行...,果然正常运行。忙了一两个小时,原来是插件的bug...