Hi,
I've been using Middlegen-Hibernate-r5 and it's been working great. just recently, I can no long be able to generate java files using hbm2java in Middlegen. I'm getting this error:
I've checked my classpath and made sure all the jar files are there. Everything seems to be in place, but I'm not sure why it stops working on my computer. Any idea? Any body?
C:\Middlegen-Hibernate-r5>ant
Buildfile: build.xml
hbm2java:
[hbm2java] Processing 3 files.
[hbm2java] Building hibernate objects
BUILD FAILED
C:\Middlegen-Hibernate-r5\build.xml:219: Caused by:
Caused by:
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at net.sf.hibernate.util.DTDEntityResolver.<init>(DTDEntityResolver.java
:14)
at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:
44)
at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.processFile(Hbm2JavaTask.
java:145)
at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.execute(Hbm2JavaTask.java
:95)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
at org.apache.tools.ant.Task.perform(Task.java:401)
at org.apache.tools.ant.Target.execute(Target.java:338)
at org.apache.tools.ant.Target.performTasks(Target.java:365)
at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
at org.apache.tools.ant.Main.runBuild(Main.java:669)
at org.apache.tools.ant.Main.startAnt(Main.java:220)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.processFile(Hbm2JavaTask.
java:149)
at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.execute(Hbm2JavaTask.java
:95)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
at org.apache.tools.ant.Task.perform(Task.java:401)
at org.apache.tools.ant.Target.execute(Target.java:338)
at org.apache.tools.ant.Target.performTasks(Target.java:365)
at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
at org.apache.tools.ant.Main.runBuild(Main.java:669)
at org.apache.tools.ant.Main.startAnt(Main.java:220)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
Total time: 2 seconds
|