- This topic has 24 replies, 3 voices, and was last updated 20 years, 2 months ago by Thomas Trostel.
-
AuthorPosts
-
Thomas TrostelParticipantWe’ve not used the struts portion of eclipse until now. It seems easy enough to add items using the outline view and everything seems to be created correctly. Unfortunately after creating them this way they do not show up in the design tab (even after saving struts-config.xml).
Has anyone else had this problem? Is there some patch we are missing? We have 3.8.2 right now.
Thanks in advance!
Thomas TrostelParticipantIt also won’t let me edit a previously defined action mapping saying there is an XML validation error. There are no visible validation errors.
Riyad KallaMemberttrostel,
Can you post your struts-config.xml file here for us to load up locally and test it?
Thomas TrostelParticipantSure thing … its really simple right now.
<?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"> <struts-config> <data-sources /> <form-beans > <form-bean name="loginForm" type="something.struts.form.LoginForm" /> </form-beans> <global-exceptions /> <global-forwards /> <action-mappings > <action attribute="loginForm" input="/form/login.jsp" name="loginForm" path="/login" scope="request" type="something.struts.action.LoginAction" > <forward name="success" path="/form/success.jsp" /> <forward name="failure" path="/form/login.jsp" /> </action> </action-mappings> <controller bufferSize="4096" debug="0" /> <message-resources parameter="something.struts.ApplicationResources" /> </struts-config>
Riyad KallaMemberIt worked fine here:
Thomas TrostelParticipantIt doesn’t work here 🙂 … Anything I should check in particular? I get a completely blank pane.
Riyad KallaMemberWhat version of Eclipse are you using? Eclipse 3.1 is not supported.
Did you upgrade the GEF plugin at all yourself? (Maybe for VE?)
What does your log file have in it that is interesting? (workspace dir\.medata\.log)
Thomas TrostelParticipantWe are using Eclipse 3.0.1. GEF seems to be 3.0.0 and there doesn’t seem to be anything interesting in the .log file.
Which version of GEF are you using?
Thomas TrostelParticipantWe seem to be getting this in the log file now:
!ENTRY com.genuitec.eclipse.struts 1 1 Nov 23, 2004 15:40:16.164 !MESSAGE Unable to locate and parse config !STACK 0 org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1036651 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414) at org.apache.commons.digester.Digester.<init>(Digester.java:346) at org.easystruts.struts.config.EasyStrutsConfigLoader.getDigesterInstance(Unknown Source) at org.easystruts.struts.config.EasyStrutsConfigLoader.retriveBasicConfig(Unknown Source) at com.genuitec.eclipse.struts.StrutsPlugin.createConfig(Unknown Source) at com.genuitec.eclipse.struts.editor.outline.OpenStrutsElementEditorActionDelegate.createConfig(Unknown Source) at com.genuitec.eclipse.struts.editor.outline.OpenStrutsElementEditorActionDelegate.createConfig(Unknown Source) at com.genuitec.eclipse.struts.editor.outline.OpenStrutsElementEditorActionDelegate.validateRunnable(Unknown Source) at com.genuitec.eclipse.struts.editor.outline.BasicOpenWizardActionDelegate.run(Unknown Source) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:276) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866) at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688)
Riyad KallaMemberI am just using the gef version that came with MyEclipse 3.8.2:
org.eclipse.gef_3.0.0Do you have a conflicting version installed under <Eclipse dir>\plugins? Keep in mind that a lot of the 3.0 dev versions of GEF were all called “3.0”.
Riyad KallaMemberWhat is your MyEclipse Build ID? (Window > Prefs > MyEclipse)
Thomas TrostelParticipantI’m going to try re-installing both eclipse and MyEclipse. It was the latest version available from the website. I’ll let you know the results in a couple of minutes.
Thomas TrostelParticipantNope … still no joy in mudsville ….
Eclipse Platform
Version: 3.0.1
Build id: 200409161125MyEclipse
Version: 3.8.2
Build id: 200409171200-3.8.2All re-installed from scratch
Riyad KallaMemberFirst try and reastart Eclipse with the -clean command line argument, did that work?
If not, try and create a new workspace and see if it works there.
Thomas TrostelParticipantBoth -clean and a new workspace have no effect … any other ideas?
-
AuthorPosts