Menu

#18 Update Context fails with error if optional work dir is not specified

9.x.x
closed
MarkusK
None
2016-09-15
2016-09-14
Mike Snare
No

Project -> Properties -> Tomcat -> General

If the "Subdirectory to set as web application work (optional)" is not filled out, then attempting to invoke the "Update context definition" action fails with the following stack trace:

!MESSAGE java.lang.IllegalArgumentException: Path must include project and resource name: /<context name="">
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2068)
at org.eclipse.core.internal.resources.Container.getFolder(Container.java:197)
at net.sf.eclipse.tomcat.TomcatProject.getWorkFolder(TomcatProject.java:537)
at net.sf.eclipse.tomcat.TomcatProject.getContextWorkDir(TomcatProject.java:1234)
at net.sf.eclipse.tomcat.TomcatProject.updateWorkInContext(TomcatProject.java:1038)
at net.sf.eclipse.tomcat.TomcatProject.updateContextDefinition(TomcatProject.java:902)
at net.sf.eclipse.tomcat.TomcatProject.updateContextDefinitionInFile(TomcatProject.java:961)
at net.sf.eclipse.tomcat.TomcatProject.updateContextFile(TomcatProject.java:717)
at net.sf.eclipse.tomcat.TomcatProject.updateContext(TomcatProject.java:686)
at net.sf.eclipse.tomcat.actions.UpdateTomcatContextActionDelegate.doActionOn(UpdateTomcatContextActionDelegate.java:29)
at net.sf.eclipse.tomcat.actions.TomcatProjectAbstractActionDelegate.run(TomcatProjectAbstractActionDelegate.java:52)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:247)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
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:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)</context>

Discussion

  • MarkusK

    MarkusK - 2016-09-15
    • status: open --> closed
    • assigned_to: MarkusK
    • Milestone: Open --> 9.x.x
     
  • MarkusK

    MarkusK - 2016-09-15

    Thank you for reporting the issue. It will be fixed in the next release.

     

Log in to post a comment.

Auth0 Logo