Hi
I want to know what are all the jars needed by hibernate-tools.jar.
I am trying to implement the reverse engineering and added the following jars to the class path:
ant-1.6.5, antrl-2.76, asm, asm-attrs, cglib-2.1.3, commons-collections-2.1.1, commons-logging-1.0.4, dom4j-1.6.1, ehcache-1.2.3, hibernate-annotationsm hibernate-tools, hibernate3, jdbc2_0-stdext and jta jars
But I still get some class linkage problems during the compile time on the following which will result in NoClassDefFoundErrrors when I use the wizard to generate the pojos and hbms at runtime.
I am using Netbeans.
[verifyclasslinkage] Warning: net.sf.cglib.transform.hook.AbstractPreProcessor cannot access
org.codehaus.aspectwerkz.hook.ClassPreProcessor
[verifyclasslinkage] Warning: net.sf.cglib.transform.hook.AsmClassLoaderPreProcessor cannot
access org.codehaus.aspectwerkz.hook.ClassLoaderPreProcessor
[verifyclasslinkage] Warning: net.sf.cglib.transform.hook.AsmClassLoaderPreProcessor cannot
access org.codehaus.aspectwerkz.hook.ClassLoaderPatcher
[verifyclasslinkage] Warning: org.dom4j.datatype.DatatypeAttribute cannot access org.relaxng.datatype.DatatypeException
[verifyclasslinkage] Warning: org.dom4j.datatype.DatatypeAttribute cannot access com.sun.msv.datatype.DatabindableDatatype
And the exception is
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.generateFiles(HibernateRevengWizard.java:322)
at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.instantiate(HibernateRevengWizard.java:251)
at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1025)
at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595)
at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416)
at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:161)
at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1387)
at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1341)
at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119)
at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1908)
at org.openide.WizardDescriptor$Listener$2.run(WizardDescriptor.java:1957)
at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1316)
at org.openide.WizardDescriptor.access$1200(WizardDescriptor.java:119)
at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1964)
Caused: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:449)
Caused: java.lang.reflect.UndeclaredThrowableException
at $Proxy17.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
Please help me.
Thanks, G
|