-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I'm new to ZK and Hibernate tools.
I've built some zk interfaces with success, but now I'm trying to use ZK with Hibernate and Hibernate tools with no success at all.
I've searched on the internet but the information is really bad and not recent, can some of you tell me the right direction?
I need to start a new project, but I really need to integrate zk with a good ORM, hibernate, jpa or ibatis.
Thanks
Hi mguilherme,
Can your hibernate part work alone?
I'd suggest you try to build a minimal, experimental project with hibernate first, and then move to integrating hibernate with ZK later.
Here is an example on hibernate that gave me some good experience.
Regards,
Simon
hi,
thanks for the answers, I'm now running ZK + hibernate (with annotations) without spring. My next step is to integrate the project in JBoss Hibernate tools.
If anyone could accomplish this, please let me know.
Hello,
I'm new to ZK and Hibernate tools.
I had started to build application using ZKOSS as my front end and Hibernate ORM as backend tool.
But when I deploy my project I got these types of errorr..
Don't know why this is Happening ...
Plz.... Help me to get out of this problem
javax.servlet.ServletException: Servlet execution threw an exception
java.lang.ExceptionInInitializerError
org.zkoss.zkplus.hibernate.HibernateUtil.initSessionFactory(HibernateUtil.java:125)
org.zkoss.zkplus.hibernate.HibernateUtil.initSessionFactory(HibernateUtil.java:108)
org.zkoss.zkplus.hibernate.HibernateUtil.getSessionFactory(HibernateUtil.java:68)
org.zkoss.zkplus.hibernate.HibernateUtil.currentSession(HibernateUtil.java:75)
org.zkoss.zkplus.hibernate.OpenSessionInViewListener.init(OpenSessionInViewListener.java:54)
org.zkoss.zk.ui.util.Configuration.invokeExecutionInits(Configuration.java:812)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:346)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:299)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:229)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:165)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
org.zkoss.zkplus.hibernate.HibernateUtil.java5Factory(HibernateUtil.java:135)
org.zkoss.zkplus.hibernate.HibernateUtil.initSessionFactory(HibernateUtil.java:117)
org.zkoss.zkplus.hibernate.HibernateUtil.initSessionFactory(HibernateUtil.java:108)
org.zkoss.zkplus.hibernate.HibernateUtil.getSessionFactory(HibernateUtil.java:68)
org.zkoss.zkplus.hibernate.HibernateUtil.currentSession(HibernateUtil.java:75)
org.zkoss.zkplus.hibernate.OpenSessionInViewListener.init(OpenSessionInViewListener.java:54)
org.zkoss.zk.ui.util.Configuration.invokeExecutionInits(Configuration.java:812)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:346)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:299)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:229)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:165)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Thanks in advance.
Asked: 2010-05-17 06:16:51 +0800
Seen: 875 times
Last updated: Sep 06 '10