hibernate + middlegen

Wolfgang Klein <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Organization tarent GmbH
Message-ID <[email protected]>
Hello!

I´m trying to user middlegen (hibernate 
distribution), to create hbm.xml Files (Hibernate) 
from an JDBC Connection.

After typing ant to run the default example,
the window opens and displays all tables
correctly. 
But when i hit the generate button, the
following error occurs:

java.lang.ClassNotFoundException: middlegen.DontCloseLog4JLogSystem
        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at 
org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:161)
        at 
org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:533)
        at 
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:267)
        at 
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:441)
        at 
org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:148)
        at middlegen.Plugin.getEngine(Plugin.java:570)
        at middlegen.Plugin.generate(Plugin.java:512)
        at middlegen.Middlegen.writeSource(Middlegen.java:415)
        at middlegen.swing.JMiddlegenFrame
$1.actionPerformed(JMiddlegenFrame.java:67)
        at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
        at javax.swing.AbstractButton
$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
        at java.awt.Component.processMouseEvent(Component.java:5100)
        at java.awt.Component.processEvent(Component.java:4897)
        at java.awt.Container.processEvent(Container.java:1569)
        at java.awt.Component.dispatchEventImpl(Component.java:3615)
        at java.awt.Container.dispatchEventImpl(Container.java:1627)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
        at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at java.awt.Container.dispatchEventImpl(Container.java:1613)
        at java.awt.Window.dispatchEventImpl(Window.java:1606)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
middlegen.MiddlegenException: middlegen.DontCloseLog4JLogSystem

It would be nice, if anyone can help to solve this problem.

Greetings,
W.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.