facebook

Unable to connect to host www.jboss.org

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #215238 Reply

    gzhuye
    Member

    I’m working on EJB using myeclypse, why does myeclipse always complain “Unable to connect to host http://www.jboss.org&#8221; 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”&gt; ?

    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. ❓

    #215276 Reply

    Riyad Kalla
    Member

    The 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).

    #222740 Reply

    OK, 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

    #222741 Reply

    Riyad Kalla
    Member

    I 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 Catalog

    This 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.

    #224483 Reply

    Sorry 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&#8221; >

    In the catalog I mapped the following:
    Key: http://castor.exolab.org/mapping.dtd
    URI: CETPortal/Web Content/WEB-INF/classes/castor/schema/mapping.dtd

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

    #224485 Reply

    Riyad Kalla
    Member

    The 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)

    #224726 Reply

    1) 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

    #224729 Reply

    Riyad Kalla
    Member

    1) 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.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Unable to connect to host www.jboss.org

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