facebook

Struts Design Pane Empty [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #219869 Reply

    Thomas Trostel
    Participant

    We’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!

    #219872 Reply

    Thomas Trostel
    Participant

    It also won’t let me edit a previously defined action mapping saying there is an XML validation error. There are no visible validation errors.

    #219879 Reply

    Riyad Kalla
    Member

    ttrostel,
    Can you post your struts-config.xml file here for us to load up locally and test it?

    #219880 Reply

    Thomas Trostel
    Participant

    Sure 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>
    
    #219882 Reply

    Riyad Kalla
    Member

    It worked fine here:

    #219887 Reply

    Thomas Trostel
    Participant

    It doesn’t work here 🙂 … Anything I should check in particular? I get a completely blank pane.

    #219888 Reply

    Riyad Kalla
    Member

    What 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)

    #219898 Reply

    Thomas Trostel
    Participant

    We 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?

    #219911 Reply

    Thomas Trostel
    Participant

    We 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)
    

    #219913 Reply

    Riyad Kalla
    Member

    I am just using the gef version that came with MyEclipse 3.8.2:
    org.eclipse.gef_3.0.0

    Do 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”.

    #219919 Reply

    Riyad Kalla
    Member

    What is your MyEclipse Build ID? (Window > Prefs > MyEclipse)

    #219923 Reply

    Thomas Trostel
    Participant

    I’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.

    #219926 Reply

    Thomas Trostel
    Participant

    Nope … still no joy in mudsville ….

    Eclipse Platform
    Version: 3.0.1
    Build id: 200409161125

    MyEclipse
    Version: 3.8.2
    Build id: 200409171200-3.8.2

    All re-installed from scratch

    #219927 Reply

    Riyad Kalla
    Member

    First 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.

    #219928 Reply

    Thomas Trostel
    Participant

    Both -clean and a new workspace have no effect … any other ideas?

Viewing 15 posts - 1 through 15 (of 25 total)
Reply To: Struts Design Pane Empty [Closed]

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