facebook

Struts-config.xml file not opened with [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #204131 Reply

    Hi,
    I cannot open my struts-config.xml file with the Struts Editor. It shows a message: Editor could not be initialize. I believe this is because of the DOCTYPE reference on top.

    When I use
    <!DOCTYPE struts-config
    PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.0//EN”
    http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd”&gt;

    the page cannot be opened and MyEclipse Hangs if I try to rightclick it.

    When I use
    <!DOCTYPE struts-config
    PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.1//EN”
    http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”&gt;

    no problems at all.

    The old reference came from an old project. When I was using ecilpse 2.1 with MyEclipse 2.7 this file could be opened just fine.
    If I create a new webproject now and add struts cababilities, the correct doctype is used and the file opens without any problems.

    I guess this is a problem with backwards compatibility. A BUG I presume.

    My Environment:
    – Win2000
    – JDK1.4.2_01
    – Eclipse Version: 3.0.0 Build id: 200312182000
    – MyEclipse Version: 3.6.200 Build id: 200401011200-3.7RC2

    Hope this information is sufficient, if not, just ask.

    Thanks in advance,
    Les.

    #204137 Reply

    Riyad Kalla
    Member

    Les, thank you for pointing this out. I’ll send it to the team and see if its fixed in 2.7 GA.

    #204139 Reply

    Scott Anderson
    Participant

    Les,

    Nice problem description; thanks for that. As Riyad indicated, this is one of the specific issues that has been addressed in the 2.7 GA codebase. Fortunately, it looks like you’ve also found the workaround of specifying the 1.1 dtd, for now. Thanks for taking the time to report this, just so we could be sure we got it fixed.

    #204145 Reply

    Riyad Kalla
    Member

    Les,
    I’m going to close this for now, but please let us know if this is still broken in 2.7 GA and we will get on it ASAP.

    #204153 Reply

    Thanks for the quick reply guys…
    Any ideas when this GA will be available ???

    Rgds,
    Les.

    #204162 Reply

    Riyad Kalla
    Member

    Les, if you are using stable Eclipse (2.1.x) then Friday of this will be 2.7 GA, if you are using Eclipse 3.0 M7, then 3.7 GA will be available next Friday.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Struts-config.xml file not opened with [Closed]

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