-->
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.  [ 2 posts ] 
Author Message
 Post subject: Ant tools and org.hibernate.tool.ant.HibernateToolTask
PostPosted: Fri Sep 14, 2007 9:41 pm 
Newbie

Joined: Wed Sep 05, 2007 9:26 am
Posts: 16
Hi,

I am trying to use Ant tools to generate dll, following is the hibernate.cfg.xml, I got an exception :

hibernatetool] org.hibernate.MappingException: Unable to load class declared as <mapping class="org.bfe.sample.t5.entities.Usr"/> in the configuration:
[hibernatetool] java.lang.ClassNotFoundException: org.bfe.sample.t5.entities.Usr.

I copied the Usr.class into the directory where hibernate-tools.jar is located and still the same error, any idea? Thanks.



<hibernate-configuration>
<session-factory>

-- more entries above --

<!-- List of annotated classes-->
<mapping class="org.bfe.sample.t5.entities.Usr"/>

</session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject: Solved
PostPosted: Sat Sep 15, 2007 2:20 am 
Newbie

Joined: Wed Sep 05, 2007 9:26 am
Posts: 16
problem solved, for a package name like this: org.bfe.sample.t5.entities.Usr, the classpath passed to Ant task should be the directory containing org which happens to be target/classes in my case.


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

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.