facebook

Error enhancing web project using struts

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

    Hello, I am having a problem in MyEclipse Blue 7.5 when converting a struts web project. I see someone in a different thread is having problems with the same conversion, but my error appears to be different. Any thoughts as to what would cause this error? Any workarounds?

    -Aaron

    !ENTRY com.genuitec.eclipse.blue.projects 4 0 2009-08-17 12:53:55.070
    !MESSAGE
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performFinish(EnhanceProjectWizard.java:97)
    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: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:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at com.genuitec.eclipse.blue.project.ui.action.MigrateWizardAction.run(MigrateWizardAction.java:108)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    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:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    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:193)
    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:386)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: java.lang.RuntimeException: Could not migrate project.
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.assertStatus(EnhanceProjectWizard.java:208)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:115)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard$1.run(EnhanceProjectWizard.java:93)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    … 42 more
    Caused by: The Adding Struts support activity did not complete properly.
    at com.genuitec.eclipse.blue.project.migration.SequenceProcessor.doActivities(SequenceProcessor.java:66)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.runMigration(ProjectMigrationProcessor.java:92)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:57)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:49)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:100)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:94)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:114)
    … 49 more
    Root exception:
    java.lang.RuntimeException: Could not migrate project.
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.assertStatus(EnhanceProjectWizard.java:208)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:115)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard$1.run(EnhanceProjectWizard.java:93)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
    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:934)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performFinish(EnhanceProjectWizard.java:97)
    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: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:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at com.genuitec.eclipse.blue.project.ui.action.MigrateWizardAction.run(MigrateWizardAction.java:108)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    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:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    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:193)
    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:386)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: The Adding Struts support activity did not complete properly.
    at com.genuitec.eclipse.blue.project.migration.SequenceProcessor.doActivities(SequenceProcessor.java:66)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.runMigration(ProjectMigrationProcessor.java:92)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:57)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:49)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:100)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:94)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:114)
    … 49 more

    #301689 Reply

    ascifres,
    Can you copy paste your installation details here? You can get them from MyEclipse > Installation Summary > Installation Details?

    #301697 Reply

    Loyal Water
    Member

    ascifres,
    Im not sure what you mean by “Enhancing Web Project using Struts”. Are you facing a problem adding struts capabilities to a web project? Could you please list the steps that you are following.

    #301947 Reply

    Here are my installation details:
    *** Date:
    Monday, August 31, 2009 12:15:42 PM EDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Blue Edition
    Version: 7.5 Blue
    Build id: 7.5-Blue-20090609

    *** Eclipse details:
    MyEclipse Blue Edition

    Version: 7.5 Blue
    Build id: 7.5-Blue-20090609

    Eclipse Plug-in Development Environment

    Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
    Build id: M20080703-0800

    Eclipse Platform

    Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
    Build id: M20090211-1700

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
    Build id: M20090211-1700

    Eclipse Java Development Tools

    Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
    Build id: M20090211-1700

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\myeclipse-blue.exe
    -name
    Myeclipse-blue
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
    -clean
    -configuration
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    And I get the same problem two different ways:
    1. Selecting “Enhance RAD project for MyEclipse Blue” for a web project that has the Struts RAD facet.
    2. Selecting “Add Struts capabilities…” to the same web project.

    -Aaron

    #302035 Reply

    Can you provide your Struts configuration file? We are not really concerned with the contents of the struts-config element – only the metadata outside of it so you can hide sensitive data like:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd">
    
    <struts-config>
      <form-beans >
        <form-bean .... />
    
      </form-beans>
    
      <global-exceptions />
      <global-forwards />
      <action-mappings >
        <action...
        </action>
    
      </action-mappings>
    
      <message-resources ... />
    </struts-config>

    The problem is that it is likely its XML parser failure of sorts…
    Can it be you configuration file has some “weirdness” – i.e. non-ANSII chars, newlines from other OS (i.e. Unix newline on Windows box or vice versa)?

    #302037 Reply

    Here’s the metadata from my config file:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
                                   "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    
    

    If you would like the whole file, let me know and I can email you a scrubbed version.

    -Aaron

    #302038 Reply

    Please send it to support@genuitec.com with “Attn. Eugene” in the Subject. Thank you in advance.

    #302291 Reply

    Thanks for the file. Unfortunately I was unable to reproduce the problem. Can you clarify:
    1. RAD version and Struts version (I figure it is 1.1 as the config is for 1.1).
    2. Did you set some options to non-default when creating Struts project in RAD?

    #302313 Reply

    My RAD version is 7.0. The project itself was created long before my time, most likely using WSAD, so I don’t know what, if any, non-default options may have been set. Are there some other config files I could look in to find that information?

    #302338 Reply

    @ascifres wrote:

    My RAD version is 7.0. The project itself was created long before my time, most likely using WSAD, so I don’t know what, if any, non-default options may have been set. Are there some other config files I could look in to find that information?

    Thanks for you information. We will need to find a way to reproduce the problem.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Error enhancing web project using struts

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