javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database' javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException Exception Description: Cannot acquire data source [database]. Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database'

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 Michael OBrien, 1 year ago
Unable to resolve 'database'. Resolved ''; remaining name 'database' javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException
via hivmr.com by Unknown author, 1 year ago
Unable to resolve 'OATS_common_DS'. Resolved ''; remaining name 'OATS_common_DS'
via Oracle Community by kroberts5683, 1 year ago
While trying to lookup 'jdbc.OraSDPMDataSource' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/OraSDPMDataSource'
via hivmr.com by Unknown author, 1 year ago
While trying to look up /app/jdbc/jdbc/livreconDS in /app/ejb/Livre_ejb_jpa-Livre-ejb#livrefacad.; remaining name '/app/jdbc/jdbc/livreconDS'
via hivmr.com by Unknown author, 1 year ago
While trying to look up /app/jdbc/jdbc/livreconDS in /app/ejb/Livre_ejb_jpa-Livre-ejb#livrefacad.; remaining name '/app/jdbc/jdbc/livreconDS'
via oracle.com by Unknown author, 2 years ago
While trying to look up /app/jdbc/jdbc/livreconDS in /app/ejb/Livre_ejb_jpa-Livre-ejb#livrefacad.; remaining name '/app/jdbc/jdbc/livreconDS'
javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database' javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException Exception Description: Cannot acquire data source [database]. Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database'
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:517)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)
at com.vision.cloud.jpa.VisitorServlet.readData(VisitorServlet.java:238)
at com.vision.cloud.jpa.VisitorServlet.processRequest(VisitorServlet.java:141)
at com.vision.cloud.jpa.VisitorServlet.doGet(VisitorServlet.java:355)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:165)
at weblogic.servlet.security.internal.WebGateRedirectFilter.doFilter(WebGateRedirectFilter.java:178)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

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.