1. Open the Servers Tab from Windows>Show View>Servers menu
(打开servers窗口)
2.Right click on the server and delete it
(删除)
3.Create a new server by going New>Server on Server Tab
(创建新的server)
4.Click on “Configure runtime environments…” link
(创建的时候可以看大右下角有个Configure runtime environments 的连接,点击进去)
5.Select the Apache Tomcat v7.0 server and remove it. This will remove the Tomcat server configuration. This is where many people do mistake – they remove the server but do not remove the Runtime environment.
(删除原来的配置)
6.Click on OK and exit the screen above now.
(点击ok退出)
7.From the screen below, choose Apache Tomcat v7.0 server and click on next button:
(再重新选新的一个server)
8.Browse to Tomcat Installation Directory
9.Click on Next and choose which project you would like to deploy:
(选中要部署的项目)
10.Click on Finish after Adding your project
(点击finish)
Now launch your server. This will fix your Server timeout or any issues with old server configuration. This solution can also be used to fix “port update not being taking place” issues.**
我的问题是:按照上面做的还是会发生同一个错误,几次都是这样之后,我就把之前可以正常运行的项目部署到服务器上,错误没有再发生。证明:可能是我的这个项目有问题。不是部署的问题。