error « DAO « JPA Q&A





1. Hibernate DAO error    coderanch.com

Hi all I have used hibernate3.jar and i wrote a DAO to persist data into the database, I wrote the following code and i am using a hibernate.properties file to set the hibernate.connection.url and register the database and set the dialect. I hibernate.properties is stored in WEB-INF classes. The code is as follows try{ System.out.println("************Hello World 1************"); config = new Configuration(); ...

2. Error with Generic DAO Sample App (Weblogic 10)    forum.hibernate.org

Additionally, if I comment out the finByExample() method the app deploys without any errors. I then wrote a facade to expose the UserDAO and a JSP to to list all users but get the following error: Code: javax.ejb.EJBTransactionRolledbackException: EJB Exception: ; nested exception is: java.lang.ClassCastException: java.lang.Class at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:791) at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:261) at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:183) ...