如何让Tomcat修改后的端口重新在Eclipse中起效?
当某个端口被占用后,tomcat就会无法启动,我们需要修改tomcatconfserver.xml端口,如由8080修改为8082,但Eclipse中对于这个tomcat的关联端口却仍为8080, Connector port=“8082”… 这时,我们需要作如下操作,打开Eclipse的 windows->Preference->Server->Installed Runtimes,选中我们那个tomcat,将其删除,同时在J2EE试图状态,在Server tab中删除这个server,然后重起eclipse,再重新用 windows->Preference->Server->Installed Runtimes添加tomcat到eclipse即可让eclipse启动tomcat5时用心的端口8082. 作者:豆博草堂