Eclipse配置Tomcat常见问题及运行第一个项目

常见问题:

  1. install new software异常缓慢:
    解决:不要勾选Contact Update …(最下方)
    Eclipse配置Tomcat常见问题及运行第一个项目
  2. Server中没有Tomcat: 解决:去install new software下载JST Server Adapter Extensions(在Web,XML,Java EE and OSGi Enterprise Development列表中)
  3. 启动项目提示端口占用:Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
    解决:在eclipse中使用tomcat时,不要单独开启Tomcat, 先去关闭Tomcat,再到eclipse中开启。如果是其他情况,关掉相应端口即可。Eclipse强行关闭后,再次启动项目也会有这个问题,要关闭Tomcat(Linux下是去安装目录的bin下运行./shutdown.sh)
  4. 运行第一个项目出现404, 建议 看这篇文章,按步骤新建一个新项目
  5. web.xml不是文本文件:点击左下角Source
    Eclipse配置Tomcat常见问题及运行第一个项目