Hi all, I find it very difficult to move from XDoclet 1.2.x to 2.
For example I get errors like this: java.lang.RuntimeException: java.lang.RuntimeException: @ejb.persistence column-name="ColumnName" in package.BeanName (line 66): is not allowed on methods Where the documentation says that this is allowed: http://xdoclet.codehaus.org/EjbTags#EjbTags-ejb.persistence My ant target contains this: ========================== <taskdef name="xdoclet2" classname="org.xdoclet.ant.XDocletTask" classpathref="base.path" /> <xdoclet2> <xdoclet-fileset /> <component classname="org.xdoclet.plugin.ejb.EjbConfig" version="${ejb.version}" destdir="@{generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.RemoteInterfacePlugin" packageregex="ejb" packagereplace="interfaces" validate="false" destdir="@{generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.RemoteHomeInterfacePlugin" packageregex="ejb" packagereplace="interfaces" validate="false" destdir="@{generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin" packageregex="ejb" packagereplace="interfaces" validate="false" destdir="@{generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.LocalHomeInterfacePlugin" packageregex="ejb" packagereplace="interfaces" validate="false" destdir="@{generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.descriptor.EjbJarXmlPlugin" destdir="@{build-dir}/META-INF" /> </xdoclet2> ========================== In my entity bean I have the: @ejb.persistence column-name="ColumnName" in the javadocs at a getter method. Is this perhaps a known issue in the EJB plugin currently? I just viewed the "testapp-ejb" subproject of the xdoclet-plugins project at sourceforge.net, and this @ejb.persistence is not used in there as an example, I added it in there for testing, like this: BaseClientBean.java: /** * @ejb.interface-method view-type="both" * @ejb.persistence-field * @ejb.persistence column-name="IdentityNumber" * @ejb.pk-field * @return the account number */ public abstract String getIdentityNumber() throws NoNumberException; I run the build.xml file in the "testapp-ejb" subproject, and I get the same error: java.lang.RuntimeException: java.lang.RuntimeException: @ejb.persistence column-name="IdentityNumber" in org.xdoclet.testapp.ejb.beans.BaseClientBean (line 34): is not allowed on methods Any comments regarding this matter will be appreciated. Thanks, Gerrit Grobbelaar ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ xdoclet-plugins-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
