0 Replies Latest reply on Aug 14, 2010 12:32 AM by jeffy chen

    Caused by: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrapperDataSource cannot be cast to javax.persistence.EntityManagerFactory

    jeffy chen Newbie

      Caused by: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrapperDataSource cannot be cast to javax.persistence.EntityManagerFactory


      hi all,


      I am new user for SEAM framework.


      I meet the following problem:


      Caused by: java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrapperDataSource cannot be cast to javax.persistence.EntityManagerFactory


      The following is my environment


      IDE: JBOSS TOOLS
      JDK: 1.6.003
      JBOSS: 5.1.0GA
      SEAM: 2.2.0GA


      Step 1: new seam project
      Step 2: new seam generate entity
      Step 3: my jndi name: java:/demoDatasource
      Step 4: according https://jira.jboss.org/browse/JBSEAM-3821, I change my configuraions. Including:
        - /WebContent/WEB-INF/components.xml
        - /src/main/persistence.xml
         
      someone give me suggestions to solve the problem.