刚开始学tomcat就碰到这样的问题 求指教在References中配置好Tomcat7.0以后建立了一个名为test的web project(未做任何改动)来测试是否配置成功,结果打开http://localhost:8080/test/index.jsp后显示404错误,是不是tomcat没有配置好?部署test的时候,选择tomcat7.x 会有一个黄色感叹号,在Deployment Status里显示:
Deployment is out of date due to changes in the underlying project contents.You'll need to manually 'Redeploy‘
the project to update the deployed archive.如果点击部署对话框的Redeploy会有Undeployment failure报错,显示:
test could not be redeployed because it could not be completely removed in the undeployment phase.The most common cause of this problem is attempting to redeploy while the server is running,which has locked one or more files.
(可是此时我没有启动服务器啊?为什么?)如果用Myeclipse自带的Tomcat来启动服务器是可以显示出index.jsp的;
我的操作系统是win7,tomcat7.0已设置为“以管理员身份运行此程序”和“以XP SP3兼容模式运行此程序”

解决方案 »

  1.   

    test could not be redeployed because it could not be completely removed in the undeployment phase.The most common cause of this problem is attempting to redeploy while the server is running,which has locked one or more files.
    你的服务肯定是启动的,你认为没启动,但是可能进程没结束,
    你先别部署项目,启动服务看能否看到 那个tomcat7 index页面,
    如果可以,服务没问题,
    你在部署项目后,启动服务看输出什么信息
    ,tomcat是最简单的,你认真,仔细点,
    遇到问题多怀疑自己搞错了,别老怀疑tomcat有问题
      

  2.   

    tomcat是安装版,我换了一个免安装版的,然后再把tomcat路径调到了D盘就没问题了。
    谢谢指导!
      

  3.   

    你好,我也刚学,我想问:
    INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
    这个又是什么错误?thx