facebook

Struts 1.0 XML Editor Error- 2.7.2 RC2 [Closed]

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

    Brian
    Member

    – System Setup ——————————-
    Operating System and version: XP SP1
    Eclipse version: 212
    Eclipse build id: 200311030802
    MyEclipse version: 2.6.200 (200312091200-2.7-RC1)
    Eclipse JDK version: J2SE 1.4.2_02
    Application Server JDK version: J2SE 1.4.2_02

    – Message Body ——————————-
    Greetings…

    I have just installed 2.7.2 RC 2…

    in the help/about section the following is the version information
    Build id: 200312091200-2.7-RC1 ( 😉 minor error Build id still says RC1)

    If I try open a struts or expresso xml config file, it :
    1. gives me a dialog stating that “The file has been changed on the file system. Do you want to load the changes”. (if i select either option “yes” or “no” the result is the same :?)

    2. opens the XML editor with nothing but the word “ERROR” being displayed.

    I will have revert back to RC1 until this has been corrected.

    Thanks
    Brian

    #201740 Reply

    Scott Anderson
    Participant

    Brian,

    Before opening the file, can you perform a ‘Refresh’ on it? Does that fix the issue? Is there a stacktrace available in the log file? Can you post answers to the questions we ask in the posting guidelines thread? The ‘Insert’ button when creating a new post facilitates this.

    #201743 Reply

    Riyad Kalla
    Member

    Brian:
    Just to help you find it, the .log file Scott is asking for is located in:
    <eclipse install dir>\workspace\.metadata\.log

    Scroll to the end of the file and look for the last few instances of:
    !SESSION——————

    which mark each time you run Eclipse, grab the one (or ones) where you had problems and paste them in here.

    #201744 Reply

    Brian
    Member

    Morning…

    1. Tried to refresh file before, same result..

    The following “part” Stacktrace occurs when I open the Expresso-Config.xml
    Stacktrace:
    !ENTRY org.xmen.multipageeditor.XMenPlugin 1 1 Jan 13, 2004 09:25:51.734
    !MESSAGE http://localhost:8080/bootcamp/WEB_INF/config/expresso-config_4_0.dtd
    !STACK 0
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)

    When I try open a struts config file… no log is generated… the result is still the same.
    ” opens the XML editor with nothing but the word “ERROR” being displayed.”

    Scott… I did … the whole first part of my message is what was inserted by the button.
    check.. I’ll do it again 😛
    – System Setup ——————————-
    Operating System and version: XP SP1
    Eclipse version: 212
    Eclipse build id: 200311030802
    MyEclipse version: 2.6.200 (200312091200-2.7-RC1)
    Eclipse JDK version: J2SE 1.4.2_02
    Application Server JDK version: J2SE 1.4.2_02

    – Message Body ——————————-

    and questions not added by button:
    – Was Eclipse freshly installed for MyEclipse? No
    – If not, was it upgraded to its current version using the update manager? No
    – Are any other external plugins installed? Yes:
    –Clearcase
    –My own (just a minor pattern generator)
    –swt designer
    –Eclipse emf (for code generation)
    –Jface

    Thanks
    Brian

    #201751 Reply

    emmanuel
    Member

    I have this exact anomaly with 2.7.2 RC2. I’ll email the files as attachments.

    Kind regards
    Emmanuel

    #201752 Reply

    Riyad Kalla
    Member

    Brian & Emmanuel,
    It looks like the XML editor is trying to pull the DTD for the file from your local machine which would require Tomcat (or whatever app serve ryou are using) to be running… BUT you are pointing the URI to a sub dir under the WEB-INF directory which are never accessible via the web, so the editors attempt to pull the DTD will always fail.

    Can you copy-paste the DTD line of your XML file into a message here for us?

    Scott: I think the XML editor should display a friendly message when something like this happens, as its not really its fault it cannot load the DTD, but it could be more informative.

    #201756 Reply

    emmanuel
    Member

    Hello Riyad,

    Can you copy-paste the DTD line of your XML file into a message here for us?

    <!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;

    Please keep in mind that it’s an editor and I could have all sorts of inconsistencies (whilst developing) which should not interfere with the editor.

    I’ll email the files as attachments.

    Just sent email.

    Kind regards
    Emmanuel

    #201757 Reply

    Riyad Kalla
    Member

    Hmmm, I take back my previous comment, that seems to be a sane DTD location.

    #202119 Reply

    Scott Anderson
    Participant

    Emmanuel,

    This looks like a bug is encountered when retrieving the DTD’s. As a workaround, you can change them to the struts 1.1 dtd (1_1.dtd instead of 1_0.dtd) and the editor will work fine. I’ve entered this into our internal tracking system so it can be fixed in the next release.

    #204424 Reply

    Riyad Kalla
    Member

    Emmanuel / Scott,
    Was this fixed in 2.7 GA?

    #204445 Reply

    Scott Anderson
    Participant

    Yes, it was fixed in 2.7 GA

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Struts 1.0 XML Editor Error- 2.7.2 RC2 [Closed]

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