-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Eclipse configuration for ant with hibernate
PostPosted: Fri May 06, 2005 12:58 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.