- This topic has 7 replies, 3 voices, and was last updated 19 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
gzhuyeMemberI’m working on EJB using myeclypse, why does myeclipse always complain “Unable to connect to host http://www.jboss.org” in jbosscmp-jdbc.xml and jboss.xml when it checks dtd file: <!DOCTYPE jbosscmp-jdbc PUBLIC “-//JBoss//DTD JBOSSCMP-JDBC 3.2//EN” “http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd”> ?
This situation occurs once internet connection is cut off. However, the same complains come up even if my host can access any sites through internet and the project is rebuilt. ❓
Riyad KallaMemberThe validator is most likely trying to pull down the DTD to validate the XML file, you can turn off XML validation to avoid this (so its only executed manually) via the Window > Prefs > MyEclipse > Validation menu (they are also per-project settings if you prefer).
architechcorpMemberOK, I understand that we can actually turn off the validation, but is there any way to get this validation to actually work while still using a URL? I know it would be possible to download the actual dtd files locally as well, but would prefer to use the URL based method.
I believe this might have something to do with a proxy server – if so where is this specified? There is one proxy specified in Windows -> Preferences -> Install/Update and another specified in Windows -> Preferences -> MyEclipse -> Internet Tools -> Internet Proxy but setting these doesn’t seem to make the errors go away. Am I barking up the wrong tree or is http based dtd validation just not supported?
Thanks
Riyad KallaMemberI know it would be possible to download the actual dtd files locally as well, but would prefer to use the URL based method.
Sure, you can add the DTD or Schema to the local XML catalog:
Window > Prefs > MyEclipse > Editors > XML > XML CatalogThis way the catalog will be hit instead of the web.
Am I barking up the wrong tree or is http based dtd validation just not supported?
Yes it is supported, but you need your proxy to be setup correctly. 99% of people that have problems with remote validate are behind funky HTTP proxies, there is only 1 user that comes to mind that we couldn’t get it to work for, so he just downloaded the DTD locally and added it to the catalog.
architechcorpMemberSorry it took me so long to get back to this, but I’m sure you understand how projects go.
1) Can the XML validator get to the internet using a proxy? If so where is this configured? Eclipse update has the proxy properly configured, but the validator still says it can’t get to these files.
2) IF I want to use the XML catalog instead is there any documentation on how to do so? I tried to setup the catalog in a similar manner as the existing entries, but not having any luck.
This is the entry in my XML file:
<!DOCTYPE mapping SYSTEM “http://castor.exolab.org/mapping.dtd” >In the catalog I mapped the following:
Key: http://castor.exolab.org/mapping.dtd
URI: CETPortal/Web Content/WEB-INF/classes/castor/schema/mapping.dtdThe URI was selected using the browse function to locate the dtd file in the WEB-INF directory.
Any idea what I’m doing wrong here?
3) If this doesn’t work I suppose I can just turn the validation off, would prefer to get this configured properly instead of bypassing the issue though.
Thanks!
Riyad KallaMemberThe URI should be the URI that is used to uniquely identify the DTD, in this case it is likely:
“-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN”
(that came from the DTD doctype def)
architechcorpMember1) So is there a way to configure the XML validator to go through the proxy server?
2) The mapping values were correct – it turns out that the Key Type had to be changed from public id to system id for it to work properly. Is this documented anywhere?
3) There appears to be a bug in the pref editor. When I change the Key type to System Id, save it the type save correctly. The next time I edit the entry the editor changes the key type back from System Id to Public Id. Do I need to post this to a different section to get the developers to look into this?
Thanks
Riyad KallaMember1) So is there a way to configure the XML validator to go through the proxy server?
IIRC it should if the proxy is setup correctly (please see Window > Prefs > MyEclipse > Internet Tools > Internet Proxy), there is currently a bug with the proxy settings that if you are setting up your proxy via the command line, it will ignore those settings.
2) The mapping values were correct – it turns out that the Key Type had to be changed from public id to system id for it to work properly. Is this documented anywhere?
No, not currently.
3) There appears to be a bug in the pref editor. When I change the Key type to System Id, save it the type save correctly. The next time I edit the entry the editor changes the key type back from System Id to Public Id. Do I need to post this to a different section to get the developers to look into this?
I will ask them to look into this.
-
AuthorPosts