facebook

Unable to add Struts capabilities

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

    appu
    Member

    Hi,
    I just installed the Eclipse 3.1 and MyEclispe trial version. While trying the struts tutorial, noticed that the “Add Struts Capbilities” id greyed out.

    Pls let me know if I need to do anything to enable that option.

    Following is the log file content

    *********************************************
    eclipse.buildId=I20050219-1500
    java.version=1.5.0_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -noverify
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean -noverify
    
    !ENTRY org.eclipse.update.configurator 2005-03-02 15:23:08.410
    !MESSAGE Could not install bundle /D:/Java/MyEclipse/eclipse/plugins/org.eclipse.emf.common.ui_2.0.1/   Bundle "org.eclipse.emf.common.ui" version "2.0.1" has already been installed from: update@/d:/Java/eclipse/plugins/org.eclipse.emf.common.ui_2.0.1/
    
    !ENTRY org.eclipse.ui 4 4 2005-03-02 15:23:13.783
    !MESSAGE Could not create action delegate for id: com.genuitec.myeclipse.webproject.action.projectrevert
    
    !ENTRY org.eclipse.ui 4 4 2005-03-02 15:23:13.783
    !MESSAGE Internal plug-in action delegate error on creation.
    !STACK 0
    java.lang.LinkageError: loader constraints violated when linking org/xml/sax/EntityResolver class
        at org.jdom.input.SAXBuilder.configureParser(SAXBuilder.java:506)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:351)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:673)
        at com.genuitec.eclipse.j2eedt.metadata.ProjectModule.unmarshal(Unknown Source)
        at com.genuitec.eclipse.j2eedt.core.J2EEProject.loadMetaData(Unknown Source)
        at com.genuitec.eclipse.j2eedt.core.J2EEProject.<init>(Unknown Source)
        at com.genuitec.eclipse.j2eedt.core.WebProject.<init>(Unknown Source)
        at com.genuitec.eclipse.j2eedt.core.WebProject.<init>(Unknown Source)
        at com.genuitec.eclipse.j2eedt.core.J2EECore.getWebProjectsList(Unknown Source)
        at com.genuitec.eclipse.j2eedt.core.J2EECore.getWebProject(Unknown Source)
        at com.genuitec.eclipse.j2eedt.ui.action.WebProjectRevertActionDelegate.selectionChanged(Unknown Source)
        at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:195)
        at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:117)
        at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:265)
        at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:288)
        at org.eclipse.ui.internal.AbstractSelectionService$3.run(AbstractSelectionService.java:160)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015)
        at org.eclipse.core.runtime.Platform.run(Platform.java:757)
        at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:158)
        at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:66)
        at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015)
        at org.eclipse.core.runtime.Platform.run(Platform.java:757)
        at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:161)
        at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1676)
        at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:935)
        at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:961)
        at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:209)
        at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:204)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:364)
        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:2908)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2541)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
        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:585)
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
        at org.eclipse.core.launcher.Main.run(Main.java:887)
        at org.eclipse.core.launcher.Main.main(Main.java:871)
    ***********************************************************

    Thanks,
    Appu

    #226109 Reply

    Riyad Kalla
    Member

    Appu,
    A few things, I noticed that you are using the -noverify command line arg, we have had 2 users with really weird behavioes before say that the -noverify caused the problems, so you might not want to use that.

    Also, if your project is not a Web Project, then you cannot add Struts Capabilities to it. So either convert the Java Project to a Web Project (Add Web Capabilities) or create a new Web Project from the File > New menu.

    #227023 Reply

    pborg99
    Member

    I have the same issue. I created a new web project and the “Add struts Capabilities” is greyed out.

    #227024 Reply

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #227475 Reply

    multitrode
    Member

    There are a rash of these queries about Struts being unavailable and greyed out in the menu for the current JDK1.5 related releases. I too had this problem (and fixed it as follows). I suspect many people are trying to use the current latest Eclipse release: Milestone 5. As per support responses in other forum mails: the current MyEclipse version 3.8.4forE3.1 only works with Eclipse 3.1M4. Eclipse 3.1M5 breaks it.
    So, if you’re using MyEclipse 3.8.4+QF2-BetaFor3.1, check that your Eclipse version is 3.1M4 not 3.1M5
    Of course there may be another problem, but eliminate this first. M5 just does’t work. Ditch it.

    http://download.eclipse.org/eclipse/downloads/drops/S-3.1M4-200412162000/index.php

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Unable to add Struts capabilities

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