facebook

XML validation of sun-ejb-jar.xml

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

    PERRYALAIN
    Member

    Hi,

    I work with MyEclipse 3.8.4 on Eclipse 3.0 on Windows 2000, JDK 1.4.2

    I’ve followed the tutorial about Entreprise Application Development and imported the 3 TraderX projects from the traderx_src.zip.

    So, in the TraderXEJB, I’ve got the file sun-ejb-jar.xml, whose content is (I suppressed the comments) :

    <?xml version=”1.0″ encoding=”UTF-8″?>

    <!DOCTYPE sun-ejb-jar PUBLIC “-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 EJB 2.0//EN” “http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd&#8221; >

    <sun-ejb-jar>

    <enterprise-beans>

    <ejb>
    <ejb-name>Trader</ejb-name>

    <jndi-name>ejb/com/genuitec/trader/ejb/TraderHome</jndi-name>

    </ejb>

    </enterprise-beans>
    </sun-ejb-jar>

    All this looks fine, but, unfortunately, I’ve got the error about validation :

    Unable to connect to host: “www.sun.com”. sun-ejb-jar.xml

    My question :

    1. “http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd&#8221; is a true URL for Mozilla 1.0 anyway (not for IE 6)
    2. the file sun-ejb-jar.xml is validated by XMLSpy

    so, why the validation of the xml file can not be done under MyEclipse ?

    and this happens only for Sun AS because the others xml files (jonas-ejb-jar.xml, jboss.xml and weblogic-ejb-jar.xml) are validated.

    Thanks for help.

    Regards.

    #243197 Reply

    Riyad Kalla
    Member

    Perry,
    This could be a proxy issue. Are you behind a HTTP proxy by chance?

    What is happening is that the XML editor is going out and trying to download that DTD for validation and autocomplete.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: XML validation of sun-ejb-jar.xml

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