localhost:8080 未出现tomcat 欢迎画面,http status 404:
1.单击 Window > Show view > Server 或右键“Servers”视图中的服务器,选择“Properties” 。
2.在“General”面板中,点击“Switch Location”按钮。
3.“Location: [workspace metadata]”应该由别的东西代替。
4.双击服务器打开总览视图。
5.在服务器位置的选项卡,选择“Use Tomcat location” 。
6.保存设置并重新启动服务器。
问题二:
I wave problem with Tomcat when I try to run a jsf page, I get next error:

Details:
Publishing the configuration...
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat6.0/backup\catalina.policy: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.policy (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.policy (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\catalina.properties: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.properties (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\catalina.properties (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\context.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\context.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\context.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\server.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\server.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\server.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\tomcat-users.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\tomcat-users.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\tomcat-users.xml (The system cannot find the path specified)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.0/backup\web.xml: C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\web.xml (The system cannot find the path specified)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup\web.xml (The system cannot find the path specified)
Who have same error? How to solve it? I try few hours, but no result :(
I have switch the location And set Use Tomcat installations but also no result
answer:
Just Close your Eclipse . And Start Eclipse as Run As Administrator your problem will be solved. Eclipse doesn't have access to C:\Program Files\Apache Software Foundation.. and doesnt copy the configuration file into backup.
To Set Eclipse to run as administrator go to eclipse Right Click on Eclipse Select Properties -->Compatibility -->privilege level -->Select Run this program As Administrator -->apply -->ok then you are all set...
And if you want to change this setting for all users then go to eclipse Right Click on Eclipse Select Properties -->Compatibility -->change setting for all users-->privilege level -->Select Run this program As Administrator -->apply -->ok... Thank you.
本文解决在尝试运行JSF页面时遇到的Tomcat配置文件复制错误问题,提供了关闭并以管理员身份重新启动Eclipse的方法,并详细说明了如何设置Eclipse以管理员身份运行。
1253

被折叠的 条评论
为什么被折叠?



