-->
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: SchemaExport : Resource Not Found : hbm.xml
PostPosted: Thu Jul 15, 2004 7:54 pm 
Beginner
Beginner

Joined: Thu May 06, 2004 4:06 pm
Posts: 25
If someone could help, it would be appreciated.

I am wondering why my SchemaExportTask does not work, while my Hbm2JavaTask is fine. It seems that chemaExportTask can't find my *.hbm.xml files, while but the hbm2java has no problem (they use the same fileset).

While I run the SchemaExportTask, I get the following error:

Code:
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Environment <clinit>
[schemaexport] INFO: Hibernate 2.1.4
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Environment <clinit>
[schemaexport] INFO: hibernate.properties not found
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Environment <clinit>
[schemaexport] INFO: using CGLIB reflection optimizer
[schemaexport] 15-Jul-2004 4:42:56 PM net.sf.hibernate.cfg.Configuration configure
[schemaexport] INFO: configuring from file: hibernate.cfg.xml
[schemaexport] 15-Jul-2004 4:42:57 PM net.sf.hibernate.cfg.Configuration addResource
[schemaexport] INFO: Mapping resource: com/test/User.hbm.xml

BUILD FAILED
C:\tes\build.xml:72: Schema text failed: Resource: com/test/User.hbm.xml not found


Obviously, it can't find my User.hbm.xml. But why?

SchemaExportTask:

Code:
<schemaexport
   quiet="no"
   text="no"
   drop="no"
   delimiter=";"
   output="schema-export.sql"
   config="${basedir}/properties/hibernate.cfg.xml">
   <fileset dir="${src}" includes="**/*.hbm.xml"/>
</schemaexport>


hbm2java:

Code:
<hbm2java output="${src}" config="${basedir}/properties/code_generator.config">
   <fileset dir="${src}" includes="**/*.hbm.xml"/>
</hbm2java>


Any thoughts?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 15, 2004 8:58 pm 
Beginner
Beginner

Joined: Thu May 06, 2004 4:06 pm
Posts: 25
Oh yes, I also added the POJO .class files as well in the fileset:

Quote:
<fileset dir="${src}" includes="**/*.class"/>


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.