org.eclipse.core.runtime.CoreException: Unable to create war file

SpringSource Issue Tracker | Lukas Rossa | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I have an application deployed to CF. Yesterday I upgraded my STS install (from update site) and now I cannot Update and Restart my application from the CF plugin. Before: SpringSource Tool Suite 2.9.0.201203011000-RELEASE SpringSource Tool Suite Grails Support 2.9.0.201203011000-RELEASE Grails (production release) 2.0.1 Now: SpringSource Tool Suite 2.9.2.201205071000-RELEASE SpringSource Tool Suite Grails Support 2.9.2.201205071000-RELEASE Grails (production release) 2.0.3 The following error is reported in the log: !ENTRY com.springsource.sts.grails.core 4 0 2012-06-12 23:04:36.636 !MESSAGE A problem occurred building the war file for P/PtrackerApp !STACK 0 java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.deleteQuietly(Ljava/io/File;)Z at com.springsource.sts.grails.runonserver.RunOnServerPlugin.getStagingArea(RunOnServerPlugin.java:92) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.getStagingArea(GrailsAppModuleDelegate.java:541) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.getWarFile(GrailsAppModuleDelegate.java:526) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.cacheWarFile(GrailsAppModuleDelegate.java:459) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.cacheMembers(GrailsAppModuleDelegate.java:255) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.members(GrailsAppModuleDelegate.java:120) at org.eclipse.wst.server.core.internal.ModulePublishInfo.getModuleResources(ModulePublishInfo.java:321) at org.eclipse.wst.server.core.internal.ServerPublishInfo.getResources(ServerPublishInfo.java:361) at org.eclipse.wst.server.core.internal.Server.getResources(Server.java:1432) at com.cloudfoundry.sts.internal.server.core.CloudUtil.createWarFile(CloudUtil.java:63) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:425) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:1) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1108) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.deployOrStartModule(CloudFoundryServerBehaviour.java:481) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.startModule(CloudFoundryServerBehaviour.java:505) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.updateRestartModule(CloudFoundryServerBehaviour.java:601) at com.cloudfoundry.sts.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:77) at com.cloudfoundry.sts.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:84) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !ENTRY com.cloudfoundry.sts.server.ui 4 0 2012-06-12 23:04:36.640 !MESSAGE Failed to perform server editor action !STACK 1 org.eclipse.core.runtime.CoreException: Unable to create war file at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:427) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:1) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1108) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.deployOrStartModule(CloudFoundryServerBehaviour.java:481) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.startModule(CloudFoundryServerBehaviour.java:505) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.updateRestartModule(CloudFoundryServerBehaviour.java:601) at com.cloudfoundry.sts.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:77) at com.cloudfoundry.sts.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:84) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 com.cloudfoundry.sts.server.core 4 0 2012-06-12 23:04:36.641 !MESSAGE Unable to create war file

    SpringSource Issue Tracker | 5 years ago | Lukas Rossa
    org.eclipse.core.runtime.CoreException: Unable to create war file
  2. 0

    I have an application deployed to CF. Yesterday I upgraded my STS install (from update site) and now I cannot Update and Restart my application from the CF plugin. Before: SpringSource Tool Suite 2.9.0.201203011000-RELEASE SpringSource Tool Suite Grails Support 2.9.0.201203011000-RELEASE Grails (production release) 2.0.1 Now: SpringSource Tool Suite 2.9.2.201205071000-RELEASE SpringSource Tool Suite Grails Support 2.9.2.201205071000-RELEASE Grails (production release) 2.0.3 The following error is reported in the log: !ENTRY com.springsource.sts.grails.core 4 0 2012-06-12 23:04:36.636 !MESSAGE A problem occurred building the war file for P/PtrackerApp !STACK 0 java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.deleteQuietly(Ljava/io/File;)Z at com.springsource.sts.grails.runonserver.RunOnServerPlugin.getStagingArea(RunOnServerPlugin.java:92) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.getStagingArea(GrailsAppModuleDelegate.java:541) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.getWarFile(GrailsAppModuleDelegate.java:526) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.cacheWarFile(GrailsAppModuleDelegate.java:459) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.cacheMembers(GrailsAppModuleDelegate.java:255) at com.springsource.sts.grails.runonserver.GrailsAppModuleDelegate.members(GrailsAppModuleDelegate.java:120) at org.eclipse.wst.server.core.internal.ModulePublishInfo.getModuleResources(ModulePublishInfo.java:321) at org.eclipse.wst.server.core.internal.ServerPublishInfo.getResources(ServerPublishInfo.java:361) at org.eclipse.wst.server.core.internal.Server.getResources(Server.java:1432) at com.cloudfoundry.sts.internal.server.core.CloudUtil.createWarFile(CloudUtil.java:63) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:425) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:1) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1108) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.deployOrStartModule(CloudFoundryServerBehaviour.java:481) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.startModule(CloudFoundryServerBehaviour.java:505) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.updateRestartModule(CloudFoundryServerBehaviour.java:601) at com.cloudfoundry.sts.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:77) at com.cloudfoundry.sts.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:84) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !ENTRY com.cloudfoundry.sts.server.ui 4 0 2012-06-12 23:04:36.640 !MESSAGE Failed to perform server editor action !STACK 1 org.eclipse.core.runtime.CoreException: Unable to create war file at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:427) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:1) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1108) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.deployOrStartModule(CloudFoundryServerBehaviour.java:481) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.startModule(CloudFoundryServerBehaviour.java:505) at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.updateRestartModule(CloudFoundryServerBehaviour.java:601) at com.cloudfoundry.sts.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:77) at com.cloudfoundry.sts.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:84) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 com.cloudfoundry.sts.server.core 4 0 2012-06-12 23:04:36.641 !MESSAGE Unable to create war file

    SpringSource Issue Tracker | 5 years ago | Lukas Rossa
    org.eclipse.core.runtime.CoreException: Unable to create war file
  3. 0

    Issue 13 - testng-eclipse - TestNG does not appear in Run As context menu. - Eclipse plug-in for TestNG - Google Project Hosting

    google.com | 1 year ago
    org.eclipse.core.runtime.CoreException: No property tester contributes a property isTest to type class org.eclipse.core.internal.resources.File at org.eclipse.core.internal.expressions.TypeExtensionManager.getProperty(TypeExtensionManager.java:109) at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:95) at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:150) at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:69) at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:43) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalEnablementExpression(LaunchShortcutExtension.java:282) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.getApplicableConfigurationTypes(LaunchConfigurationManager.java:714) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.getApplicableLaunchConfigurations(LaunchConfigurationManager.java:747) at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.getResourceLabel(LaunchingResourceManager.java:303) at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:207) at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager$2.run(LaunchingResourceManager.java:125)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    User reported the following exception is seen in the log when prompted for updating the npm packages, and the installation failed: {code} !ENTRY com.appcelerator.titanium.update 4 4 2013-01-01 16:24:30.649 !MESSAGE Error encountered during update !SUBENTRY 1 com.appcelerator.titanium.nodejs.core 4 0 2013-01-01 16:24:30.649 !MESSAGE !STACK 0 java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableMap.put(Unknown Source) at com.appcelerator.titanium.nodejs.internal.core.NodePackageManager.install(NodePackageManager.java:174) at com.appcelerator.titanium.update.TitaniumNPMRelease.install(TitaniumNPMRelease.java:43) at com.appcelerator.titanium.update.TitaniumSDKUpdater.installTitaniumUpdates(TitaniumSDKUpdater.java:591) at com.appcelerator.titanium.update.TitaniumSDKUpdater.access$0(TitaniumSDKUpdater.java:556) at com.appcelerator.titanium.update.TitaniumSDKUpdater$2.run(TitaniumSDKUpdater.java:388) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 com.appcelerator.titanium.nodejs.core 4 0 2013-01-01 16:24:30.649 !MESSAGE !STACK 0 java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableMap.put(Unknown Source) at com.appcelerator.titanium.nodejs.internal.core.NodePackageManager.install(NodePackageManager.java:174) at com.appcelerator.titanium.update.TitaniumNPMRelease.install(TitaniumNPMRelease.java:43) at com.appcelerator.titanium.update.TitaniumSDKUpdater.installTitaniumUpdates(TitaniumSDKUpdater.java:591) at com.appcelerator.titanium.update.TitaniumSDKUpdater.access$0(TitaniumSDKUpdater.java:556) at com.appcelerator.titanium.update.TitaniumSDKUpdater$2.run(TitaniumSDKUpdater.java:388) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !ENTRY com.appcelerator.titanium.alloy.ui 4 0 2013-01-01 16:24:30.659 !MESSAGE (Build 3.0.1.201212181159) [ERROR] Failed to add Alloy templates !STACK 1 org.eclipse.core.runtime.CoreException: Unable to find 'alloy' binary. at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplatesWithNewCommand(AlloyTemplateInstaller.java:261) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplates(AlloyTemplateInstaller.java:246) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.access$0(AlloyTemplateInstaller.java:244) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller$1.run(AlloyTemplateInstaller.java:151) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 com.appcelerator.titanium.alloy.ui 4 0 2013-01-01 16:24:30.659 !MESSAGE Unable to find 'alloy' binary. {code}

    Appcelerator JIRA | 4 years ago | Michael Xia
    org.eclipse.core.runtime.CoreException: Unable to find 'alloy' binary. at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplatesWithNewCommand(AlloyTemplateInstaller.java:261) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplates(AlloyTemplateInstaller.java:246) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.access$0(AlloyTemplateInstaller.java:244) at com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller$1.run(AlloyTemplateInstaller.java:151)
  6. 0

    GitHub comment 9#30126535

    GitHub | 3 years ago | lrkwz
    org.eclipse.core.runtime.CoreException: Error creating server instance. Check access permission for the directory C:/Program Files/springsource/vfabric-tc-server-developer-2.9.3.RELEASE and its files and subdirectories. at com.vmware.vfabric.ide.eclipse.tcserver.internal.core.TcServerUtil.handleResult(TcServerUtil.java:130) at com.vmware.vfabric.ide.eclipse.tcserver.internal.core.TcServerUtil.executeInstanceCreation(TcServerUtil.java:91) at com.vmware.vfabric.ide.eclipse.tcserver.internal.core.TcServer21ServerHandlerCallback.configureServer(TcServer21ServerHandlerCallback.java:33) at org.springsource.ide.eclipse.commons.internal.configurator.server.ServerDescriptor$ServerHandlerCallbackDelegate.configureServer(ServerDescriptor.java:40) at org.springsource.ide.eclipse.commons.configurator.ServerHandler.createServer(ServerHandler.java:318) at org.springsource.ide.eclipse.commons.configurator.ServerHandler.createServer(ServerHandler.java:157) at org.springsource.ide.eclipse.commons.internal.configurator.server.ConfigurableServerExtension.configure(ConfigurableServerExtension.java:70) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporter$4.run(ConfiguratorImporter.java:419)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.eclipse.core.runtime.CoreException

      Unable to create war file

      at com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun()
    2. com.cloudfoundry.sts
      CloudFoundryEditorAction$1.run
      1. com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:427)
      2. com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$17.doRun(CloudFoundryServerBehaviour.java:1)
      3. com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour$Request.run(CloudFoundryServerBehaviour.java:1108)
      4. com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.deployOrStartModule(CloudFoundryServerBehaviour.java:481)
      5. com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.startModule(CloudFoundryServerBehaviour.java:505)
      6. com.cloudfoundry.sts.internal.server.core.CloudFoundryServerBehaviour.updateRestartModule(CloudFoundryServerBehaviour.java:601)
      7. com.cloudfoundry.sts.internal.server.ui.actions.StartStopApplicationAction.performAction(StartStopApplicationAction.java:77)
      8. com.cloudfoundry.sts.internal.server.ui.actions.CloudFoundryEditorAction$1.run(CloudFoundryEditorAction.java:84)
      8 frames
    3. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame