facebook

Exception trying to deploy to jboss

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #228733 Reply

    Brett Connor
    Member

    I have a small test project that a few days ago deployed fine to my local JBoss, and now doesn’t. The symptom is that it continuously says “deployment is out of date due to changes… etc”, and the .war or anything else has not appeared in the deploy directory any more. All settings appear to be correct. Then I find this in the error log:

    Info 2005-04-26 16:38:49.265 Build Exception
    com.genuitec.eclipse.core.GenuitecCoreException: Exception deploying .myeclipse
    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.DeploymentPackager.exportWebProject(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.ast.deploy.core.Deployment.redeploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.ą(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$2(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$5.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:803)
    at org.eclipse.jface.window.Window.open(Window.java:781)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:236)
    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:220)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
    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.core.launcher.Main.invokeFramework(Main.java:315)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
    at org.eclipse.core.launcher.Main.run(Main.java:942)
    at org.eclipse.core.launcher.Main.main(Main.java:926)
    Caused by: org.eclipse.core.runtime.CoreException: Exception deploying .myeclipse
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer$1.run(Unknown Source)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1714)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1734)
    … 41 more

    – System Setup ——————————-
    Operating System and version: WinXP Pro SP1
    Eclipse version: 3.1M6
    Eclipse build id: I20050401-1645
    Fresh Eclipse install (y/n): y
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 7
    MyEclipse version: 3.8.4
    Eclipse JDK version: 1.5.0_01
    Application Server JDK version: 4.0.1sp1
    Are there any exceptions in the Eclipse log file? above

    #228734 Reply

    Brett Connor
    Member

    Further info: I removed the deployment, and tried to add it again. Selecting JBoss4 from the drop down in the “new deployment” dialog gave me a new exception stack:

    Regards
    Brett

    Error 2005-04-26 16:45:10.796 java.lang.NullPointerException
    java.lang.NullPointerException
    at org.eclipse.core.runtime.Path.<init>(Path.java:152)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.computeDeploymentLocation(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.updateLocationField(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.updateDeploymentType(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage$2.widgetSelected(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:803)
    at org.eclipse.jface.window.Window.open(Window.java:781)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.Ă(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$0(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:803)
    at org.eclipse.jface.window.Window.open(Window.java:781)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:236)
    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:220)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
    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.core.launcher.Main.invokeFramework(Main.java:315)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
    at org.eclipse.core.launcher.Main.run(Main.java:942)
    at org.eclipse.core.launcher.Main.main(Main.java:926)

    #228735 Reply

    Brett Connor
    Member

    A similar but slightly different dump appears each time I toggle the “packaged” vs “exploded” radio button, each wrapped in an “Unhandled event loop exception”.
    I don’t know what’s changed to cause this to fail, it worked fine last week.

    Regards
    Brett

    Error 2005-04-26 16:45:06.31 java.lang.NullPointerException
    java.lang.NullPointerException
    at org.eclipse.core.runtime.Path.<init>(Path.java:152)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.computeDeploymentLocation(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.updateLocationField(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.handleServersComboBoxModified(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage$1.modifyText(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:187)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:866)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
    at org.eclipse.swt.widgets.Combo.wmCommandChild(Combo.java:1992)
    at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:3155)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3032)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3466)
    at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1549)
    at org.eclipse.swt.widgets.Combo.callWindowProc(Combo.java:276)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3114)
    at org.eclipse.swt.widgets.Combo.windowProc(Combo.java:1756)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3466)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1625)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2525)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:803)
    at org.eclipse.jface.window.Window.open(Window.java:781)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.Ă(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$0(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:803)
    at org.eclipse.jface.window.Window.open(Window.java:781)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:236)
    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:220)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
    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.core.launcher.Main.invokeFramework(Main.java:315)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
    at org.eclipse.core.launcher.Main.run(Main.java:942)
    at org.eclipse.core.launcher.Main.main(Main.java:926)

    #228741 Reply

    Riyad Kalla
    Member

    Brett,
    1) Try this: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#343
    2) If #1 doesn’t work, Try File > Switch Workspace > C:\tempworkspace > Hit OK to restart. Resetup JBoss, deploy some test app to it, did it work?
    3) If #2 didn’t work, then (you knew this was comming, why you skipped it I don’t know): Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #228756 Reply

    Brett Connor
    Member

    Hi Riyad,
    Thanks for the response. I did a -clean, that’s always one of the first things I try. Didn’t help me.
    I put the setup info in the first post, after the stack trace, is there anything missing from that? I hit the “insert” button on the page and then filled in the answers. Perhaps I shall put it at the top of the post next time.

    I couldn’t find a way to rescue that project, what I did was create a new project and copy the source in, setup the deployment again, and currently it’s working fine. Diff’ing the files now, the only significant difference I can see is that the new .mymetadata has a
    context-root=”xyz”
    attribute in the project-module element where the old one does not.

    I don’t know why it worked before and why it changed, that’s disturbing. This is just a tiny test project so recreating it is not too stressful, but if this happens on my real stuff…

    Regards
    Brett

    #228757 Reply

    Riyad Kalla
    Member

    Thanks for the response. I did a -clean, that’s always one of the first things I try. Didn’t help me.

    Well unless you had your fingers crossed while you did it, I can see why it didn’t work 😉

    I put the setup info in the first post, after the stack trace, is there anything missing from that?

    Woops I thought it was part of the stack trace, I see it. You know about the whole “make sure you have the right Beta version of MyEclipse” deal with M4 and M6 right?

    Diff’ing the files now, the only significant difference I can see is that the new .mymetadata has a
    context-root=”xyz”
    attribute in the project-module element where the old one does not.

    Ahh, if you still have the old project around, load it up, go to MyEclipse-Web project properties, and see if the context root got nulled out. This has happened to me once, and only once, but it caused the problems you are describing.

    This is just a tiny test project so recreating it is not too stressful, but if this happens on my real stuff…

    Double check the project props next time and do quick sanity checks. The Eclipse preferences API seems to flake sometimes, have no idea why. It was much worse in persisting values in 2.x though. Hopefully by 3.1 GA it won’t happen anymore.

    #228758 Reply

    Brett Connor
    Member

    You know about the whole “make sure you have the right Beta version of MyEclipse” deal with M4 and M6 right?

    Hmm, I think so. I’ve only ever had 3.1M6 installed, and jumped on your announcement a couple of weeks ago of the M6 version of 3.8.4, I’m pretty sure I got the right one.

    go to MyEclipse-Web project properties, and see if the context root got nulled out. This has happened to me once, and only once, but it caused the problems you are describing.

    Ah, that was it. I looked at all the preferences and properties I could find before, didn’t really spot that the context root had been set to “/” (if it had been completely empty it might have jumped off the page at me). Thanks for the help.

    Regards
    Brett

    #289104 Reply

    cgage
    Member

    I ran across this same “bug” again today with version 6.5.1GA, so it appears that it is still broken. When will this ever get fixed? Search your forums and you will find many references to this same “bug”. Just search for “DeploymentManager” in the forums and you will see all the people that are running into this same issue.

    Thanks.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Exception trying to deploy to jboss

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