Eclipse tomcat 配置问题

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:

enter image description here

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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值