Hi I have successfully using XDoclet 1.1.2 for many months to generate deployment descriptors.
I wanted some of the new 1.2 features, so I decided to upgrade. After sorting out the <taskdef> issues and removing the sourcepath and classpathref attributes, I was able to get 1.2.0 to run. Unfortunately the ejb-jar.xml it generates is empty. I changed all the @tags to use @ejb.bean instead of @ebj:bean. This is a sample of the tags in my beans: /** * The TokenBean implements a token for administrative access. * Authentication currently instantiates a token directly in the * Authenticator bean. * * @ejb.bean type="BMP" name="TokenBean" jndi-name="ejb/Token" reentrant="False" * @ejb.home remote-class="com.cryptocard.ejb.TokenHome" * @ejb.pk class="com.cryptocard.mgtapi.TokenPK" * @ejb.interface remote-class="com.cryptocard.ejb.TokenRemote" * * @ejb.env-entry name="CRYPTOCard/TokenDataType" type="java.lang.String" value="jdbc" * @ejb.resource-ref res-name="CRYPTOCard/TokenDataSource" res-type="javax.sql.DataSource" res-auth="Container" * * @weblogic.resource-description res-ref-name="CRYPTOCard/TokenDataSource" jndi-name="CRYPTOCard/1" * */ This is the target that works with 1.1.2: <ejbdoclet sourcepath="${src.dir}/java" destdir="${build.dir}/ejb" classpathref="ejbdoclet.class.path" excludedtags="@version,@author" ejbspec="1.1" force="true"> <fileset dir="${src.dir}/java"> <include name="com/cryptocard/ejb/*Bean.java" /> </fileset> <deploymentdescriptor destdir="${descriptors.dir}/${ant.project.name}" validatexml="true" /> <weblogic version="6.1" xmlencoding="UTF-8" destdir="${descriptors.dir}/${ant.project.name}" validatexml="true" /> </ejbdoclet> With 1.2.0 I had to make a couple minor changes: <ejbdoclet destdir="${build.classes.dep.dir}" excludedtags="@version,@author,@todo" ejbspec="1.1" force="true" verbose="true"> <fileset dir="${src.dir}/java"> <include name="com/cryptocard/ejb/*Bean.java"/> </fileset> <deploymentdescriptor destdir="${descriptors.dir}/${ant.project.name}" validatexml="true" /> <weblogic version="6.1" xmlencoding="UTF-8" destdir="${descriptors.dir}/${ant.project.name}" validatexml="true" /> </ejbdoclet> But now the generated deployment descriptor look like this: <ejb-jar > <description><![CDATA[No Description.]]></description> <display-name>Generated by XDoclet</display-name> <enterprise-beans> <!-- Session Beans --> <!-- To add session beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called session-beans.xml that contains the <session></session> markup for those beans. --> <!-- Entity Beans --> <!-- To add entity beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called entity-beans.xml that contains the <entity></entity> markup for those beans. --> </enterprise-beans> <!-- Assembly Descriptor --> <assembly-descriptor > <!-- To add additional assembly descriptor info here, add a file to your XDoclet merge directory called assembly-descriptor.xml that contains the <assembly-descriptor></assembly-descriptor> markup. --> <!-- transactions --> <!-- finder transactions --> </assembly-descriptor> </ejb-jar> I grabbed the latest from CVS and built it, but it generates the same empty ejb-jar.xml file. The samples however build properly. Any help would be appreciated. Jesse -- Jesse Stockall [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user