-->
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: Error Trying to generate mappings using middlegen
PostPosted: Wed Jan 19, 2005 5:21 pm 
Regular
Regular

Joined: Wed Jan 19, 2005 4:52 pm
Posts: 61
Location: Kansas City, USA
I am trying to generate mappings using middlegen and I am getting this error message when I click generate "middlegen.MiddlegenException:middlegen.DontCloseLog4JLogSystem. Any help would be greatly appriciated. I am using hibernate 2.1 with the middlegen2.1 plugin, connecting to a m$$ql server database. Here is the log that i generate in ant:


[middlegen] java.lang.ClassNotFoundException: middlegen.DontCloseLog4JLogSystem
[middlegen] at org.eclipse.ant.internal.core.AntClassLoader.findClass(AntClassLoader.java:42)
[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.swing.JMiddlegenFrame$1.actionPerformed(JMiddlegenFrame.java:72)
[middlegen] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
[middlegen] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
[middlegen] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
[middlegen] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
[middlegen] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
[middlegen] at java.awt.Component.processMouseEvent(Component.java:5100)
[middlegen] at java.awt.Component.processEvent(Component.java:4897)
[middlegen] at java.awt.Container.processEvent(Container.java:1569)
[middlegen] at java.awt.Component.dispatchEventImpl(Component.java:3615)
[middlegen] at java.awt.Container.dispatchEventImpl(Container.java:1627)
[middlegen] at java.awt.Component.dispatchEvent(Component.java:3477)
[middlegen] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
[middlegen] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
[middlegen] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
[middlegen] at java.awt.Container.dispatchEventImpl(Container.java:1613)
[middlegen] at java.awt.Window.dispatchEventImpl(Window.java:1606)
[middlegen] at java.awt.Component.dispatchEvent(Component.java:3477)
[middlegen] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
[middlegen] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
[middlegen] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
[middlegen] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
[middlegen] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
[middlegen] at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


Thanks to all


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 5:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Obviously a Class loading issue - have you tried from the command line instead of from within eclipse?


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.