facebook

DOCTYPE generated by XDoclet – No Route to host

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

    peterharris
    Member

    I hope this is posted to the correct location.

    I have just built my first entity bean (after following the session bean tuorials).

    Xdoclet generates three xml files:
    jaws.xml
    JBoss.xml
    jbosscmp-jdbc.xml

    The DOCTYPE statement for all these files refers to dtd files that are available when I am connected to the web (which is not often on dial up) but give a “No Route To Host” error when I am not connected.

    Help please. How do I get rid of this?

    Thanks

    #235427 Reply

    Greg
    Member

    Can you post the content of these 3 xml files to the forums? Use the

     switch will help with the formatting.
    #235512 Reply

    peterharris
    Member

    @support-greg wrote:

    Can you post the content of these 3 xml files to the forums? Use the

     switch will help with the formatting.

    Thanks Gregg. listed below as requested.

    I should point out that I am using Eclipse 3.1 and MyEclipse 4.0 Milestone 2

    jboss.xml
    ===================

     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
    
    <jboss>
    
       <enterprise-beans>
    
         <!--
           To add beans that you have deployment descriptor info for, add
           a file to your XDoclet merge directory called jboss-beans.xml that contains
           the <session></session>, <entity></entity> and <message-driven></message-driven>
           markup for those beans.
         -->
    
          <entity>
             <ejb-name>myEntity</ejb-name>
             <jndi-name>ejb/myEntity</jndi-name>
             <local-jndi-name>myEntityLocal</local-jndi-name>
    
            <method-attributes>
            </method-attributes>
    
          </entity>
    
       </enterprise-beans>
    
       <resource-managers>
       </resource-managers>
    
      <!--
        | for container settings, you can merge in jboss-container.xml
        | this can contain <invoker-proxy-bindings/> and <container-configurations/>
      -->
    
    </jboss>
    {code]
    
    jbosscmp-jdb.xml
    ===================
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd">
    
    <jbosscmp-jdbc>
       <defaults>
         <datasource>java:/MySQLDB</datasource>
         <datasource-mapping>mySQL</datasource-mapping>
       </defaults>
    
       <enterprise-beans>
    
         <!--
           To add beans that you have deployment descriptor info for, add
           a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml
           that contains the <entity></entity> markup for those beans.
         -->
    
          <entity>
             <ejb-name>myEntity</ejb-name>
    
             <table-name>mos_users</table-name>
    
             <cmp-field>
                <field-name>id</field-name>
                <column-name>id</column-name>
    
            </cmp-field>
             <cmp-field>
                <field-name>name</field-name>
                <column-name>name</column-name>
    
            </cmp-field>
    
    <!-- jboss 3.2 features -->
    <!-- optimistic locking does not express the exclusions needed -->
          </entity>
    
       </enterprise-beans>
    
    </jbosscmp-jdbc>
    {code]
    
    
     
    

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: DOCTYPE generated by XDoclet – No Route to host

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