- This topic has 6 replies, 2 voices, and was last updated 19 years, 9 months ago by
Brian Fernandes.
-
AuthorPosts
-
purplemugMemberHello,
I am following the struts tutorial built into MyEclipse. After creating a new web project, I right clicked on the project, and then clicked on “My Eclipse…” and “Add Struts Capabilities…” as indicated in the tutorial. The “Struts Support for MyEclipse Web Project” dialog box came up. I kept the defaults and clicked the “Finish” button. Nothing happens. The dialog box is still there. I clicked the Finish button again. Still no response; the dialog box stays. I clicked the Cancel button. The project is unchanged (the struts-related files were not added). I refreshed the project. Still, the struts files are not there. Twice, I deleted the project and followed all the steps again. Same thing. The “Finish” button does nothing. What is happening?
ThanksOctober 6, 2005 at 5:01 pm #238888
purplemugMemberTo add a little more info, if I instead add JSF capabilities to the project, that works fine. The wizard adds the appropriate files. But, if I create a new project and try to add Struts Capabilities, the dialog box blinks for a second, and then I’m returned to the dialog box. The files don’t get created.
October 7, 2005 at 2:16 am #238908
Brian FernandesModeratorThis looks like an installation issue, can you please answer all the questions in Posting Guidelines, that’ll help us solve your issue asap.
Best,
Brian.October 7, 2005 at 10:24 am #238937
purplemugMemberI checked the product documentation, and Googled, and didn’t see anything relating to the problem I’m having. I also looked through the Forum topics. Saw no info there.
I went to My Eclipse…About My Eclipse as stated in the posting guidelines and the Configuration Summary option is not there in my version of Eclipse. Here is the info I see in the About dialog box: Version 3.8.5. Build 200509151200-3.8.5. Installation root: c:\Program Files\MyEclipse
I also went to the Plug-In Development Perspective and viewed the log file there. There are a number of error messages (Exceptions) in the log file that look like they might relate to the problem. Perhaps I’m somehow missing some jar files I need? Here is the pertinent log file output I found there:
!SESSION 2005-10-07 11:12:18.312 ———————————————–
eclipse.buildId=I20050513-1415
java.version=1.5.0_03
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!ENTRY org.eclipse.update.configurator 2005-10-07 11:12:30.953
!MESSAGE Could not install bundle ../Program Files/MyEclipse/eclipse/plugins/Copy of com.genuitec.eclipse.core_3.8.5/ Bundle “com.genuitec.eclipse.core” version “3.8.5” has already been installed from: update@../Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.core_3.8.5/!ENTRY org.eclipse.ui 4 4 2005-10-07 11:12:42.15
!MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.hibernateconvert!ENTRY org.eclipse.ui 4 4 2005-10-07 11:12:42.62
!MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectrevert!ENTRY org.eclipse.ui 4 4 2005-10-07 11:12:42.78
!MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectconvert!ENTRY org.eclipse.ui 4 4 2005-10-07 11:12:42.109
!MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.jsfconvert!ENTRY org.eclipse.ui 4 4 2005-10-07 11:12:42.125
!MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.strutsconvert!ENTRY org.eclipse.ui 4 4 2005-10-07 11:22:45.484
!MESSAGE Exception in com.genuitec.eclipse.core.util.FileCreateUtil.getNewFile(): java.lang.NoSuchMethodError: org.eclipse.ui.internal.WorkbenchMessages.getString(Ljava/lang/String;)Ljava/lang/String;!ENTRY org.eclipse.ui 4 4 2005-10-07 11:22:45.531
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-10-07 11:22:45.562
!MESSAGE org.eclipse.ui.internal.WorkbenchMessages.getString(Ljava/lang/String;)Ljava/lang/String;
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.ui.internal.WorkbenchMessages.getString(Ljava/lang/String;)Ljava/lang/String;
at com.genuitec.eclipse.core.util.FileCreateUtil.createNewFile(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.ā(Unknown Source)
at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.performFinish(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
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:2921)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2554)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at com.genuitec.eclipse.struts.action.AddStrutsCapabilitiesActionDelegate.basicRun(Unknown Source)
at com.genuitec.eclipse.struts.action.AddStrutsCapabilitiesActionDelegate.run(Unknown Source)
at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:236)
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$5.handleEvent(ActionContributionItem.java:400)
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:2921)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2554)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
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:230)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
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:330)
at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)October 7, 2005 at 10:40 am #238939
Brian FernandesModeratorPurplemug,
Thank you for that information.
Could you try adding a -clean to your eclipse shortcut and restart eclipse? There is a decent chance that the plugin cache is out of date.
You need to do this only once, after that you can remove the -clean flag.On another note, I would like to suggest upgrading to MyEcipse 4.0.2 (will be released today if not already) and Eclipse 3.1. There are quite a few new features, see the New & Noteworthy link.
Best,
Brian.October 7, 2005 at 11:04 am #238941
purplemugMemberBrian,
Thanks for your help. I uninstalled and then installed 4.0.1. That took care of the problem, seems to work fine now. I’ll upgrade to 4.0.2 as soon as I see it.Also as a feature suggestion, I would recommend that MyEclipse upgrade automatically to new major releases as well as point releases (maybe with a prompt allowing the user to accept or reject the upgrade). I think MyEclipse already auto-updates itself to some extent but it would have been cool to get 4.0.1 (and next 4.0.2) automatically.
Thanks!October 7, 2005 at 11:15 am #238943
Brian FernandesModeratorPurplemug,
Glad you got it working. Yes, we do upgrade automatically but a jump from the 3.8.x series to the 4.0.x series was technically impossible.
You will not have to download 4.0.2 all over again, 4.0.1 will upgrade to 4.0.2 (you will be asked) as soon as it hits the update sites.
Best,
Brian. -
AuthorPosts