-->
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.  [ 3 posts ] 
Author Message
 Post subject: SCHEMAEXPORT PROBLEM
PostPosted: Sat Dec 11, 2004 12:11 pm 
Beginner
Beginner

Joined: Mon Jun 07, 2004 4:31 pm
Posts: 45
Location: France
Hibernate version: 2.1.6
Hibernate tools version: 2.1.3

build.xml: 2.1.3
<!-- middlegen/hbm2java/schemaexport -->
<project name="middlegen" default="schemaexport" basedir=".">

<property file="${basedir}\hibernate_ant.properties" />

<path id="classpath">
<fileset dir="..">
<include name="hibernate-2.1/lib/*.jar"/>
<include name="hibernate-2.1/*.jar"/>
<include name="hibernate-extensions-2.1.3/tools/**/*.jar"/>
<include name="middlegen-2.0-vo/*.jar"/>
<include name="velocity-1.4-rc1/*.jar"/>
<include name="sqldriver/*.jar"/>
</fileset>

</path>

<target name="hbm2java"
description="Generate .java from .hbm files." >

<taskdef
name="hbm2java"
classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
classpathref="classpath"
/>

<hbm2java output="." classpathref="classpath">
<fileset dir="${build.gen-hbm.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</hbm2java>

</target>

<!--config="hibernate.cfg.xml"-->
<target name="schemaexport">

<taskdef name="schemaexport"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask">
<classpath>
<path refid="classpath"/>
<pathelement location="${build.gen-hbm.dir}"/>
</classpath>
</taskdef>

<schemaexport delimiter=";" output="schema-export.sql" properties="schema_export.properties">
<fileset dir="${build.gen-hbm.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target>

Error
schemaexport:

BUILD FAILED
D:\java\otherdev\persistence\SuiteLogicPersistenceFinal\build.xml:64: Schema te
t failed: net.sf.hibernate.MappingException: persistent class [net.suitelogic.p
rsistence.Access] not found

Total time: 2 seconds

Question
Help please i do not understand, the .class files are in the directory with the mapping files. It works well at my office but not at my home. The generation of the java files works well.


</project>


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 11, 2004 3:34 pm 
Newbie

Joined: Tue Nov 30, 2004 5:07 am
Posts: 14
Seems that you don't have included **/*.class in your fileset?

Maybe
Code:
<fileset dir="${build.gen-hbm.dir}">
<include name="**/*.hbm.xml"/>
<include name="**/*.class"/>
</fileset>

would help?

smo


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 5:46 pm 
Newbie

Joined: Wed Jan 19, 2005 5:26 pm
Posts: 3
I am having same problem with SchemaExportTask - Persistent class ... not found. Did you ever find a solution to your problem, jrpinna?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.