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

Stack Overflow | iKilany | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 7 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