That's weird - what you've included looks fine to me. The samples also use <jboss version="4.0" ... /> and they generate <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> as expected. Do you get the same results running Ant at the command line, or is it only when running in Eclipse that you have the problem?
I'm runnig Xdoclet with Eclipse on Session Beans too, and the result is 4.0 version on "jboss.xml". I only have this problems with entity beans.
The default value's 2.4, so it's obviously picking up a version parameter from somewhere. Is that the only target in the build script, or are there any others that also call XDoclet?
I run a autogenerated Xdoclet-build.xml ant file. It's like that:
<target name="N10004" description="Standard EJB">
<taskdef classpathref="xdoclet.classpath" classname="xdoclet.modules.ejb.EjbDocletTask" name="ejbdoclet"/>
<ejbdoclet ejbSpec="2.0" excludedTags="@version,@author,@todo" destDir="src" verbose="true" addedTags="@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version ${version}" >
<fileset dir="src" includes="**/*.java"/>
<packageSubstitution packages="ejb" substituteWith="interfaces"/>
<remoteinterface/>
<localinterface/>
<homeinterface/>
<localhomeinterface/>
<dataobject/>
<valueobject/>
<entitypk/>
<entitycmp/>
<entitybmp/>
<session/>
<dao>
<PackageSubstitution packages="ejb" substituteWith="dao" >
</PackageSubstitution>
</dao>
<utilobject includeGUID="true" cacheHomes="true"/>
<deploymentdescriptor validateXML="true" destDir="src/META-INF"/>
<jboss Version="4.0" datasource="java:/bonusBeanDS" datasourceMapping="/qnecta/bbdd/jdbc/OracleDS_QTFINF" destDir="src/META-INF"/>
</ejbdoclet>
</target>
I don't know why it could be wrong....
By the way, you don't need to include the ejbActivate(), ejbPassivate(), ejbRemove(), ejbLoad(), ejbStore() and ejbPostCreate() methods in your bean class if they're empty. XDoclet will generate them in its CMP subclass anyway. Andrew.
Ok, thanks. I'll apply this.
Thanks,
Miriam
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel