- This topic has 11 replies, 7 voices, and was last updated 19 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
support-michaelKeymasterPresently ME 2.7.0 version RC-2 or earlier does not provide explicit proxy support. This is an issue when developing XML files for which the ME DTD cache does not contain the XML file’s DTD. The XML editor will 1st check its DTD cache for the DTD specified by the document. If not found then the DTD is retrieved using its system URL in the DOCTYPE declaration. A firewall may block ME’s access to the public internet when it attempt to retrieve the public verison of the DTD. The result is that code completion and validation will not be available in the XML editor.
The work-around is to manually retrieve and add the DTD to the ME DTD library. This library is used to prepopulate the XML editor’s DTD cache.
Steps:
1) Download the DTD from its public site
2) Rename the DTD file to the system url with all “:\ ” chars replaced with the “_” char
Example:
The DTD for<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
should be
http___jakarta.apache.org_struts_dtds_struts-config_1_0.dtd
3. Copy this file to <myeclipse install>/eclipse/plugins/org.genuitec.eclipse.xmen_2.6.<rc num>00/dtd/
example for MyEclipse 2.7RC2:
c:\myeclipse2.7rc2\eclipse\plugins\org.genuitec.eclipse.xmen_2.6.200/dtdPlanned enhancements for a future ME release include support for proxy servers and DTD library cache management controls add/remove DTDs from ME’s local DTD library.
Michael
MyEclipse Support
Ronald van KuijkMemberHTTPClient by Apache has great proxy support, including NTLM authenticationv for M$ proxies
Riyad KallaMemberMichael,
Is this planned for 2.8, or was it decided that proxy support should be provided by Eclipse?Ronald has a good suggestion about HTTPClient, if we can make us of it.
kitmMemberMichael,
I was having exactly this problem and found this thread which helped me resolve it. (Thanks!) However, the DTD I was having problems with is http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd (from weblogic.xml) which is not included in the initial DTD cache even though it looks like an attempt was made to do so.
The following files are all in <install dir>\MyEclipse\eclipse\plugins\com.genuitec.eclipse.xmen_2.7.1\dtd\:
http___www.bea.com_servers_wls600_dtd_weblogic-web.dtd
http___www.bea.com_servers_wls700_dtd_weblogic-web.dtd
http___www.bea.com_servers_wls810_dtd_weblogic-web.dtd
*BUT* they do not exist at http://www.bea.com/servers/wls***/dtd/weblogic-web.dtd
*AND* they don’t contain DTD text, they contain HTML (they look like saved web-pages from BEA)I’ve downloaded the actual wls810 web dtd (referenced above) and added it to this directory, but you should update the pre-packaged cache for these DTD files in the next 2.7.* (or 2.8) distribution.
Cheers,
-Kit
GregMemberkitm,
Your report has been sent to the ME dev team and they have added a new PR regarding this issue. Thanks for your help.
petem1030MemberI have this set the same way, but myeclipse will not recognize the DTD. Is there something that I need to do to make it recognize the cache? The error I get references my web project saying that it cannot find the DTD there.
support-michaelKeymasterIs your problem related to weblogic 8.1 DTD retrieval or is it a more general DTD caching/access issue?
Riyad KallaMemberFixed in 3.8 GA
Ray SchnitzlerMemberI’m running 3.8.2, and still have this problem – with hibernate-mapping-2.0.dtd, which is preloaded in the cache. Any idea why it’s not being found?
Ray
Riyad KallaMemberCan you describe your problem in more detail? Also please provide the important lines from effected XML files and even a sample file so we can attempt to duplicate it here. Also let us know what your environment is (ME version, Eclipse version, OS, firewall, etc.)
Ray SchnitzlerMemberNevermind – pilot error. I had to configure MyEclipse proxy support in the Internet Tools panel.
Riyad KallaMemberThanks for closing the loop, glad its working.
-
AuthorPosts