facebook

Error exporting to war file

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #307672 Reply

    salakala
    Member

    Hello,

    I am using MyEclipse Blue Edition 8.5 on Windows XP and when trying to export a project to war file I get following error::

    !ENTRY com.genuitec.eclipse.ast.deploy.core 1 0 2010-04-15 12:20:37.156
    !MESSAGE Build Exception
    !STACK 0
    com.genuitec.eclipse.core.GenuitecCoreException: 
        at com.genuitec.eclipse.ast.deploy.core.packaging.WarPackager.exportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.exportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.exportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.WebDeployment.exportWebProjectAsPackaged(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.WebDeployment.deployAsPackageArchive(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
        at com.genuitec.eclipse.export.wizard.WARExportWizardPage.finish(WARExportWizardPage.java:188)
        at com.genuitec.eclipse.export.wizard.WARExportWizard$1.run(WARExportWizard.java:71)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)
        at com.genuitec.eclipse.export.wizard.WARExportWizard.performFinish(WARExportWizard.java:64)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at org.eclipse.ui.internal.handlers.WizardHandler$Export.executeHandler(WizardHandler.java:97)
        at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)
        at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
        at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
        at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
        at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:171)
        at org.eclipse.ui.actions.ExportResourcesAction.run(ExportResourcesAction.java:116)
        at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
        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:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        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:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    Caused by: org.eclipse.core.runtime.CoreException: 
        at com.genuitec.eclipse.ast.deploy.core.packaging.WarPackager$1.run(Unknown Source)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
        ... 60 more
    Caused by: java.lang.NullPointerException
        at com.genuitec.eclipse.j2eedt.core.MavenUtil.isMavenLibrary(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.deployExportedUserLibs(Unknown Source)
        ... 63 more
    

    What could be the problem here? Project should be ok, classpaths etc.

    Thank you
    Jaan

    #307694

    Jaan,
    Can you give some more information?
    1. Can you copy paste your installation details from MyEclipse > Installation Summary > Installation Details?
    2.

    !MESSAGE Build Exception

    Can you clarify if your project is running successfully when deployed to a server?
    3. Can you create a simple web application (File > New > Web Project) and try to export that to a war file? Do you still get the error?

    #307712

    salakala
    Member

    Hello Shalini,

    Here are the install details:

    
    *** Date: 
    reede, 16. Aprill 2010 15:37:49 EEST
    
    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13
    
    
    *** MyEclipse details:
    MyEclipse Blue Edition
    Version: 8.5 Blue
    Build id: 8.5-Blue-20100319
    
    
    *** Eclipse details:
    MyEclipse Blue Edition
    
    Version: 8.5 Blue
    Build id: 8.5-Blue-20100319
    
    
    
    
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse Blue Edition 8.5\myeclipse-blue.exe
    -name
    Myeclipse-blue
    --launcher.library
    C:\Program Files\Genuitec\MyEclipse Blue Edition 8.5\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse Blue Edition 8.5\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    C:/Program Files/Genuitec/MyEclipse Blue Edition 8.5
    -configuration
    configuration
    -data
    C:\Documents and Settings\Administrator\Workspaces\MyEclipse_Blue
    -launcher
    C:\Program Files\Genuitec\MyEclipse Blue Edition 8.5\myeclipse-blue.exe
    -install
    C:/Program Files/Genuitec/MyEclipse Blue Edition 8.5
    -configuration
    configuration
    -vm
    C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
    

    When I try to deploy from MyEclipde I get this:

    
    An internal error occurred during: "Add Deployment".
    java.lang.NullPointerException
    

    … and the log is following:

    
    !ENTRY org.eclipse.core.jobs 4 2 2010-04-16 15:32:11.015
    !MESSAGE An internal error occurred during: "Add Deployment".
    !STACK 0
    java.lang.NullPointerException
        at com.genuitec.eclipse.j2eedt.core.MavenUtil.isMavenLibrary(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.deployExportedUserLibs(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.deployExportedUserLibs(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.WebDeployment.ć(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.WebDeployment.doProjectTypeSpecificPostResyncAll(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.jobs.A.�(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.jobs.A.run(Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    

    And yes, if I create a new Web project it exports just fine.

    best regards
    Jaan

    #307749

    Jaan,
    Can you clarify if there are any errors in the problems window? Go to Window > Show View > Problems and verify if there are any project related errors.

    #307847

    salakala
    Member

    Hi,

    No, there aren’t any project related errors.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Error exporting to war file

You must be logged in to post in the forum log in