Getting this error:
java.lang.ClassCastException: org.hibernate.internal.SessionFactoryImpl cannot be cast to org.hibernate.service.internal.ConcurrentServiceBinding$Entry
at net.sf.gilead.util.IntrospectionHelper.searchMember(IntrospectionHelper.java:206)
at net.sf.gilead.util.IntrospectionHelper.searchMember(IntrospectionHelper.java:149)
at net.sf.gilead.core.hibernate.HibernateUtil.setSessionFactory(HibernateUtil.java:170)
code used:
public class ProjectServiceImpl extends PersistentRemoteService implements ProjectService{
/** * */ private static final long serialVersionUID = 1L;
/** * Constructor */ public ProjectServiceImpl() { try { HibernateUtil hibernateUtil = new HibernateUtil(); hibernateUtil.setSessionFactory( new Configuration().configure().buildSessionFactory());
PersistentBeanManager persistentBeanManager = new PersistentBeanManager(); // Error at this line persistentBeanManager.setPersistenceUtil(hibernateUtil); persistentBeanManager.setProxyStore(new StatelessProxyStore());
setBeanManager(persistentBeanManager); } catch (Exception e) { e.printStackTrace(); } }
}
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment