更新上下文定义在eclipse中失败

时间:2013-06-11 17:04:06

标签: eclipse tomcat6

我已经安装了apache tomcat 6.0并在eclipse上导入了我的项目。我在eclipse中配置了tomcat设置,但是当我更新项目的上下文定义时。 Eclipse给我错误

操作失败 C:\ Program Files(x86)\ Apache Software Foundation \ Tomcat 6.0 \ conf \ Catalina \ localhost \ HMS.xml(Accss被拒绝) 请参阅/.metadata/.log文件

然后我在元数据中打开日志文件,我收到此错误

!SESSION 2013-05-24 09:08:34.477 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_45
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY com.sysdeo.eclipse.tomcat 4 4 2013-05-24 09:09:31.134
!MESSAGE java.io.FileNotFoundException: C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\conf\server.xml.backup (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at com.sysdeo.eclipse.tomcat.FileUtil.copyFile(FileUtil.java:71)
    at com.sysdeo.eclipse.tomcat.FileUtil.copy(FileUtil.java:62)
    at com.sysdeo.eclipse.tomcat.TomcatProject.backupServerXML(TomcatProject.java:755)
    at com.sysdeo.eclipse.tomcat.TomcatProject.updateServerXML(TomcatProject.java:651)
    at com.sysdeo.eclipse.tomcat.TomcatProject.updateContext(TomcatProject.java:639)
    at com.sysdeo.eclipse.tomcat.actions.UpdateTomcatContextActionDelegate.doActionOn(UpdateTomcatContextActionDelegate.java:16)
    at com.sysdeo.eclipse.tomcat.actions.TomcatProjectAbstractActionDelegate.run(TomcatProjectAbstractActionDelegate.java:48)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

请帮帮我。 提前完成。

1 个答案:

答案 0 :(得分:0)

首先尝试执行“删除上下文定义”

在乱七八小时之后,它对我们起了作用!