facebook

XML validation is not working for custom XML catalog entries

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

    Pedro Rozo
    Member

    Hi,

    After spending some time with my application trying to understand why the xml validation process fails in these xml files,

    validator.xml (apache validator 1.1.3)
    ibatis configuration files: sql-map-config.xml
    Weblogic-application.xml Weblogic 8.1 sp4 deployment descriptor

    I found these files doesn’t have a XML catalog entry in myeclipse, so I required to create custom XML catalog entries to enable validation process.

    So I defined three new XML catalog entries with the following info:

    URI: http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd
    Key Type: Public ID
    Key: -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN

    URI: http://www.ibatis.com/dtd/sql-map-2.dtd
    Key Type: Public ID
    Key: -//iBATIS.com//DTD SQL Map 2.0//EN

    URI: http://www.bea.com/servers/wls810/dtd/weblogic-application_2_0.dtd
    Key Type: Public ID
    Key: -//BEA Systems, Inc.//DTD WebLogic Application 8.1.0//EN

    I restarted eclipse, and rebuild the project, but again the process failed.

    Next, I downloaded the dtd files, and copy them to the myeclipse dtd defualt location :

    C:/Program Files/MyEclipse/eclipse/plugins/com.ibm.webtooling.system.dtds_13.8.4/dtds/

    because I noticed all myeclipse XML catalog entries have a local dtd version there.

    And I edited my XML catalog entries and tried to change the URI to point the local location like this:

    URI: file:/C:/Program Files/MyEclipse/eclipse/plugins/com.ibm.webtooling.system.dtds_13.8.4/dtds/validator_1_1_3.dtd
    Key Type: Public ID
    Key: -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN

    An I repeat the same procedure for the other dtd files, but again I didn’t work.

    After that, I tried to deleted my custom XML catalog entries to clean all, but as soon as I restarted eclipse, that configuration is still there, so it is not possible to deleted or edit them.

    I am using eclipse 3.0.1, myeclipse 3.8.4 and weblogic 8.1

    Could you let me know what is the correct procedure to configurate myeclipse to validate those files. You can download the dtd definitions from:

    http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd
    http://www.ibatis.com/dtd/sql-map-2.dtd
    http://www.bea.com/servers/wls810/dtd/weblogic-application_2_0.dtd

    I can send you and email with my invalid xml files if you need, but I guess it is something common for all the xml files that are not included in Myeclipse defaults.

    Pedro Rozo
    Vancouver, Canada.

    #229374 Reply

    Pedro Rozo
    Member

    I found after you define any custom XML catalog entry i could not edit or remove. So found the files that store this info and I remove that file,

    .metadata\.plugins\com.ibm.etools.xmlcatalog\user.xmlcatalog

    Next I repeated the process, creating all the custom XML catalog entry pointing to the local files inside:

    C:/Program Files/MyEclipse/eclipse/plugins/com.ibm.webtooling.system.dtds_13.8.4/dtds/

    and run a complete build, and finally works !!!

    So guys it would be good to check your custom XML catalog entry editor, because it is not possible to change or remove these values.

    #229945 Reply

    Stuart McGrigor
    Participant

    I used the ‘Browse’ button to set the URI to be a DTD that’s in one of my projects.

    Unfortunately the project in question has spaces in the name (Eg: Kintore – Struts). Any attempt to validate the required XML File failed because it couldn’t find a resource “…./Kintore%20-%20/Struts/src/com/kintore/…..”

    By (a) renaming projects without the spaces and (b) hand editing user.xmlcatalog i managed to get things working.

    So while you’re fixing the editor – it would be good if we were allowed to have spaces in the names of projects for localised DTDs.

    Regards,
    Stuart McGrigor

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: XML validation is not working for custom XML catalog entries

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