Okay got it working again....

Thank you for all of your help!

It appears that it had something to do with the jars I had included in my
classpath when running the target.
(anyone have any idea why?)  I only added the following jars:

   1. project_home/lib/dbunit-2.1/dbunit-2.1.jar
   2. project_home/lib/junit3.8.1/junit.jar
   3.
project_home/lib/mysql-connector-java-5.0.3/mysql-connector-java-5.0.3.jar
   4. project_home/lib/logging-log4j-1.3alpha-8/log4j-1.3alpha-8.jar (okay
so I'm using a diffrent version...)

And suddenly there is no problem, and everything deploys to the database
fine....

Go figure....*shrugs* one of those other jars must have been not needed and
messed something up.

Thanks,
  Andrew J. Leer 



GojiraDeMonstah wrote:
> 
> I'm just guessing but here are some things to check.
> 
> Is there in fact a Role.class file where it should be? If not is it
> possible
> that there's an error somewhere keeping Role from compiling? Does the
> Role.hbm.xml look like it was generated OK from the xDoclet tags in the
> Role.java?
> 
> Jason
> 
> 
> On 12/15/06, maskkkk <[EMAIL PROTECTED]> wrote:
>>
>>
>> Anybody read this yet?  I must have fallen under the radar....
>>
>>
>> maskkkk wrote:
>> >
>> > When running ant setup-db I get this error...
>> >
>> >
>> >
>> >> BUILD FAILED
>> >> C:\tmp\workspace\OSB\build.xml:756: Schema text failed: Could not
>> parse
>> >> mapping document from file
>> >>
>> C:\tmp\workspace\OSB\build\dao\gen\com\conciliarpress\model\Role.hbm.xml
>> >>      at
>> >> org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(
>> SchemaExportTask.java:149)
>> >>      at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
>> :275)
>> >>      at org.apache.tools.ant.Task.perform(Task.java:364)
>> >>      at org.apache.tools.ant.Target.execute(Target.java:341)
>> >>      at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> >>      at org.apache.tools.ant.Project.executeSortedTargets(Project.java
>> :1216)
>> >>      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>> >>      at
>> >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
>> DefaultExecutor.java:40)
>> >>      at
>> >>
>> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets
>> (EclipseDefaultExecutor.java:32)
>> >>      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>> >>      at
>> >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(
>> InternalAntRunner.java:423)
>> >>      at
>> >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(
>> InternalAntRunner.java:137)
>> >> Caused by: org.hibernate.InvalidMappingException: Could not parse
>> mapping
>> >> document from file
>> >>
>> C:\tmp\workspace\OSB\build\dao\gen\com\conciliarpress\model\Role.hbm.xml
>> >>      at
>> org.hibernate.cfg.Configuration.addFile(Configuration.java:291)
>> >>      at
>> >> org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(
>> SchemaExportTask.java:202)
>> >>      at
>> >> org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(
>> SchemaExportTask.java:146)
>> >>      ... 11 more
>> >> Caused by: org.hibernate.MappingException: class
>> >> com.conciliarpress.model.Role not found while looking for property: id
>> >>      at
>> >> org.hibernate.util.ReflectHelper.reflectedPropertyClass(
>> ReflectHelper.java:74)
>> >>      at
>> >> org.hibernate.mapping.SimpleValue.setTypeUsingReflection(
>> SimpleValue.java:276)
>> >>      at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401)
>> >>      at
>> >> org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(
>> HbmBinder.java:334)
>> >>      at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
>> >>      at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
>> >>      at org.hibernate.cfg.Configuration.add(Configuration.java:424)
>> >>      at
>> org.hibernate.cfg.Configuration.addFile(Configuration.java:284)
>> >>      ... 13 more
>> >> Caused by: java.lang.ClassNotFoundException:
>> >> com.conciliarpress.model.Role
>> >>      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> >>      at java.security.AccessController.doPrivileged(Native Method)
>> >>      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> >>      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> >>      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>> >>      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> >>      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> >>      at java.lang.Class.forName0(Native Method)
>> >>      at java.lang.Class.forName(Class.java:164)
>> >>      at org.hibernate.util.ReflectHelper.classForName(
>> ReflectHelper.java:100)
>> >>      at
>> >> org.hibernate.util.ReflectHelper.reflectedPropertyClass(
>> ReflectHelper.java:70)
>> >>      ... 20 more
>> >> --- Nested Exception ---
>> >> org.hibernate.InvalidMappingException: Could not parse mapping
>> document
>> >> from file
>> >>
>> C:\tmp\workspace\OSB\build\dao\gen\com\conciliarpress\model\Role.hbm.xml
>> >>      at
>> org.hibernate.cfg.Configuration.addFile(Configuration.java:291)
>> >>      at
>> >> org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(
>> SchemaExportTask.java:202)
>> >>      at
>> >> org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(
>> SchemaExportTask.java:146)
>> >>      at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
>> :275)
>> >>      at org.apache.tools.ant.Task.perform(Task.java:364)
>> >>      at org.apache.tools.ant.Target.execute(Target.java:341)
>> >>      at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> >>      at org.apache.tools.ant.Project.executeSortedTargets(Project.java
>> :1216)
>> >>      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>> >>      at
>> >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
>> DefaultExecutor.java:40)
>> >>      at
>> >>
>> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets
>> (EclipseDefaultExecutor.java:32)
>> >>      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>> >>      at
>> >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(
>> InternalAntRunner.java:423)
>> >>      at
>> >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(
>> InternalAntRunner.java:137)
>> >> Caused by: org.hibernate.MappingException: class
>> >> com.conciliarpress.model.Role not found while looking for property: id
>> >>      at
>> >> org.hibernate.util.ReflectHelper.reflectedPropertyClass(
>> ReflectHelper.java:74)
>> >>      at
>> >> org.hibernate.mapping.SimpleValue.setTypeUsingReflection(
>> SimpleValue.java:276)
>> >>      at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401)
>> >>      at
>> >> org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(
>> HbmBinder.java:334)
>> >>      at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
>> >>      at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
>> >>      at org.hibernate.cfg.Configuration.add(Configuration.java:424)
>> >>      at
>> org.hibernate.cfg.Configuration.addFile(Configuration.java:284)
>> >>      ... 13 more
>> >> Caused by: java.lang.ClassNotFoundException:
>> >> com.conciliarpress.model.Role
>> >>      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> >>      at java.security.AccessController.doPrivileged(Native Method)
>> >>      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> >>      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> >>      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>> >>      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> >>      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> >>      at java.lang.Class.forName0(Native Method)
>> >>      at java.lang.Class.forName(Class.java:164)
>> >>      at org.hibernate.util.ReflectHelper.classForName(
>> ReflectHelper.java:100)
>> >>      at
>> >> org.hibernate.util.ReflectHelper.reflectedPropertyClass(
>> ReflectHelper.java:70)
>> >>      ... 20 more
>> >>
>> >> Total time: 7 seconds
>> >>
>> >
>> > Note the:
>> >
>> >
>> >
>> >> Caused by: org.hibernate.MappingException: class
>> >> com.conciliarpress.model.Role not found while looking for property: id
>> >>
>> >
>> > So it appears that it is not finding Role in my classpath.
>> >
>> > Also I found something on another site
>> > (http://www.manning-sandbox.com/message.jspa?messageID=51255) where
>> they
>> > say that it has something to do with the classpath not being included
>> in
>> > the taskdef, but I haven't modified build.xml...so...
>> >
>> > *shrugs*
>> >
>> > Thank you,
>> >    Andrew J. Leer
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ant-setup-db-tf2824985s2369.html#a7895212
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ant-setup-db-tf2824985s2369.html#a7897253
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to