facebook

error adding struts to a project

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #206915 Reply

    jason poley
    Member

    This message has not been recovered.

    #206947 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #208091 Reply

    smelzer
    Member

    i am using eclipse 3.0rc1 and myeclipse 3.8b1. i am trying to add struts support and get the following error:

    Invalid Struts 1.0 config file : java.lang.ClassNotFoundException: org.easystruts.struts.config.EasyStrutsLogFactory

    when trying to add struts capabilities to an existing app. i have a very short .log file with none of the exceptions of the other postings. i do, however, have a very recent integration build of draw2d and gef for other development.

    !SESSION Jun 07, 2004 12:22:30.956 ———————————————
    eclipse.buildId=I200405290105
    java.version=1.4.1_02-er
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    !ENTRY org.eclipse.pde.core 1 1 Jun 07, 2004 12:22:30.956
    !MESSAGE Problems encountered while PDE was scanning the Target Platform
    !SUBENTRY 1 org.eclipse.debug.ui 1 1 Jun 07, 2004 12:22:30.956
    !MESSAGE This plug-in (located at “c:\eclipse\plugins\org.eclipse.debug.ui_3.0.0”) was ignored because another version of the same plug-in (located at “C:\Program Files\MyEclipse\eclipse\plugins\org.eclipse.debug.ui_3.7.101”) was picked
    !SUBENTRY 1 org.eclipse.jdt.debug 1 1 Jun 07, 2004 12:22:30.956
    !MESSAGE This plug-in (located at “c:\eclipse\plugins\org.eclipse.jdt.debug_3.0.0”) was ignored because another version of the same plug-in (located at “C:\Program Files\MyEclipse\eclipse\plugins\org.eclipse.jdt.debug_3.7.101”) was picked
    !SUBENTRY 1 org.eclipse.draw2d 1 1 Jun 07, 2004 12:22:30.956
    !MESSAGE This plug-in (located at “C:\Program Files\MyEclipse\eclipse\plugins\org.eclipse.draw2d_3.0.0”) was ignored because another version of the same plug-in (located at “c:\eclipse\plugins\org.eclipse.draw2d_3.0.0”) was picked
    !SUBENTRY 1 org.eclipse.gef 1 1 Jun 07, 2004 12:22:30.956
    !MESSAGE This plug-in (located at “C:\Program Files\MyEclipse\eclipse\plugins\org.eclipse.gef_3.0.0”) was ignored because another version of the same plug-in (located at “c:\eclipse\plugins\org.eclipse.gef_3.0.0”) was picked

    i did install the 3.8b1 myeclipse over the existing 2.7 myeclipse install i had. i uninstalled 3.8b1, removed the Program Files/myeclipse directory, and tried again to no avail.

    help would be greatly appreciated.

    thanks,
    steve

    #208096 Reply

    Riyad Kalla
    Member

    Invalid Struts 1.0 config file : java.lang.ClassNotFoundException: org.easystruts.struts.config.EasyStrutsLogFactory

    Have you tried adding Struts 1.1 support? Or is this the exception you get when you try and add Struts 1.1 support?

    Can you check your c:\eclipse\links folder for a link file for MyEclipse, and check that its contents is only 1 line, and that its pointing to your 3.8b1 install? (Don’t mind double backslashes).

    #208150 Reply

    smelzer
    Member

    i get this error when i initially choose “Add Struts Capabilities” from the project context menu, and when i click the struts 1.1 radio button from the dialog box.

    this is the only line in the com.genuitec.eclipse.MyEclipse.link file in the c:\eclipse\links directory:
    path=C:\\Program Files\\MyEclipse

    steve

    #208162 Reply

    Riyad Kalla
    Member

    Steve,
    That looks correct. I actually was having this problem recently. There is a workaround in the forums that Michael provided, but this bug was fixed in the Beta 1 release of 2.8/3.8 if you don’t mind upgrading. If you ARE running one of these versions already, then check your shortcut that you launch Eclipse with, and make sure you don’t have any logger VM arguments already on your command line because the workaround that fixes this problem in previous releases actually breaks the fix that was put in place in the Beta 1 releases.

    #208178 Reply

    smelzer
    Member

    i am running myeclipse 3.8b1. this is my shortcut line:
    C:\eclipse\eclipse.exe -vm c:\bea81\jdk141_02\bin\javaw.exe

    my JAVA_HOME is pointing to a JDK1.3.1 install. i do not have rights on my box to change environment variables, so i had to change the VM in the shortcut. i have no idea if this could be part of the issue.

    #208188 Reply

    Riyad Kalla
    Member

    Hmm.. I certainly don’t think it helps it, but it seems unlikely that it would cause it… I will check with others about this.

    #208198 Reply

    Scott Anderson
    Participant

    Can you post the full stacktrace of the ClassNotFoundException?

    #208230 Reply

    smelzer
    Member

    i get no error in the .log file. here is the error as it shows up in the dialog box for struts support:
    Invalid Struts 1.1 config file : java.lang.ClassNotFoundException: org.easystruts.struts.config.EasyStrutsLogFactory

    here is the dialog box message i get when i choose Add Struts Capabilities from the context menu:
    Invalid Struts 1.0 config file found.
    org.apache.commons.logging.LogConfigurationException:
    java.lang.ClassNotFoundException:
    org.easystruts.struts.config.EasyStrutsLogFactory :
    java.lang.ClassNotFoundException:
    org.easystruts.struts.config.EasyStrutsLogFactory

    #208438 Reply

    Scott Anderson
    Participant

    Another possibility might be the old 1.4.1 JDK from BEA that you’re running with. Can you either download and retry with the latest 1.4.1 or 1.4.2 JDK’s from Sun?

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: error adding struts to a project

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