0 Replies Latest reply on Nov 29, 2004 1:48 AM by javakung

    Running Node

    javakung

      I'm using the above version of XDoclet with a session bean. But, JBoss and XDoclet don't seem to agree on the ejb-jar deployment descriptor doctype. My build script looks like :

      <ejbdoclet
       destdir="${genjava.dir}"
       excludedtags="@version,@author"
       addedtags="@xdoclet-generated at ${TODAY}"
       verbose="true"
       ejbspec="2.0" >
      
       <fileset dir="${java.dir}">
       <include name="**/*Bean.java"/>
       </fileset>
      
       <dataobject/>
      
       <packageSubstitution packages="persistence" substituteWith="interfaces"/>
      
       <remoteinterface pattern="{0}Remote"/>
       <localinterface pattern="{0}"/>
      
       <homeinterface />
       <localhomeinterface/>
      
       <entitypk/>
       <entitycmp/>
      
       <deploymentdescriptor
       destdir="${gendeploy.dir}/META-INF"
       description="SSO Beans"
       displayname="SSO Beans"
       validatexml="true"/>
      
       <jboss version="3.2"
       securityDomain="java:/jaas/samples"
       preferredRelationMapping="relation-table"
       datasource="java:/DefaultDS"
       datasourcemapping="Hypersonic SQL"
       destdir="${gendeploy.dir}/META-INF" />
      
      </ejbdoclet>
      


      XDoclet generates the following DOCTYPE for ejb-jar.xml:

      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">


      When I deploy this, JBoss ignores it, giving the following message:

      15:40:16,096 DEBUG [JARDeployer] No META-INF or WEB-INF resource found, assuming it if for us


      If I manually change the DOCTYPE to the following:

      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtds/ejb-jar_2_0.dtd">


      it works correctly. Notice, the change was from 'dtd' to 'dtds' in the URL. Which is correct? And how do i resolve the discrepancy?

      Any help would be greatly appreciated,
      Michael