eclipse中,在讲项目发布到tomcat上的时候跳出:Could not publish server configuration for Tomcat 6.0 at localhost.
Multiple Contexts have a path of "/FlexNet".这是由eclipse在调试的时候超过了45秒的原因.
解决方法:
1. 修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。
<?xml version="1.0" encoding="UTF-8" standalone="no"?><servers> <server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v6.0 Server at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v6.0 Server at localhost" name="Tomcat v6.0 Server at localhost" runtime-id="Apache Tomcat v6.0" server-type="org.eclipse.jst.server.tomcat.60" server-type-id="org.eclipse.jst.server.tomcat.60" start-timeout="1000" stop-timeout="15" testEnvironment="true" timestamp="5"> <list key="modules" value0="newkia::org.eclipse.jst.jee.server:newkia::jst.web::2.5"/> </server></servers>把 start-timeout="45" 改为 start-timeout="1000" 或者更长
2. 重启eclipse就可以了。