eclipse 发布项目是报错 Publishing the configuration...

win7在使用Myclipse发布项目时,会出现如下两种错误:

1、系统找不到指定的路径

Publishing the configuration...
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 7.0/backup\catalina.policy: C:\Program Files\Apache Software Foundation\Tomcat 7.0\backup\catalina.policy (系统找不到指定的路径。)
C:\Program Files\Apache Software Foundation\Tomcat 7.0\backup\catalina.policy (系统找不到指定的路径。)
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 7.0/backup\catalina.properties: C:\Program Files\Apache Software Foundation\Tomcat 7.0\backup\catalina.properties (系统找不到指定的路径。)
C:\Program Files\Apache Software Foundation\Tomcat 7.0\backup\catalina.properties (系统找不到指定的路径。)


2、拒绝访问

Publishing the configuration...
Error copying file to C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\server.xml: C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\server.xml (拒绝访问。)
C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\server.xml (拒绝访问。)


原因:

win7用户权限管理比较严格,Eclipse运行的权限无法对目录C:\Program Files\Apache Software Foundation\Tomcat 7.0\进行拷贝操作。

解决方案:

1、以管理员的权限运行Eclipse,,右键点击Eclipse执行文件,选择“以管理员身份运行”。


你可能感兴趣的:(eclipse 发布项目是报错 Publishing the configuration...)