When running the middlegen ant task I get the following exception:
ClassNotFoundException: middlegen.DontCloseLog4JLogSystem
My issue is similar to the one described at
http://www.mail-archive.com/middlegen-user@lists.sourceforge.net/msg01880.html
Im on osx 10.4.2 and java 1.4.2_07.
Hibernate version:
I have tried both with 3.0.5 and 3.1 beta 1 with same result.
Full stack trace of any exception that occurs:
[middlegen] java.lang.ClassNotFoundException: middlegen.DontCloseLog4JLogSystem
[middlegen] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[middlegen] at java.security.AccessController.doPrivileged(Native Method)
[middlegen] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[middlegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[middlegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[middlegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[middlegen] at java.lang.Class.forName0(Native Method)
[middlegen] at java.lang.Class.forName(Class.java:141)
[middlegen] at org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:161)
[middlegen] at org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:533)
[middlegen] at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:267)
[middlegen] at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:441)
[middlegen] at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:148)
[middlegen] at middlegen.Plugin.getEngine(Plugin.java:560)
[middlegen] at middlegen.Plugin.generate(Plugin.java:444)
[middlegen] at middlegen.Middlegen.writeSource(Middlegen.java:415)
[middlegen] at middlegen.MiddlegenTask.execute(MiddlegenTask.java:470)
[middlegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[middlegen] at org.apache.tools.ant.Main.startAnt(Main.java:188)
Any ideas?
TIA!
-Kaj :)