Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes cmp-field elements are missing in ejb-jar.xml generated by XDoclet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "cmp-field elements are missing in ejb-jar.xml generated by XDoclet" Watch "cmp-field elements are missing in ejb-jar.xml generated by XDoclet" New topic
Author

cmp-field elements are missing in ejb-jar.xml generated by XDoclet

Caly LeeAnn
Ranch Hand

Joined: Nov 22, 2005
Posts: 55
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.
Caly LeeAnn
Ranch Hand

Joined: Nov 22, 2005
Posts: 55
Problem solved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cmp-field elements are missing in ejb-jar.xml generated by XDoclet
 
Similar Threads
EntityFacade and Xdoclet
PackageSubstitution with a xdoclet.DocletTask doesn't work
SAXParseException: The content of element type "enterprise-beans" is incomplete, it m
XDoclet not generating methods into Local interface
SAXParseException: The content of element type "enterprise-beans" is incomplete, it m