facebook

Unable to connect to host

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225762 Reply

    asafbu
    Member

    I’m trying to create some existing projects to MyEclipse. In one of the EJB related project I get following error from the entity beans descriptor file:

    Unable to connect to host: “www.bea.com”.

    Error is coming from the following line(s):

    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    ‘-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN’
    http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd’&gt;

    I can connect to http://www.bea.com with no problem and reach to this DTD file.

    Any ideas?

    Thanks

    #225767 Reply

    Riyad Kalla
    Member

    Are you behind a proxy? If so make sure to setup your proxy information correctly and/or add this DTD to your XML Catalog so it can resolve it locally and doesn’t try and go out over the web to validate it.

    #225853 Reply

    asafbu
    Member

    Thanks Riyad! Yes I’m behind proxy but my browser setup to use ‘automatic configuration script’ not manually entered proxy server. Is there anyway I can use the same script in MyEclipse IDE?

    Thanks again!

    #225857 Reply

    Riyad Kalla
    Member

    Hmm unfortunately not, BUT you can download that file manually, place it somewhere on your hard drive, then go to the XML Catalog (Window > Prefs > MyEclipse > Editors > XML > XML Catalog) and add a new User Entry:

    Type: PUBLIC
    Key: -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN
    URI: file:/c:/dtd/weblogic-rdbms20-persistence-810.dtd

    Note that the URI will need to be a path to the file. Also NOTE there is a currently a bug where you cannot editor or remove entries from the XML catalog, but you can add them, so if you get something wrong, just add a new entry.

    This should allow the XML editor to validate against the XML Catalog instead of remotely against the file.

    #225862 Reply

    asafbu
    Member

    Do I have to change anything on the XML descriptors or they can still point to the URL on the web ?

    Thanks

    #225870 Reply

    Riyad Kalla
    Member

    It *should* hit the catalog but now that you reminded me I think there is currently a bug where it will still try and hit the web-DTD… the workaround is to place the DTD in the same dir as the XML file and change the DTD location to just the name of the DTD.

    I’m sorry for this inconvenience, we have all these bugs filed and hope to fix them soon.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Unable to connect to host

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