I am getting the following error when I try to run my build task that uses the <hibernatedoclet> with a subtask of <jbossservice> in it:
Can't create hibernate element under hibernate doclet. Make sure jar fil containing the corresponding sbutask class is on the classpath specified in the <taskdef> that defined {2}. Not sure what the {2} stands for. Here is the target I am running via a builder in eclipse running on linux red hat enterprise.
<target name="generate-mappings" depends="compile">
<hibernatedoclet
destdir="${src.dir}/hl/database/org/hibernate/map"
excludedtags="@version,@author,@todo,@see,@desc"
force="false"
verbose="true">
<fileset dir="${src.dir}/hl/database/org/hibernate/objects">
<include name="*.java"/>
<include name="exceptions/*java"/>
<include name="dao/*.java"/>
</fileset>
<hibernate version="2.1"/>
<jbossservice
destdir=${build.classes.meta_inf.dir}"
serviceName="Hibernate"
jndiName="jdbc/SybaseDB"
dataSource="jdbc/SybaseDB"
dialect="net.sf.hibernate.dialect.SybaseDialect"
useOuterJoin="true"
userName="foo"
password="foo2"
transactionManagerStrategy="net.sf.hibernate.transaction.JBossTransactionManagerLookup"
transaction STrategy="net.sf.hibernate.transaction.JTATransactionFactory"
userTransactionName="UserTransaction"
depends="jboss.jca:service=LocalTxCM"/>
</hibernatedoclet>
</target>
I don't get this error when I build outside of eclipse so can anyone see what might be missing in the configuration of eclipse? Is there a particular jar to check for? I have the xdoclet.hibernate.module.xxx in the library.
|