CC'd xdoclet-user, where this should have gone originally... On Mon, 2005-02-07 at 16:55, Miriam Senovilla wrote: > Hi!!! > > I'm trying to generate an EJB by Xdoclet, but it's generated with a > wrong doctype. ... > <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}" > ... > <deploymentdescriptor validateXML="true" destDir="src/META-INF"/> > > <jboss Version="4.0" datasource="java:/bonusBeanDS" > datasourceMapping="/qnecta/bbdd/jdbc/OracleDS_QTFINF" > destDir="src/META-INF"/> ... > But when i run xdoclet, it makes the ejb-jar.xml version 3.2:
No it doesn't; it makes the jboss.xml have version 3.2 ;-) > <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" > "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd"> > > How can i specify that i want 4.0 version??? I'm using Jboss 4.0.1, > Eclipse, Xdoclet 1.2.2 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? 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? 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. ------------------------------------------------------- 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