javax.naming.NameNotFoundException

Unable to resolve 'database'. Resolved ''; remaining name 'database'

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2126

  • via Oracle Community by Michael OBrien, 1 year ago
    Unable to resolve 'database'. Resolved ''; remaining name 'database'
  • via Oracle Community by 843829, 1 year ago
    Unable to resolve HelloHome. Resolved: '' Un resolved:'HelloHome' ; remaining name ''
  • via hivmr.com by Unknown author, 1 year ago
    Unable to resolve Name. Resolved: '' Unres olved:'Name' ; remaining name ''
  • Stack trace

    • javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database' at org.eclipse.persistence.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:497) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:109) at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162) at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:330) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:293) at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:418) at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:216) at org.eclipse.persistence.sessions.server.ExternalConnectionPool.startUp(ExternalConnectionPool.java:146) at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:484) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:633) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208) at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.