-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4217681
By: cyberjim84
Hi,
I just upgraded ZK from 2.3RC to 2.3.
When calling org.zkoss.zkplus.hibernate.HibernateUtil.getSessionFactory(), I get the following error :
INFO [Thread-5]
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:161) >15> building session factory org.zkoss.zkplus.hibernate.HibernateUtil initSessionFactory:83
GRAVE: Initial SessionFactory creation failed.java.lang.NoClassDefFoundError:
org/objectweb/asm/CodeVisitor
org.zkoss.zk.ui.impl.UiEngineImpl execUpdate:598
GRAVE:
java.lang.ExceptionInInitializerError
at org.zkoss.zkplus.hibernate.HibernateUtil.initSessionFactory(HibernateUtil.ja
va:84)
at org.zkoss.zkplus.hibernate.HibernateUtil.getSessionFactory(HibernateUtil.jav
a:53)
[...]
It was working fine with ZK 2.3RC. I'm pretty sure I updated all the jars and I'm running the latest Hibernate (3.2).
I have no idea what the class org.objectweb.asm.CodeVisitor is.
Your help would be appreciated.
Thank You,
JM
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4217976
By: cyberjim84
I had to install the old asm.jar that I had from a previous ZK version to get this to work. The asm.jar bundled with ZK 2.3 is causing some problems.
My guess is that before ZK 2.3, it was using asm 1.x and now ZK 2.3 comes with asm 2.x. But, the class CodeVisitor doesn't exist in asm 2.x anymore.
Look at http://asm.objectweb.org/doc/tutorial-asm-2.0.html section "Changes in the ASM 2.0 API Since ASM 1.x", you will see "CodeVisitor into MethodVisitor".
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4218030
By: robbiecheng
please post this to bug-list,thx a lot
/robbie
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4219388
By: cyberjim84
Done, bug : 1685165
Thx.
Asked: 2007-03-20 23:16:16 +0800
Seen: 234 times
Last updated: Mar 21 '07