-->
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: Mapping File are not getting generated
PostPosted: Fri Sep 10, 2004 9:48 am 
Newbie

Joined: Wed Jul 21, 2004 7:44 am
Posts: 7
Hi friends,
Mapping file never gets generated. During build system gives following log message. But never generates mapping file.

Ant
StdOut
Buildfile: buildHibernate.xml

generateHibernateMappings:
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (ModuleFinder.findModules 179 ) There is an entry on XDoclets classpath that doesn't exist: {0}. Ignoring it
[hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/>
[generateHibernateConfig] Updating hibernate config using template: ./src/hibernate.cfg.xml.template
[generateHibernateConfig] Hibernate config written to: ./classes/hibernate.cfg.xml

BUILD SUCCESSFUL
Total time: 13 seconds


Ant code is given below.

buildHibernate.xml file
<project name="HiberStruts" default="generateHibernateMappings" basedir="." >
<description>
This project just a beginer project
</description>
<property name="classes" value="./classes"/>
<property name="src" value="./src"/>

<target name="generateHibernateMappings" description="Mapping files">
<taskdef
name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
/>
<taskdef
name="generateHibernateConfig"
classname="com.bds.hibernate.utils.GenerateHibernateConfigTask"
/>
<tstamp>
<format property="TODAY" pattern="d-MM-yy"/>
</tstamp>
<hibernatedoclet
destDir="${classes}"
excludedtags="@version,@author"
addedtags="@xdoclet-generated at ${TODAY}"
verbose="true"
>
<fileset dir="${src}">
<include name="**/*VO.java"/>
</fileset>

<hibernate
version="2.0"
/>
</hibernatedoclet>
<generateHibernateConfig
configurationFile="${classes}/hibernate.cfg.xml"
verbose="true"
template="${src}/hibernate.cfg.xml.template"
baseDir="${classes}"
>
<fileset dir="${classes}">
<include name="**/*.hbm.xml">
</include>
</fileset>
</generateHibernateConfig>
</target>
</project>

Hibernate version: 2.0


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.