java.lang.ClassCastException: weblogic.jndi.internal.WLEventContextImpl cannot be cast to javax.sql.DataSource

Stack Overflow | iKilany | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    EJB Weblogic JPA java.lang.ClassCastException: weblogic.jndi.internal.WLEventContextImpl cannot be cast to javax.sql.DataSource

    Stack Overflow | 6 months ago | iKilany
    java.lang.ClassCastException: weblogic.jndi.internal.WLEventContextImpl cannot be cast to javax.sql.DataSource

    Root Cause Analysis

    1. java.lang.ClassCastException

      weblogic.jndi.internal.WLEventContextImpl cannot be cast to javax.sql.DataSource

      at weblogic.persistence.BasePersistenceUnitInfo.lookUpDataSource()
    2. weblogic.persistence
      AbstractPersistenceUnitRegistry.storeDescriptors
      1. weblogic.persistence.BasePersistenceUnitInfo.lookUpDataSource(BasePersistenceUnitInfo.java:308)
      2. weblogic.persistence.BasePersistenceUnitInfo.lookUpDataSources(BasePersistenceUnitInfo.java:298)
      3. weblogic.persistence.BasePersistenceUnitInfo.init(BasePersistenceUnitInfo.java:105)
      4. weblogic.persistence.BaseJPAIntegrationProvider.createPersistenceUnitInfo(BaseJPAIntegrationProvider.java:53)
      5. weblogic.persistence.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:420)
      5 frames