当出现这个错误时,去eclipse-->server-->Runtime Environments中看看是不是tomcat的配置变了

Cannot publish to the server because it is missing its runtime environment.

如下图,为tomcat的名字变了(常见原因,tomcat的路径或者名字发生了改变):

Cannot publish to the server because it is missing its runtime environment.

相关文章: