-->
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.  [ 5 posts ] 
Author Message
 Post subject: Ant Task Err Problems in creating a AnnotationConfiguration
PostPosted: Mon Sep 12, 2005 1:24 pm 
Newbie

Joined: Thu Sep 08, 2005 2:14 pm
Posts: 7
Hibernate version:
3.1beta1
annotation3.1alpha5

I tried to run the hibernatetools ant task <annotationconfiguration> with <cfg2cfgXml> generator. To generate a traditional cfg.xml file to use my annotated classes with the eclipse plugin.

The build failed with the following error msg:
"Problems in creating a AnnotationConfiguration . Have you remembered to add it to the classpath ?"

Well I run ant with debug mode, to make sure, that my classpath is right.
In the trace I have something like:
....
Class java.lang.NoSuchFieldException loaded from parent loader (parentFirst)
Finding class org.hibernate.cfg.AnnotationConfiguration
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-annotations.jar org/hibernate/cfg/AnnotationConfiguration.class
Class org.hibernate.cfg.AnnotationConfiguration loaded from ant loader (parentFirst)
Class org.hibernate.cfg.AnnotationConfiguration loaded from parent loader (parentFirst)
...

So actually it seems, that ant had already loaded the class AnnotationConfiguration

Any Ideas what went wrong?

regards

Nils

here is the ant-log:


Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Programme\Java\jdk1.5.0_01\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.2 compiled on July 16 2004
Setting ro project property: ant.file -> C:\Nils-Daten\Entwicklung\Diplom\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Nils-Daten\Entwicklung\Diplom\build.xml with URI = file:///C:/Nils-Daten/Entwicklung/Diplom/build.xml
Setting ro project property: ant.project.name -> Diplom
Adding reference: Diplom
Setting ro project property: ant.file.Diplom -> C:\Nils-Daten\Entwicklung\Diplom\build.xml
Project base dir set to: C:\Nils-Daten\Entwicklung\Diplom
+Target:
Adding reference: path.base
Adding reference: path.base.hibernate
+Target: init
+Target: compile
+Target: dist
+Target: clean
+Target: hibernatetool
Setting project property: dir.src -> C:\Nils-Daten\Entwicklung\Diplom\src
Setting project property: dir.build -> C:\Nils-Daten\Entwicklung\Diplom\build
Setting project property: dir.dist -> C:\Nils-Daten\Entwicklung\Diplom\dist
Setting project property: dir.cfg -> C:\Nils-Daten\Entwicklung\Diplom\cfg
Setting project property: dir.lib -> C:\Nils-Daten\Entwicklung\Diplom\lib
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Property ${classpath} has not been set
Adding reference: path.base
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Adding reference: path.base.hibernate
Build sequence for target `hibernatetool' is [hibernatetool]
Complete build sequence is [hibernatetool, clean, init, compile, dist, ]

hibernatetool:
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/Test) for type junit
fileset: Setup scanner in dir C:\Nils-Daten\Entwicklung\Diplom\lib with patternSet{ includes: [**/*.jar] excludes: [] }
Finding class org.hibernate.tool.ant.HibernateToolTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/HibernateToolTask.class
Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
Class org.hibernate.tool.ant.HibernateToolTask loaded from ant loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Finding class org.hibernate.tool.ant.GeneratorTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/GeneratorTask.class
Class org.hibernate.tool.ant.GeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Hbm2DocGeneratorTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/Hbm2DocGeneratorTask.class
Class org.hibernate.tool.ant.Hbm2DocGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Cfg2HbmGeneratorTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/Cfg2HbmGeneratorTask.class
Class org.hibernate.tool.ant.Cfg2HbmGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Hbm2JavaGeneratorTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/Hbm2JavaGeneratorTask.class
Class org.hibernate.tool.ant.Hbm2JavaGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Cfg2CfgXmlGeneratorTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/Cfg2CfgXmlGeneratorTask.class
Class org.hibernate.tool.ant.Cfg2CfgXmlGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Hbm2DDLGeneratorTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/Hbm2DDLGeneratorTask.class
Class org.hibernate.tool.ant.Hbm2DDLGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.ConfigurationTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/ConfigurationTask.class
Class org.hibernate.tool.ant.ConfigurationTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.AnnotationConfigurationTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/AnnotationConfigurationTask.class
Class org.hibernate.tool.ant.AnnotationConfigurationTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.JDBCConfigurationTask
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/ant/JDBCConfigurationTask.class
Class org.hibernate.tool.ant.JDBCConfigurationTask loaded from ant loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst)
Class java.util.List loaded from parent loader (parentFirst)
+Datatype hibernatetool org.hibernate.tool.ant.HibernateToolTask
Class java.util.ArrayList loaded from parent loader (parentFirst)
Class org.apache.tools.ant.types.Path loaded from parent loader (parentFirst)
Class java.io.File loaded from parent loader (parentFirst)
Finding class org.hibernate.cfg.Configuration
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/cfg/Configuration.class
Class java.io.Serializable loaded from parent loader (parentFirst)
Class org.hibernate.cfg.Configuration loaded from ant loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
Class java.io.FileNotFoundException loaded from parent loader (parentFirst)
Class java.io.InputStream loaded from parent loader (parentFirst)
Class java.io.FileInputStream loaded from parent loader (parentFirst)
Finding class org.hibernate.HibernateException
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/HibernateException.class
Finding class org.hibernate.exception.NestableRuntimeException
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/exception/NestableRuntimeException.class
Finding class org.hibernate.exception.Nestable
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/exception/Nestable.class
Class org.hibernate.exception.Nestable loaded from ant loader (parentFirst)
Class java.lang.RuntimeException loaded from parent loader (parentFirst)
Class org.hibernate.exception.NestableRuntimeException loaded from ant loader (parentFirst)
Class org.hibernate.HibernateException loaded from ant loader (parentFirst)
Class org.apache.tools.ant.types.FileSet loaded from parent loader (parentFirst)
Finding class org.hibernate.tool.hbm2x.Exporter
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/hbm2x/Exporter.class
Class org.hibernate.tool.hbm2x.Exporter loaded from ant loader (parentFirst)
Class java.lang.String loaded from parent loader (parentFirst)
Class java.lang.StringBuffer loaded from parent loader (parentFirst)
[hibernatetool] Executing Hibernate Tool with a Hibernate Annotation/EJB3 Configuration
Class java.util.Iterator loaded from parent loader (parentFirst)
Class org.apache.tools.ant.Project loaded from parent loader (parentFirst)
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/Test) for type junit
fileset: Setup scanner in dir C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate with patternSet{ includes: [**/*.jar, **/*cfg.xml] excludes: [] }
fileset: Setup scanner in dir C:\Nils-Daten\Entwicklung\Diplom\cfg\hibernate with patternSet{ includes: [**/*cfg.xml] excludes: [] }
dropping C:\Nils-Daten\Entwicklung\Diplom\build from path as it doesn't exist
Class java.lang.Class loaded from parent loader (parentFirst)
Class org.apache.tools.ant.AntClassLoader loaded from parent loader (parentFirst)
[hibernatetool] 1. task: cfg2cfgxml (Generates hibernate.cfg.xml)
Finding class org.hibernate.tool.hbm2x.HibernateConfigurationExporter
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/hbm2x/HibernateConfigurationExporter.class
Finding class org.hibernate.tool.hbm2x.AbstractExporter
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/hbm2x/AbstractExporter.class
Class org.hibernate.tool.hbm2x.AbstractExporter loaded from ant loader (parentFirst)
Class org.hibernate.tool.hbm2x.HibernateConfigurationExporter loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.hbm2x.ExporterException
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-tools.jar org/hibernate/tool/hbm2x/ExporterException.class
Class org.hibernate.tool.hbm2x.ExporterException loaded from ant loader (parentFirst)
Class java.io.Writer loaded from parent loader (parentFirst)
Class java.io.FileWriter loaded from parent loader (parentFirst)
Class java.util.Map loaded from parent loader (parentFirst)
Class java.util.Properties loaded from parent loader (parentFirst)
Finding class org.hibernate.util.ReflectHelper
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/util/ReflectHelper.class
Class org.hibernate.util.ReflectHelper loaded from ant loader (parentFirst)
Class java.lang.NoSuchMethodException loaded from parent loader (parentFirst)
Class java.lang.reflect.Member loaded from parent loader (parentFirst)
Finding class org.hibernate.PropertyNotFoundException
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/PropertyNotFoundException.class
Finding class org.hibernate.MappingException
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/MappingException.class
Class org.hibernate.MappingException loaded from ant loader (parentFirst)
Class org.hibernate.PropertyNotFoundException loaded from ant loader (parentFirst)
Class java.lang.Exception loaded from parent loader (parentFirst)
Class java.lang.ClassNotFoundException loaded from parent loader (parentFirst)
Finding class org.hibernate.property.PropertyAccessor
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/property/PropertyAccessor.class
Class org.hibernate.property.PropertyAccessor loaded from ant loader (parentFirst)
Finding class org.hibernate.AssertionFailure
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/AssertionFailure.class
Class org.hibernate.AssertionFailure loaded from ant loader (parentFirst)
Finding class org.apache.commons.logging.LogFactory
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/LogFactory.class
Class org.apache.commons.logging.LogFactory loaded from ant loader (parentFirst)
Class java.security.PrivilegedAction loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.LogConfigurationException
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/LogConfigurationException.class
Class org.apache.commons.logging.LogConfigurationException loaded from ant loader (parentFirst)
Class java.lang.NoClassDefFoundError loaded from parent loader (parentFirst)
Class java.lang.reflect.InvocationTargetException loaded from parent loader (parentFirst)
Class java.lang.IllegalAccessException loaded from parent loader (parentFirst)
Class java.lang.reflect.Method loaded from parent loader (parentFirst)
Class java.io.UnsupportedEncodingException loaded from parent loader (parentFirst)
Class java.lang.SecurityException loaded from parent loader (parentFirst)
Class java.io.Reader loaded from parent loader (parentFirst)
Class java.io.InputStreamReader loaded from parent loader (parentFirst)
Class java.util.Hashtable loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.LogFactory$1
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/LogFactory$1.class
Class org.apache.commons.logging.LogFactory$1 loaded from ant loader (parentFirst)
Class java.security.AccessController loaded from parent loader (parentFirst)
Class java.lang.Thread loaded from parent loader (parentFirst)
Class java.lang.ClassLoader loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.LogFactory$3
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/LogFactory$3.class
Class org.apache.commons.logging.LogFactory$3 loaded from ant loader (parentFirst)
Couldn't load ResourceStream for commons-logging.properties
Ignoring Exception java.util.zip.ZipException: error in opening zip file reading resource commons-logging.properties from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate.cfg.xml
Ignoring Exception java.util.zip.ZipException: error in opening zip file reading resource commons-logging.properties from C:\Nils-Daten\Entwicklung\Diplom\cfg\hibernate\hibernate.cfg.xml
Couldn't load ResourceStream for commons-logging.properties
Class java.lang.System loaded from parent loader (parentFirst)
Couldn't load ResourceStream for META-INF/services/org.apache.commons.logging.LogFactory
Ignoring Exception java.util.zip.ZipException: error in opening zip file reading resource META-INF/services/org.apache.commons.logging.LogFactory from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate.cfg.xml
Ignoring Exception java.util.zip.ZipException: error in opening zip file reading resource META-INF/services/org.apache.commons.logging.LogFactory from C:\Nils-Daten\Entwicklung\Diplom\cfg\hibernate\hibernate.cfg.xml
Couldn't load ResourceStream for META-INF/services/org.apache.commons.logging.LogFactory
Finding class org.apache.commons.logging.LogFactory$2
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/LogFactory$2.class
Class org.apache.commons.logging.LogFactory$2 loaded from ant loader (parentFirst)
Class java.lang.ClassCastException loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.impl.LogFactoryImpl
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/impl/LogFactoryImpl.class
Class org.apache.commons.logging.impl.LogFactoryImpl loaded from ant loader (parentFirst)
Finding class org.apache.commons.logging.impl.LogFactoryImpl$1
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/impl/LogFactoryImpl$1.class
Class org.apache.commons.logging.impl.LogFactoryImpl$1 loaded from ant loader (parentFirst)
Finding class org.apache.log4j.Logger
Finding class org.apache.log4j.Logger
Ignoring Exception java.util.zip.ZipException: error in opening zip file reading resource org/apache/log4j/Logger.class from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate.cfg.xml
Ignoring Exception java.util.zip.ZipException: error in opening zip file reading resource org/apache/log4j/Logger.class from C:\Nils-Daten\Entwicklung\Diplom\cfg\hibernate\hibernate.cfg.xml
Finding class org.apache.log4j.Logger
Class java.util.logging.Logger loaded from parent loader (parentFirst)
Class java.util.logging.Logger loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.impl.Jdk14Logger
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/impl/Jdk14Logger.class
Finding class org.apache.commons.logging.Log
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\jakarta-commons\commons-logging.jar org/apache/commons/logging/Log.class
Class org.apache.commons.logging.Log loaded from ant loader (parentFirst)
Class org.apache.commons.logging.impl.Jdk14Logger loaded from ant loader (parentFirst)
Class org.apache.commons.logging.impl.Jdk14Logger loaded from parent loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.commons.logging.impl.Jdk14Logger loaded from parent loader (parentFirst)
Class java.util.logging.Logger loaded from parent loader (parentFirst)
Class java.lang.reflect.Constructor loaded from parent loader (parentFirst)
Finding class org.hibernate.property.BasicPropertyAccessor
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/property/BasicPropertyAccessor.class
Class org.hibernate.property.BasicPropertyAccessor loaded from ant loader (parentFirst)
Finding class org.hibernate.property.Getter
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/property/Getter.class
Class org.hibernate.property.Getter loaded from ant loader (parentFirst)
Finding class org.hibernate.property.Setter
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/property/Setter.class
Class org.hibernate.property.Setter loaded from ant loader (parentFirst)
Finding class org.hibernate.property.DirectPropertyAccessor
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/property/DirectPropertyAccessor.class
Class org.hibernate.property.DirectPropertyAccessor loaded from ant loader (parentFirst)
Class java.lang.NoSuchFieldException loaded from parent loader (parentFirst)
Finding class org.hibernate.cfg.AnnotationConfiguration
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate-annotations.jar org/hibernate/cfg/AnnotationConfiguration.class
Class org.hibernate.cfg.AnnotationConfiguration loaded from ant loader (parentFirst)
Class org.hibernate.cfg.AnnotationConfiguration loaded from parent loader (parentFirst)
Finding class org.hibernate.engine.Mapping
Loaded from C:\Nils-Daten\Entwicklung\Diplom\lib\hibernate\hibernate3.jar org/hibernate/engine/Mapping.class
Class org.hibernate.engine.Mapping loaded from ant loader (parentFirst)
Finding class org.dom4j.DocumentException

BUILD FAILED
C:\Nils-Daten\Entwicklung\Diplom\build.xml:74: Problems in creating a AnnotationConfiguration. Have you remembered to add it to the classpath ?
at org.hibernate.tool.ant.AnnotationConfigurationTask.createConfiguration(AnnotationConfigurationTask.java:30)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:49)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:158)
at org.hibernate.tool.ant.GeneratorTask.configureExporter(GeneratorTask.java:73)
at org.hibernate.tool.ant.GeneratorTask.execute(GeneratorTask.java:31)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:122)
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.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.hibernate.tool.ant.AnnotationConfigurationTask.createConfiguration(AnnotationConfigurationTask.java:27)
... 15 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.hibernate.tool.ant.AnnotationConfigurationTask.createConfiguration(AnnotationConfigurationTask.java:27)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:49)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:158)
at org.hibernate.tool.ant.GeneratorTask.configureExporter(GeneratorTask.java:73)
at org.hibernate.tool.ant.GeneratorTask.execute(GeneratorTask.java:31)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:122)
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.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

Total time: 0 seconds[code][/code]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 12, 2005 7:48 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
You'll get rid of that last NoClassDefFoundError if you put dom4j*.jar in the classpath .


Top
 Profile  
 
 Post subject: Re: Ant Task Err Problems in creating a AnnotationConfigurat
PostPosted: Mon Jan 09, 2006 4:47 pm 
Regular
Regular

Joined: Sun Sep 26, 2004 9:27 pm
Posts: 75
Location: Atlanta, GA, USA
nelsonhh wrote:
Well I run ant with debug mode, to make sure, that my classpath is right.


How does one accomplish this? Are you saying you set your logger to DEBUG mode for ant outputs?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 5:09 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
you can use the -debug switch


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 5:19 pm 
Regular
Regular

Joined: Sun Sep 26, 2004 9:27 pm
Posts: 75
Location: Atlanta, GA, USA
dennisbyrne wrote:
you can use the -debug switch


Excellent. Much easier.


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