在Eclipse中发布配置时出错

Soh*_*med 14 eclipse tomcat

在localhost发布到tomcat v6.0服务器..'遇到了问题.

发布配置..

tomcat给出了上面的错误.如何解决上述错误.我google了很多,但没有找到任何解决方案.请帮我.

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)
Run Code Online (Sandbox Code Playgroud)

CCC*_*CCC 63

您的Eclipse正在尝试写入Program Files文件夹,该文件夹默认受Windows操作系统保护.

解决方案:

  1. 导航到Program Files文件夹.

  2. 右键单击Apache Software Foundation文件夹.

  3. 单击" 属性".
  4. 转到" 安全"选项卡.
  5. 单击" 编辑".

  6. 在"组或用户名称"列表框中选择" 用户 ".

  7. 在"其他用户权限"列表框中,选中"完全控制".

  8. 单击" 应用/确定".


小智 0

看来您的Tomcat 配置有问题,并且找不到这些路径

C:/Program Files/Apache 软件基金会/Tomcat 6.0/

如果您使用任何 Eclipse 插件,请尝试修改 tomcat home 路径

窗口 -> 首选项 -> Tomcat。

其他可能的解决方案可能是正确配置CATALINA_HOMEJAVA_HOME 系统变量

我希望这可以帮助你。