javax.persistence.PersistenceException: Exception [TOPLINK-7060] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException Exception Description: Cannot acquire data source [java:comp/env/ds/banco]. Internal Exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

Oracle Community | luizbarros | 8 years 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

    [TOPLINK-7060] Exception Description: Cannot acquire data source

    Oracle Community | 8 years ago | luizbarros
    javax.persistence.PersistenceException: Exception [TOPLINK-7060] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException Exception Description: Cannot acquire data source [java:comp/env/ds/banco]. Internal Exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
  2. 0

    Errors encountered while running Java EE tutorial SRDemo in JDeveloper

    Oracle Community | 1 decade ago | 558293
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
  3. 0

    Error with toplink essential on weblogic 9.1

    Oracle Community | 10 years ago | 462750
    javax.faces.FacesException: #{loginutilisateur.valider}: javax.faces.el.EvaluationException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [PortailBaseDePilotagePU] for which predeploy method either had not called or had failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Toplink essentials Exception on Weblogic 9.1

    Oracle Community | 10 years ago | 666705
    javax.faces.FacesException: #{loginutilisateur.valider}: javax.faces.el.EvaluationException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [PortailBaseDePilotagePU] for which predeploy method either had not called or had failed
  6. 0

    Problems encountered while running Java EE tutorial in JDeveloper

    Oracle Community | 1 decade ago | 558293
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.persistence.PersistenceException

      Exception [TOPLINK-7060] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException Exception Description: Cannot acquire data source [java:comp/env/ds/banco]. Internal Exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

      at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy()
    2. oracle.toplink.essentials
      EntityManagerFactoryImpl.createEntityManager
      1. oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:239)
      2. oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
      3. oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
      4. oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
      5. oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
      5 frames
    3. br.com.reserva
      TestaEJB.main
      1. br.com.reserva.EJB.ReservaSessionBeanBean.findPassageiro(ReservaSessionBeanBean.java:102)
      2. br.com.reserva.teste.TestaEJB.main(TestaEJB.java:22)
      2 frames