facebook

[Closed]Editors failing under 5.0M2

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    I’ve just upgraded to 5.0M2 and when I create a new Web Project and try to edit the web.xml, I get the following error message:

    Unable to create this part due to an internal error. Reason for the failure: Unable to open editor, unknown editor ID: org.xmen.ui.text.XMLTextEditor

    When I right-click web.xml and look at “Open With…” I see that it appears that the “MyEclipse Struts Config Editor” is selected.

    I can change this to open with a “MyEclipse XML Editor” and this is successful.

    I run into similar problems if I create a JSP file and try to open it. I get an error message to look at the error log. The error log contains:

    !ENTRY org.eclipse.ui 4 4 2006-07-12 17:36:25.405
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-07-12 17:36:25.405
    !MESSAGE org/eclipse/swt/browser/MozillaBrowser
    !STACK 0
    java.lang.NoClassDefFoundError: org/eclipse/swt/browser/MozillaBrowser

    … Plus more

    What gives?

    #254686

    Greg
    Member

    Try restarting once with “-clean”. That should fix the NoClassDefFoundError.

    #254692

    That seems to have fixed things up for me.

    #254737

    @imbrue wrote:

    That seems to have fixed things up for me.

    Actually, I spoke too soon. This appeared to fix both the web.xml problem and the JSP problem, however it only fixed the JSP problem.

    I’m still getting the following when opening new web.xml or other xml config files:
    Unable to create this part due to an internal error. Reason for the failure: Unable to open editor, unknown editor ID: org.xmen.ui.text.XMLTextEditor

    #254738

    Greg
    Member

    Looks like you are opening the XMen XML editor. Try setting the MyEclipse XML Editor as the default for xml files. Or right-click the web.xml and choose “Open with ” > “MyEclipse XML Editor”.

    #254741

    @support-greg wrote:

    Looks like you are opening the XMen XML editor. Try setting the MyEclipse XML Editor as the default for xml files. Or right-click the web.xml and choose “Open with ” > “MyEclipse XML Editor”.

    Yes, I know how to do this, but my point is that straight out of the box, 5.0M2 seems to give me the XMen XML editor by default, and it fails. Is there something configured wrong in the MyEclipse installation or did I do something wrong to screw it up like this?

    #254745

    Greg
    Member

    We don’t include the XMen xml editor in MyEclipse. So have you installed it seperately? Regardless, if you can post the error message that it happens when you open the xml file we might be able to figure out what is going on.

    Also, can you post the contents of the error log? <workspace_div>/.metadata/.log

    #255151

    This message has not been recovered.

    #255204

    This message has not been recovered.

    #255248

    Greg
    Member

    This message has not been recovered.

    #261559

    I recently upgraded from Eclipse 3.1 with MyEclipse 4.1.1 GA to Eclipse 3.2.1 with MyEclipse 5.0 GA. Installation details are at the bottom of this post.

    It seems that Eclipse/MyEclipse now assumes that I want to use the MyEclipse Struts Config editor for every .xml file in my projects. I see the same symptoms reported by imbrue at the top of this post (opening an XML file causes the xmen XMLTextEditor error; right clicking on .xml files shows that they default to the MyEclipse Struts Config Editor).

    I’ve tried a some recommendations in this topic:

    1) Starting eclipse with the “-clean” option. This didn’t fix the problem.

    2) Tried to associate “.xml” files with the MyEclipse XML Editor. Here’s what happened:
    a) In Preferences, General > Editors > File Associations, it indicates that the first editor associated with *.xml files is: “MyEclipse Struts Config Editor (default) (locked by ‘MyEclipse Struts Config File content type’)”
    b) I tried selecting the “.xml” File type, then selecting the MyEclipse XML Editor in the Associated Editor list, then clicking the “Default” button. This moves the MyEclipse XML Editor to the top of the Associated Editor list, and shows “(default)” next to it. This had no effect on opening XML files (Eclipse still attempted to open them in the MyEclipse Struts Editor, got xmen XMLTextEditor exception). I also see that reopening Preferences, going to “General > Editors > File Associations” does _not_ show the MyEclipse XML Editor as the default. It shows “XML Editor” as the default. Very odd that my preference for MyEclipse XML Editor as the default seemed to save with no problems, then this was implicitly updated to be “XML Editor”.
    c) In Preferences, General > Content Types, in the Content Types tree, selecting Text > XML > MyEclipse Struts Config Editor shows this in the “File Associations” list:
    struts-config.xml (locked)
    *.xml (locked)
    I thought that the thing to do here would be to select the “*.xml” entry and click the “Remove” button, but the “Remove” button is disabled when I select “*.xml”

    3) Right-clicking on an XML file, then selecting “Open With > MyEclipse XML Editor.” This worked. When I close the file, it still shows the blue gear icon next to the file name, but at least if I try and open it again, it comes up in the MyEclipse XML Editor.

    However, I have many XML files in my workspace, and don’t want to have to do this the first time I open each one. It would be nice if the blue gear Struts Config icon would at least go away after I open the file in the MyEclipse XML Editor, so then I at least know whether I can open it with a double-click or via the “Open Resource” feature, rather than having to do the right-click, “Open With > MyEclipse XML Editor” way.

    Another thing I tried was to remove my project, then do a fresh checkout from CVS, using the New Project wizard to set it up as a MyEclipse > J2EE Projects > Web Project. It still associates the MyEclipse Struts Editor with all *.xml projects.

    Please help. This is very frustrating. I have a lot of XML files across my projects, and don’t want to have to deal with the workaround noted in item (3) above.

    Thanks,
    Scott Moore

    Installation Summary:

    *** Date: Thu Nov 09 11:19:00 EST 2006

    *** System properties:
    OS=mac os x
    OS version=10.4.8
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0.1 GA
    Build id: 20060810-5.0.1-GA

    Eclipse Platform

    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060921-0945

    Eclipse RCP

    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060921-0945

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20060921-0945

    Eclipse Project SDK

    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    macosx
    -ws
    carbon
    -launcher
    /Applications/eclipse/Eclipse.app/Contents/Resources/Splash.app/Contents/MacOS/eclipse
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    50000
    -keyring
    /Users/scott/.eclipse_keyring
    -consoleLog
    -showlocation
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    /usr/bin/java

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: [Closed]Editors failing under 5.0M2

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