Assembly descriptor in ejb-jar.xml not generated when upgrading from 1.2b3 to 1.2.3

"Jacob Grydholt Jensen" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hi,

I want to upgrade XDoclet from version 1.2b3 to 1.2.3 to get to the
<mdb> tag, but when I do, the assembly descriptor part of the
ejb-jar.xml file is no longer generated. I have googled and checked
the list, but have found precious little on any assembly descriptor
problems.

The ejb-jar.xml is generated by the ant snippet:

    <target name="xdoclet.deploymentdescriptor"
        depends="init"
        description="Generate deployment descriptor for EJBs.">

        <copy overwrite="true" todir="${module.build.dir}/mergedir"
filtering="true">
            <fileset dir="${module.etc.dir}/xdoclet" includes="*.xml"/>
            <filterset>
                <filtersfile file="${global.filters.filename}"/>
            </filterset>
        </copy>
        <ejbdoclet
            destdir="${module.build.autosrc.dir}"
            ejbspec="2.0"
            ejbClassNameSuffix="Impl,Bean"
            mergeDir="${module.build.dir}/mergedir"
            verbose="true">
            <fileset dir="${module.src.dir}">
                <include name="${xdoclet.pattern}"/>
                <exclude name="**/Abstract*"/>
            </fileset>
            <packageSubstitution packages="impl" substituteWith="interfaces"/>
            <deploymentdescriptor destdir="${module.hotjar.dir}/META-INF"/>
        </ejbdoclet>
    </target>


I do not know if it is relevant, but we run xdoclet several times in
our build. However, the above target is the only one to generate a
deployment descriptor.

In 1.2b3 the following is generated in the ejb-jar.xml file:

   <!-- Assembly Descriptor -->
   <assembly-descriptor >
      <security-role>
         <description><![CDATA[description not supported yet by
ejbdoclet]]></description>
         <role-name>IServiceRole</role-name>
      </security-role>
      [snip]
      <method-permission >
         <description><![CDATA[description not supported yet by
ejbdoclet]]></description>
         <role-name>kuo</role-name>
         <role-name>kuosystem</role-name>
         <role-name>KungUngOleRole</role-name>
         <method >
            <description><![CDATA[description not supported yet by
ejbdoclet]]></description>
            <ejb-name>KungUngOleService</ejb-name>
            <method-name>*</method-name>
         </method>
      </method-permission>
      [snip]
         <container-transaction >
          <method >
           <ejb-name>KungUngOleService</ejb-name>
           <method-name>*</method-name>
           </method>
           <trans-attribute>Required</trans-attribute>
         </container-transaction>
      [snip]
   </assembly-descriptor >

In 1.2.3 there is no assembly descriptor, but just the comment:

   <!-- Assembly Descriptor -->


Does anybody know whether the handling of the assembly descriptor was
changed between 1.2b3 and 1.2.3? Any ideas for further experiments are
much appreciated. I am new to XDoclet, so I have only tried to change
the mergedir and the ejbspec version.


Best regards,
Jacob Grydholt


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.