Exception while generating *.hbm.xml (java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties )

MEGAOUEL Amar <[email protected]> Fri, 31 Dec 2004 11:07:29 +0100
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Hello, 

I am trying to generate *.hbm.xml files from my database but i get always an exception ( libray commons-collections-2.1.jar is there ). 



middlegen: 
[echo] Class path = D:\private\dev\MiddleGenTemplate 
[middlegen] (middlegen.Middlegen 350 ) Registering plugin simple->middlegen.Plugin 
[middlegen] (middlegen.Middlegen 350 ) Registering plugin java->middlegen.javax.JavaPlugin 
[middlegen] (middlegen.Middlegen 350 ) Registering plugin plugin->middlegen.Plugin 
[middlegen] (middlegen.Middlegen 350 ) Registering plugin hibernate->middlegen.plugins.hibernate.HibernateP 
[middlegen] Database URL:jdbc:microsoft:sqlserver://localhost:1433 
[middlegen] (middlegen.Middlegen 393 ) Validating hibernate 
[middlegen] ******************************************************** 
[middlegen] * CTRL-Click relations to modify their cardinality * 
[middlegen] * SHIFT-Click relations to modify their directionality * 
[middlegen] ******************************************************** 
[middlegen] (middlegen.Middlegen 410 ) Invoking plugin hibernate 
[middlegen] java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties 
[middlegen] at org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:206) 
[middlegen] at org.apache.velocity.app.VelocityEngine.<init>(VelocityEngine.java:113) 
[middlegen] at middlegen.Plugin.getEngine(Plugin.java:547) 
[middlegen] at middlegen.Plugin.generate(Plugin.java:444) 
[middlegen] at middlegen.Middlegen.writeSource(Middlegen.java:411) 
[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) 




Thank you

This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. 
If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, 
copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, 
and may be unlawful. 
If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete 
this message. Thales, its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete 
transmission of this e-mail or any attachments, nor responsible for any delay in receipt.