-->
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: Problem generating java files with Middlegen
PostPosted: Mon Oct 25, 2004 1:36 pm 
Newbie

Joined: Tue Sep 14, 2004 1:35 pm
Posts: 9
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 7:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You obvious know what the error message is saying, eg, classpath issue. It was working and now it is not - ask yourself what you had changed? Sorry but this is the best that can be offered.


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.