- This topic has 2 replies, 2 voices, and was last updated 19 years, 11 months ago by
Stuart McGrigor.
-
AuthorPosts
-
Pedro RozoMemberHi,
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 descriptorI 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//ENURI: http://www.ibatis.com/dtd/sql-map-2.dtd
Key Type: Public ID
Key: -//iBATIS.com//DTD SQL Map 2.0//ENURI: 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//ENI 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//ENAn 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.dtdI 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.
Pedro RozoMemberI 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.
Stuart McGrigorParticipantI 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 -
AuthorPosts