noble24 Posted March 4, 2015 Share Posted March 4, 2015 I created EJBQL connection data Adaptor. and added below jars to jasper studio classpath. 1. hibernate-entitymanager.jar 2. jar file containing entity classes and persistence.xml 3. other dependent jars. Below is the part of persistence.xml file content <persistence-unit name="test-ejb-entityPU" transaction-type="JTA"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>jdbc/testDS</jta-data-source> <properties> <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WeblogicTransactionManagerLookup" /> <property name="hibernate.hbm2ddl.auto" value="none" /> <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" /> </properties> </persistence-unit> When I click on test button in EJBQL connection data Adaptor window in Jasper Studio I get below Exception java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider Let me know if any one has any idea on this exception. Link to comment Share on other sites More sharing options...
t3_chris Posted March 12, 2015 Share Posted March 12, 2015 Hello!I have exactly the same problem and try to find a solution since hours.Could you finally solve the issue? Best Regards,Christian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now