Jump to content
Changes to the Jaspersoft community edition download ×

java.lang.ClassCastException, when creating EJBQL connection data Adaptor in jasper studio version 6.0.1


noble24

Recommended Posts

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

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...