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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by luizbarros, 1 year ago
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
via Oracle Community by mayankmishra, 1 year ago
Exception [TOPLINK-28013] (Oracle TopLink Essentials - 9.1 (Build b29)): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [JPATestPU] for which predeploy method either had not called or had failed
via Oracle Community by 641083, 1 year ago
Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [Model-HR] for which predeploy method either had not called or had failed
via Oracle Community by 558293, 1 year ago
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
via Oracle Community by 558293, 1 year ago
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
via Oracle Community by 462750, 1 year ago
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
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(EntityManagerSetupImpl.java:239)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
at br.com.reserva.EJB.ReservaSessionBeanBean.findPassageiro(ReservaSessionBeanBean.java:102)
at br.com.reserva.teste.TestaEJB.main(TestaEJB.java:22)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.