- This topic has 14 replies, 3 voices, and was last updated 17 years, 7 months ago by
iha.
-
AuthorPosts
-
ihaMemberHi,
I’ve searched the forums and could not find a solution so posting here.Trying to create the “StrutsLoginDemo” tutorial after doing a fresh install of MyEclipse 6.0 and Eclipse 3.3 on Fedora 6.
After creating the Web Project (New Project -> MyEclipse -> Java Enterprise Projects -> Web Project) I right-click the project, and try to add Struts by selecting MyEclipse -> Add Struts Capabilities… But unfortunatlely no dialog appears, no popups whatsoever, when I do this. The project file structure remains unchanged.
Selecting Add JSF Capabilities… and all the other options works fine, popup dialog shows up for those.
Tried deleting and creating new projects but no luck. Tried restarting eclipse with no luck.
Am I missing something here? The Add Struts Capabilities… options is there so I’m assuming I already have support.
Any ideas?
I
Loyal WaterMemberCan you switch to a new workspace, creaate a new web project and try adding Struts capabilities to this project. Does it work ?
Can you paste your installation details here for me. The posting guidelines can be found at the top of the forum.
ihaMemberThanks for the reply.
Tried changing workspaces and creating new project but still got the same problem. Add Struts Capabilities… is there but no dialog popup.
My installation details are below:
*** Date:
Friday, August 31, 2007 4:29:44 PM BRT** System properties:
OS=Linux
OS version=2.6.22.2-42.fc6
Java version=1.6.0*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.0 M1
Build id: 20070629-6.0.0-M1*** Eclipse details:
Eclipse SDKVersion: 3.3.0
Build id: I20070625-1500Eclipse Project SDK
Version: 3.3.0.v20070607-7M7J-BIolz-OcxWxvWAPSfLPqevO
Build id: I20070625-1500Eclipse Platform
Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G
Build id: I20070625-1500Eclipse Plug-in Development Environment
Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC
Build id: I20070625-1500Eclipse RCP
Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG
Build id: I20070625-1500Eclipse Java Development Tools
Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR
Build id: I20070625-1500Eclipse Graphical Editing Framework
Version: 3.3.0.v20070620
Build id: 20070620-1021Eclipse startup command=-os
linux
-ws
gtk
-arch
x86
-showsplash
-launcher
/home/iha/applications/eclipse/eclipse
-name
Eclipse
–launcher.library
/home/iha/applications/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
-startup
/home/iha/applications/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-data
/home/iha/workspace
-launcher
/home/iha/applications/eclipse/eclipse
-clean
-vm
/usr/java/jdk1.6.0/jre/lib/i386/client/libjvm.so
ihaMemberDon’t know if this helps but when I click Add Struts Capabilities… then look at the error log I find that I’m getting the following exception:
!ENTRY org.eclipse.ui 4 0 2007-08-31 16:36:48.639
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError: org.easystruts.IEasyStrutsPreferences.getCopyStrutsLibPath()Z
at com.genuitec.eclipse.struts.wizards.NewStrutsSupportWizardPage.createCopyControls(NewStrutsSupportWizardPage.java:321)
at com.genuitec.eclipse.struts.wizards.NewStrutsSupportWizardPage.createControl(NewStrutsSupportWizardPage.java:372)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:669)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:543)
at org.eclipse.jface.window.Window.create(Window.java:426)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081)
at org.eclipse.jface.window.Window.open(Window.java:785)
at com.genuitec.eclipse.struts.action.AddStrutsCapabilitiesActionDelegate.basicRun(AddStrutsCapabilitiesActionDelegate.java:72)
at com.genuitec.eclipse.struts.action.AddStrutsCapabilitiesActionDelegate.run(AddStrutsCapabilitiesActionDelegate.java:54)
at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
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:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
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:153)
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(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:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
ihaMemberSome more information:
I did a reinstall of Eclipse 3.3 and MyEclipse6.0 on my Linux Fedora 6 using a non-root user. Installed both programs into the home directory of that user.
When I launched Eclipse for the first time and created a project…viola! I could Add Struts Capabilities…
But…when I chose to install the MyEclipse updates Matisse4MyEclipse Swing UI Designer 6.0.0.zmyeclipse60020070820 and MyEclipse HotFix-600.1, then created a new project, Add Struts Capabilities again did not bring a dialog and threw the exception above.
Hope that information helps in solving the problem.
I
Loyal WaterMemberThanks for this information. Ill ask some one from my dev team to take a look at this.
GregMemberHave you tried to restart with -clean? Have you installed any other plugins into your MyEclipse installation?
ihaMemberI have tried using both -clean at command line and including it in eclipse.ini, and still getting the same exception as above.
No, I haven’t added any new plugins. The only thing I did was install Eclipse 3.3., then immediately added MyEclipse 6.0 then tried adding Add Struts Capabilities to a Web Project; works the first time, but not any time after.
Is there any other data I can pass your way to better solve the problem?
I
ihaMemberFor the very first project that I was able to Add Struts Capabilities…, i tried completing the StrutsLoginDemo tutorial.
When I tried to add a new Form, Action and JSP via the wizard, it blew up at the end and through the following execption. Could this be related to our original problem? Thought I’d add it here.
So from the looks of it the struts support on my copy of MyEclipse is very unstable. (BTW, when exceptions are thrown I get no error message whatsoever. There should be some message box directing me to error logs, etc.).
!ENTRY org.eclipse.ui 4 0 2007-09-07 17:15:22.595
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError: com.genuitec.struts.velocity.VelocityStrutsGenerator.createActionForm(Lorg/easystruts/struts/config/FormBeanConfig;[ILjava/lang/String;Ljava/lang/String;ZZ)Lorg/easystruts/xslgen/struts/FormBeanClass;
at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.performCreateForm(NewActionAndFormCreationWizard.java:152)
at com.genuitec.eclipse.struts.wizards.NewActionAndFormCreationWizard.perform(NewActionAndFormCreationWizard.java:65)
at com.genuitec.eclipse.struts.wizards.NewEasyStrutsWizard.performFinish(NewEasyStrutsWizard.java:571)
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:616)
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:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction$1.run(BasicOpenWizardAction.java:179)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction.launchWizard(BasicOpenWizardAction.java:183)
at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardAction.runWithEvent(BasicOpenWizardAction.java:172)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
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:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
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:153)
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(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:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
GregMemberI’ve tested this very test case on one of our Linux test workstations and it seems to work just fine. I can’t seem to reproduce your errors. So there must be something with the installation or other environmental problem that is causing these NoMethodFound errors.
How did you install MyEclipse? Manual installer or automated installer?
ihaMemberI installed MyEclipse using the automated installer. All installations of Eclipse 3.3 and MyEclipse 6.0 were done in my home directory.
Is there any way for you to tell me what kind of system configs on Fedora 6 might be causing these eceptions, seeing that you can’t reproduce. Under what conditions would the above exceptions be thrown? Can you determine that from the source code?
BTW, i am running the Trial Version, if that matters.
I
GregMemberCould you try installing MyEclipse from the Manual install package that is available on the download page? There is a chance that somehow the automated installer is not installing some of the MyEclipse plugins correctly.
So create a new directory with the eclipse 3.3 SDK and then a new subdirectory that will contain the manual install files. When you unzip the manual installer there is help included in the zip file. Try to replicate your error with the manual install and let us know how it goes.
ihaMemberYour suggestion worked!
Installing using the manual installer did the trick. Ran the StrutsLoginDemo and it works.
However….i do notice that under my Managed Configurations and the MyEclipse folder, the MyEclipse JSP Design Support 6.0.0.zmyeclipse60020070820 component is not installed properly.
The status reads: “Plug-in “org.mozilla.xulrunner.gtk.linux.x86” version “0.0.0” referenced by this feature is missing”.
How do I resolve this missing feature?
Thanks
GregMemberGlad it is now working!
Regarding that error, I believe that is just a feature error, but the actual plugin should be loaded ok. To very click the “Ajax Web Browser” toolbar icon in the toolbar. If this opens the browser correctly then your installation is in good shape. If you get a dialog box stating that there is a compatibility problem, click the help link and it will instruct you on how to start to fix the compatibility problem. If you have trouble, post back here and we can help you get going.
ihaMemberAJAX browser launched without problems.
Thanks for your help!
-
AuthorPosts