I was curious about the <hbm2doc> task, but when I run it, I find the following:
(Note: All Hibernate Tool jars and the driver are in the classpath.)
Code:
java.lang.NoClassDefFoundError
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)
Caused by: java.lang.NoClassDefFoundError
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
at freemarker.log.Logger.getLogger(Logger.java:255)
at freemarker.ext.beans.BeanModel.<clinit>(BeanModel.java:98)
at freemarker.ext.beans.BeansWrapper.<init>(BeansWrapper.java:153)
at freemarker.template.DefaultObjectWrapper.<init>(DefaultObjectWrapper.java:68)
at freemarker.template.WrappingTemplateModel.<init>(WrappingTemplateModel.java:110)
at freemarker.template.WrappingTemplateModel.<init>(WrappingTemplateModel.java:97)
at freemarker.template.SimpleCollection.<init>(SimpleCollection.java:86)
at freemarker.template.GeneralPurposeNothing.<clinit>(GeneralPurposeNothing.java:71)
at freemarker.template.TemplateModel.<clinit>(TemplateModel.java:73)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at freemarker.ext.beans.BeansWrapper.class$(BeansWrapper.java:111)
at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:122)
at freemarker.template.WrappingTemplateModel.<clinit>(WrappingTemplateModel.java:63)
at org.hibernate.tool.hbm2x.TemplateHelper.init(TemplateHelper.java:64)
at org.hibernate.tool.hbm2x.AbstractExporter.setupTemplates(AbstractExporter.java:136)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:186)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
... 16 more
Any ideas as to why this is?