facebook

Export to war fails on ver 6.5.1

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #287677 Reply

    mdmaurer
    Participant

    I recently upgraded to MyEclipse 6.5.1 GA (from 5.5.1). I loaded my old project and tried to do an Export to war. It appears to complete successfully, but never writes the war file to the selected location. Upon further digging I found an error log that reports the following exception (see below). Any ideas what the problem might be? It was working fine before upgrading to 6.5.

    com.genuitec.eclipse.core.GenuitecCoreException: The remote storage service was not able to recall the file
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.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:187)
    at com.genuitec.eclipse.export.wizard.WARExportWizard$1.run(WARExportWizard.java:71)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at com.genuitec.eclipse.export.wizard.WARExportWizard.performFinish(WARExportWizard.java:64)
    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)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by: org.eclipse.core.runtime.CoreException: The remote storage service was not able to recall the file
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer$1.run(Unknown Source)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1779)
    … 51 more

    #287685 Reply

    Loyal Water
    Member

    Do you face this issue only with old projects ? If you create a new project and try exporting it, does it get exported correctly?

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #287704 Reply

    mdmaurer
    Participant

    I seem to have solved the Export issue. Some of the files in my project that were residing on a network drive were being auto archived (effectively taken offline). Perhaps MyEclipse was having trouble accessing those files during the Export operation to copy them to the war. I manually restored all the files to their original location and then the Export started working.

    One other issue I’m having is the icon for the root node of my project (in the Package Explorer pane) has a little red “x” on it indicating some kind of build problem. But none of the child nodes or files under it are marked with the “x”. So I don’t know what or where it thinks the problem is. Any ideas?

    #287720 Reply

    Loyal Water
    Member

    Go to Windows > Show View > Others > General > Problems and open the problem view. You will get the error messages listed there.

    #287728 Reply

    mdmaurer
    Participant

    Got it! Found the error message in the problem viewer and fixed it (missing external jar on classpath).

    While I’m getting such great help from you, maybe you can answer this question… When I export to a war, the “WAR Export” dialog always makes me browse to and select the path & filename to export to. The file is always the same, and a pain to do this every time. Is there a project setting or something that will make it remember the export file path/name so I don’t have to do this?

    Also the progress bar on the bottom of that same dialog is useless. It instantly jumps to about 25% and freezes there until it’s done. No big deal, just a minor nuisance.

    Thanks a million for all your help!

    #287736 Reply

    mdmaurer
    Participant

    …and why is it so unbelievably SLOW sometimes trying to edit the comments in a JSF source file? Sometimes it will take 3 or 4 seconds to respond to a single keystroke.

    For example, a comment line like this:
    <!– CSS style for alternating table row background colors –>

    To edit the text between the <!– –> marks is super slow, like it is trying to do tons of validation checks on each keystroke or something.

    #287823 Reply

    Loyal Water
    Member

    Try adding the following line to the eclipse.ini file and check if it helps:-

    -vmargs -Xms128M -Xmx512M -XX:PermSize=128M -XX:MaxPermSize=256M

    Make sure you dont introduce any extra new line characters or extra spaces while adding these arguments to the eclipse.ini file.

    #287825 Reply

    mdmaurer
    Participant

    I already have those params in the eclipse.ini

    #287841 Reply

    Loyal Water
    Member

    For the export part, you can setup a Custom Location/Packaged Deployment, it will do exactly what you wants AND you can just “Redeploy” from the server view every time you want to refresh it. To deploy to a custom location, you need follow the normal steps for deploying to server but on the last page of the deployment wizard, you will have to select Custom Location instead of the server name.

    Can you open Log Error view (view is in Windows-Show view-Other-PDE Runime-Error log view) and see if any errors are getting logged on the keystrokes.

    #291684 Reply

    Greg Bishop
    Member

    >>Can you open Log Error view (view is in Windows-Show view-Other-PDE Runime-Error log view)
    >>and see if any errors are getting logged on the keystrokes.

    COOL. But there is an error, what can I do about it? When I am editing a JSP or a java file, the context sensitive help comes up quickly, but then something happens and the help system freezes for about 30 seconds before it resumes working. It might do this repeatedly. You can type and do things in the mean time just as if it was working, it’s quite annoying.

    I’ve left off the details, but can send them to you if you are interested. I’m very vanilla, nothing special, configured, just right out of the box.

    EX:

    eclipse.buildId=M20080221-1800
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    Error
    Fri Dec 05 12:06:25 EST 2008
    Cannot retrieve the attached javadoc for HttpSession [in HttpSession.class [in javax.servlet.http [in C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.6.0.zmyeclipse660200810\data\libraryset\EE_5\javaee.jar]]]java.net.ConnectException: Connection timed out: connect

    eclipse.buildId=M20080221-1800
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    Error
    Fri Dec 05 11:27:05 EST 2008
    No property tester contributes a property capabilityEnabled to type class org.eclipse.core.internal.resources.Project

    eclipse.buildId=M20080221-1800
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    Error
    Fri Dec 05 11:51:00 EST 2008
    Problems occurred when invoking code from plug-in: “org.eclipse.jface”.

    eclipse.buildId=M20080221-1800
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    Error
    Fri Dec 05 11:27:30 EST 2008
    Unable to update index for central http://repo1.maven.org/maven2/

    #291687 Reply

    mdmaurer
    Participant

    @support-nipun wrote:

    Can you open Log Error view (view is in Windows-Show view-Other-PDE Runime-Error log view) and see if any errors are getting logged on the keystrokes.

    I looked at the log and there are no errors being logged on the keystrokes. It continues to be extremely slow to edit comments.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Export to war fails on ver 6.5.1

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