java.lang.RuntimeException: Invalid resource : jdbc/zoodatabase__pm Atcom.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:593) Atcom.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:517) atorg.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63) atorg.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71)

Coderanch | Stanley Akudinobi | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GlassFish Users - Invalid Resource Exception

    nabble.com | 10 months ago
    java.lang.RuntimeException: Invalid resource : jdbc/lemmdb__pm at com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:539) at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:468) at org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63) at org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71) at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154) at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119)
  2. 0

    [GLASSFISH-15430] Invalid Resource jdbc/resname__pm - Java.net JIRA

    java.net | 1 year ago
    com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm
  3. 0

    [GLASSFISH-15430] Invalid Resource jdbc/resname__pm - Java.net JIRA

    java.net | 10 months ago
    com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Am using Embedded version of Glassfish to bootstrap application. Command to create the resource succeeds without any failures. However when the application tries to use the resource it outputs the following: SEVERE: Exception while preparing the app : Invalid resource : jdbc/customname__pm com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.validateResource(ConnectorResourceAdminServiceImpl.java:272) at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.setResourceInfo(ConnectorResourceAdminServiceImpl.java:253) at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl.lookupDataSourceInDAS(ConnectorResourceAdminServiceImpl.java:243) at com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:536) at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:467) at org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63) at org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71) at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154) at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119) at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:202) at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:475) at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:209) at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:162) Note: A similar bug has been marked as resolved http://java.net/jira/browse/GLASSFISH-13672 However I do not have any glassfish-resources.xml which could be used to resolve the issue. It was mentioned in this bug report that the user also found the bug without this file but no extra comments were made on how to resolve.

    Java.net JIRA | 6 years ago | aloleary
    com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm
  6. 0

    GlassFish Users - app scoped resources

    nabble.com | 1 year ago
    java.lang.RuntimeException: Invalid resource : testingPU__pm at com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:540) at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:469) at org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63) at org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71) at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154) at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119) at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:214) at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:483) at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:221)

    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. com.sun.appserv.connectors.internal.api.ConnectorRuntimeException

      Invalid resource : jdbc/zoodatabase__pm SEVERE: Exception while preparing the app : Invalid resource : jdbc/zoodatabase__pm com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/zoodatabase__pm

      at org.glassfish.jdbcruntime.service.JdbcDataSource.validateResource()
    2. JDBC Runtime Module
      JdbcDataSource.setResourceInfo
      1. org.glassfish.jdbcruntime.service.JdbcDataSource.validateResource(JdbcDataSource.java:81)
      2. org.glassfish.jdbcruntime.service.JdbcDataSource.setResourceInfo(JdbcDataSource.java:62)
      2 frames