I am using XDoclet 1.2.3 to generate ejb-jar.xml. Somehow there are no cmp-field elements generated. There is a '@ejb:cmp-field' for the getter methods of the EJBs. But it doesn't make a difference. What should I do to make XDoclet generate the cmp-field elements?
The following is the task that I use to generate ejb-jar.xml and the
ejb related classes.
<target name="generate-ejb">
<echo message="xdoclet : ${xdoclet.lib.dir}"/>
<echo message="xdoclet1 : ${xdoclet1.jar.path}"/>
<echo message="xdoclet2 : ${xdoclet2.jar.path}"/>
<echo message="log4j : ${log4j.jar.path}"/>
<echo message="ant : ${ant.jar.path}"/>
<echo message="ejb : ${ejb.jar.path}"/>
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="xdoclet.lib.path"/>
<ejbdoclet destdir="${gen.src.dir}">
<packageSubstitution packages="ejb" substituteWith="interfaces"/>
<fileset dir="${src.dir}">
<include name="**/*EJB.java"/>
</fileset>
<deploymentdescriptor destdir="${ejb.deployment.dir}"/>
<
jboss destdir="${ejb.deployment.dir}" version="4.0" datasource="java:/LicenseServerDS" datasourceMapping="MySQL" />
<homeinterface/>
<remoteinterface/>
<localinterface/>
<localhomeinterface/>
<utilobject includeGUID="true" cacheHomes="true">
<packageSubstitution packages="ejb" substituteWith="util"/>
</utilobject>
<entitycmp/>
<session/>
</ejbdoclet>
</target>
Thanks in advance.