突然无法从日食出口到战争文件 [英] Suddenly unable to export to war file from eclipse
本文介绍了突然无法从日食出口到战争文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
org.eclipse.core.runtime.CoreException:扩展操作失败:
org.eclipse.jst .j2ee.internal.web.archive.operations.WebComponentExportOperation
在org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.performFinish(DataModelWizard.java:182)
在org。 eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
在org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
在org.eclipse.jface。 dialogs.Dialog $ 2.widgetSelected(Dialog.java:618)
在org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
在org.eclipse.swt.widgets.EventTable .sendEvent(EventTable.java:66)
在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
在org.eclipse.swt.widgets.Display.runDeferredEvents(显示.java:3682)
在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
在org.eclipse.jface.window。 Window.runEventLoop(Window.java:820)
在org.eclipse.jface.window.Window.open(Window.java:796)
在org.eclipse.ui.actions.ExportResourcesAction.run( ExportResourcesAction.java:180)
在org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
在org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java: 546)
在org.eclipse.jface.action.ActionContributionItem.access $ 2(ActionContributionItem.java:490)
在org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(ActionContributionItem.java:402)
在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
在org.eclipse .ui.internal.Workbench.runEventLoop( Workbench.java:2389)
在org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
在org.eclipse.ui.internal.Workbench.access $ 4(Workbench.java :2219)
在org.eclipse.ui.internal.Workbench $ 4.run(Workbench.java:466)
在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 289)
在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 76)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:3 63)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun。 reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
在java.lang.reflect.Method.invoke(Unknown Source)
在org。 eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
在org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
在org.eclipse.equinox。 launcher.Main.run(Main.java:1173)
org.eclipse.core.runtime.CoreException [0]:org.eclipse.core.commands.ExecutionException:错误exportingWar File
在org.eclipse .jst.j2ee.internal.archive.operations.J2EEArtifactExportOperation.execute(J2EEArtifactExportOperation.java:103)
在org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl $ 1.run(DataModelPausibleOperationImpl.java:376 )
在org.ec在这里,您可以在b在org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl)上的org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:352)
.java:242)
在org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
在org.eclipse.wst.common.frameworks.internal .datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
在org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:202)
在org.eclipse .wst.common。 framework.internal.datamodel.ui.DataModelWizard $ 1 $ CatchThrowableRunnableWithProgress.run(DataModelWizard.java:211)
在org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:113)
导致:org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException:IWAE0017E无法替换原始存档:C:\Users\mark\uploads\myfirstjsp.war
在org.eclipse .jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.cleanupAfterTempSave(ArchiveImpl.java:322)
在org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:1182)
在org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentExportOperation.export(WebComponentExportOperation.java:54)
在org.eclipse.jst.j2ee.internal.archive.operations。 (J2EEArtifactExportOperation.java:95)
...另外
方案
我想我应该读完整个错误,因为它表示问题是无法写入文件。有趣的部分是导致文件被锁定的原因。 Firefox有文件打开,所以eclipse无法写入文件。我不知道为什么firefox的文件打开,但我正在使用它来将war文件上传到服务器。
I been working on this Servlet project all morning and now suddenly I cannot get eclipse to export the project to a war file. I tried restarting eclipse and cleaning the project but I just get the same result. Any ideas?
org.eclipse.core.runtime.CoreException: Extended Operation failure:
org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentExportOperation
at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.performFinish(DataModelWizard.java:182)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.ExportResourcesAction.run(ExportResourcesAction.java:180)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
org.eclipse.core.runtime.CoreException[0]: org.eclipse.core.commands.ExecutionException: Error exportingWar File
at org.eclipse.jst.j2ee.internal.archive.operations.J2EEArtifactExportOperation.execute(J2EEArtifactExportOperation.java:103)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:376)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:401)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:352)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:242)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:202)
at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard$1$CatchThrowableRunnableWithProgress.run(DataModelWizard.java:211)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: IWAE0017E Unable to replace original archive: C:\Users\mark\uploads\myfirstjsp.war
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.cleanupAfterTempSave(ArchiveImpl.java:322)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:1182)
at org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentExportOperation.export(WebComponentExportOperation.java:54)
at org.eclipse.jst.j2ee.internal.archive.operations.J2EEArtifactExportOperation.execute(J2EEArtifactExportOperation.java:95)
... 10 more
解决方案
Well I guess I should have read the whole error as it does say that the problem is it can't write to the file. The interesting part was what was causing the file to be locked. Firefox had the file open so eclipse couldn't write to the file. I have no idea why firefox had the file open though I was using it to upload the war file to the server.
这篇关于突然无法从日食出口到战争文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文