在本地主机上发布到 tomcat v6.0 服务器..'遇到了问题。
发布配置..
tomcat 给出以上错误。如何解决上述错误。我用谷歌搜索了很多但没有找到任何解决方案。请帮助我。
Publishing the configuration...
Error copying file to C:/Program Files/Apache Software Foundation/Tomcat 6.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)
最佳答案
您的 Eclipse 正在尝试写入 Windows 操作系统默认保护的 Program Files 文件夹。
解决方案:
导航到 Program Files 文件夹。
右键单击 Apache Software Foundation 文件夹。
- 点击属性。
- 转到安全选项卡。
点击编辑。
在组名或用户列表框中选择用户。
在其他用户权限列表框中,选中完全控制。
点击应用/确定。
关于eclipse - 在 Eclipse 中发布配置时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18333739/