facebook

Error With sun-ejb-jar.xml

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

    jdsrinivas
    Member

    Iam trying to Develop an enterprise application with EJB and Web Modules..I followed the instructions in the Quickstart (Enterprise Applications).Iam getting error with sun-ejb-jar.xml file.Please look for the bolded code…

    <?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”&gt;
    <!– Generated by XDoclet –>

    <sun-ejb-jar>

    <!–
    To add any role mappings, add an Unparsed XML Entity file to your XDoclet
    merge directory called sunone-role-mappings.ent that contains the
    <role-mapping> elements.
    <!ELEMENT role-mapping (role-name, role-impl)>
    <!ELEMENT role-impl (group*, user*)>
    N.B. This is an Unparsed XML Entity file, rather than an XML Document,
    since if there are multiple mappings it will not be well-formed.
    –>

    <enterprise-beans>

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

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

    </ejb>

    <!–
    To add any persistence manager descriptors, put an XML Document named
    sunone-pm-descriptors.xml in your XDoclet merge directory containing the
    <pm-descriptors> element.
    –>

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

    My Environment is

    Eclipse 3.0
    MyEclipse 3.8.4

    Thanks In Advance

    Srini

    #235613 Reply

    Riyad Kalla
    Member

    Please clarify what your error is that you are seeing.

    #235624 Reply

    jdsrinivas
    Member

    it shows big red cross symbol (not the small on which shows that there is compilation problem) with the message Connection timed out : connect

    #235629 Reply

    Riyad Kalla
    Member

    You are likely behind a proxy, be sure to configure your proxy under Window > Prefs > MyEclipse > Internet Tools > INternet Proxy

    #235632 Reply

    jdsrinivas
    Member

    No My Proxy is NOT ENABLED

    #235634 Reply

    Riyad Kalla
    Member

    Copy this URL into your web browser: http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd

    are you able to open the file?

    Now try and run Notepad, and paste that URL into the File > Open dialog and hit OK, did the file open?

    #235635 Reply

    jdsrinivas
    Member

    Yes Iam able to open the url…using my IE as well as Notepad..

    #235637 Reply

    Riyad Kalla
    Member

    Srini,
    I am unable to reproduce this using MYEclipse 3.8.4 or MyEclipse 4.0 GA (Internal build only).

    Can you provide the Eclipse Build ID (Help > About) and MyEclipse Build ID (Window > Prefs > MYEclipse)

    #235641 Reply

    jdsrinivas
    Member

    Eclipse Build ID (Help > About
    Version: 3.0.0
    Build id: 200406251208

    MyEclipse Build ID (Window > Prefs > MYEclipse

    Version: 3.8.4+QF2
    Buid Id:200502031200-3.8.4+QF2

    #235650 Reply

    Riyad Kalla
    Member

    I have setup the same install (in addition to my Eclipse 3.0.1 install I had) and still cannot reproduce this problem, are you able to add a User Entry to the XML catalog (Window > Prefs > MyEclipse > Editors > XML Editor > XML Catalog) for the DTD entry and see if that avoids the timeout issue?

    If you don’t have your proxy enabled, have you also made sure to clear out all your proxy settings to make sure the editor isn’t trying to connect to your proxy?

    #235653 Reply

    jdsrinivas
    Member

    when iam trying to add new User Entry to the XML catalog (Window > Prefs > MyEclipse > Editors > XML Editor > XML Catalog)

    Its giving following problem

    URI must not included ‘,’ or ‘,,’

    for this URI

    <!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”&gt;

    Thanks for your time and support

    Srini

    #235662 Reply

    Riyad Kalla
    Member

    The URI you want is just:

    
    -//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 EJB 2.0//EN
    
Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Error With sun-ejb-jar.xml

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