-->
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: Mapping Resource not found
PostPosted: Sat Mar 15, 2008 2:09 pm 
Newbie

Joined: Thu Jan 24, 2008 12:24 pm
Posts: 5
Hi everyone,

I had written an mapping xml file and place it in the respective packages pojo class. and specified about this in cfg file.

Now i had written an ant task like this
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="project.classpath" />

<target name="schemaexport" depends="compile,copymetafiles" description="Exports a generated schema to DB and file" >
<hibernatetool destdir="${basedir}" >
<classpath refid="${builddir}" />
<configuration configurationfile="${build.dir}/hibernate.cfg.xml" />
<hbm2ddl drop="true" create="true" export="true" outputfilename="helloworld-ddl.sql" delimiter=";" format="true" />
</hibernatetool>
</target>

and placed hibernate-tools jar file in the class path.

Now when i am running the above task its giving an exception like

C:\workspace\HelloWorld\build.xml:31: org.hibernate.MappingNotFoundException: re
source: hello/Message.hbm.xml not found

Can any one tell why its comming like that?

Thanks in Advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 1:46 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
can you share the configuration file

_________________
Sukirtha


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.