| Author |
Message |
|
|
Post subject: Error enhancing web project using struts
Posted: Aug 21, 2009 - 05:48 PM
|
|
Joined: Mar 19, 2009
Posts: 57
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Error enhancing web project using struts
Posted: Aug 24, 2009 - 11:37 AM
|
|
Registered Member

Joined: May 18, 2009
Posts: 1532
|
|
ascifres,
Can you copy paste your installation details here? You can get them from MyEclipse > Installation Summary > Installation Details? |
_________________ Shalini
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Error enhancing web project using struts
Posted: Aug 24, 2009 - 05:23 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
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. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 31, 2009 - 05:18 PM
|
|
Joined: Mar 19, 2009
Posts: 57
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 02, 2009 - 01:17 PM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
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:
| Code: |
<?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)? |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 02, 2009 - 02:07 PM
|
|
Joined: Mar 19, 2009
Posts: 57
|
|
Here's the metadata from my config file:
| Code: |
<?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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 02, 2009 - 02:23 PM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
|
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 10, 2009 - 01:05 PM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
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? |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 10, 2009 - 09:27 PM
|
|
Joined: Mar 19, 2009
Posts: 57
|
|
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? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 11, 2009 - 11:57 AM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
| 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. |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|