-->
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: Can't find my persistent class and it is in the classpath!
PostPosted: Thu Apr 01, 2004 9:05 pm 
Newbie

Joined: Thu Apr 01, 2004 9:00 pm
Posts: 4
Hi All,

I am trying to run SchemaExport thru ant in Eclipse and I keep getting an error message. I know I must be doing something wrong, but I cannot figure it out. Please help.

Thanks in advance,
Kevin

Here is the error message:
Buildfile: D:\eclipse\workspace\VAM2\build.xml

schemaexport:
[echo] SchemaExport Classpath: D:\eclipse\workspace\VAM2\build\WEB-INF\classes
[echo] Does class exist? true
[schemaexport] BUILD FAILED: file:D:/eclipse/workspace/VAM2/build.xml:540: Schema text failed: net.sf.hibernate.MappingException: persistent class [com.nameprotect.ba.beans.AbuseType] not found
Total time: 547 milliseconds

---------------------------------------------------------------------------
Here is my path:
<path id="schemaexport.classpath">
<pathelement location="${build.home}/WEB-INF/classes"/>
</path>

---------------------------------------------------------------------------
Here is my ant target:
<target name="schemaexport">
<property name="ugh" refid="schemaexport.classpath"/>
<available property="findIt" classname="com.nameprotect.ba.beans.AbuseType" classpathref="schemaexport.classpath"/>
<echo>SchemaExport Classpath: ${ugh}</echo>
<echo>Does class exist? ${findIt}</echo>

<taskdef name="schemaexport" classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="schemaexport.classpath"/>
<schemaexport properties="src/hibernate.properties" quiet="no" text="no" drop="no" delimiter=";"
output="schema-export.sql">
<fileset dir="src">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target>


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 10, 2004 1:38 pm 
Newbie

Joined: Sat Apr 10, 2004 1:19 pm
Posts: 2
I had the same problem and solved it by adjusting my ant script according to a post from the user "javaite" (see http://forum.hibernate.org/viewtopic.ph ... hlight=ant).

What I still don


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.