在localhost上发布到Tomcat v6.0 Server时出错

And*_*dry 11 java eclipse web-applications publishing tomcat6

当我尝试运行jsf页面时,我挥动Tomcat的问题,我得到下一个错误:

在此输入图像描述

细节:

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

谁有同样的错误?怎么解决?我试了几个小时,但没有结果:(

我已切换位置并设置使用Tomcat安装但也没有结果

小智 13

问题是,如果您以普通用户身份运行Eclipse,则Eclipse无法访问C:\ Program Files\Apache Software Foundation ..并且不会将配置文件复制到备份中.解决方案:您必须以管理员身份运行Eclipse或以某种方式设置当您单击Eclipse图标以管理员身份运行Eclipse时


dar*_*jan 0

将Tomcat放在路径中没有空格的文件夹中。所以:

C:\Program Files\Apache Software Foundation\Tomcat 6.0\backup
Run Code Online (Sandbox Code Playgroud)

应该是这样的:

C:\Tomcat\backup
Run Code Online (Sandbox Code Playgroud)