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)


Solutions on the web8

Solution icon of coderanch
via Coderanch by Stanley Akudinobi, 9 months ago
Invalid resource : jdbc/zoodatabase__pm Atcom.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:593) Atcom.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:517

Solution icon of web
javax.naming.NamingException: Lookup failed for 'jdbc/chapter2' in SerialContext [Root exception is javax.naming.NameNotFoundException: chapter2 not found]

Solution icon of coderanch
via Coderanch by Himai Minh, 9 months ago
javax.naming.NamingException: Lookup failed for 'jdbc/chapter2' in SerialContext [Root exception is javax.naming.NameNotFoundException: chapter2 not found]

Solution icon of web
javax.naming.NamingException: Lookup failed for 'jdbc/chapter2' in SerialContext [Root exception is javax.naming.NameNotFoundException: chapter2 not found]

Solution icon of web
javax.naming.NamingException: Lookup failed for 'jdbc/chapter2' in SerialContext [Root exception is javax.naming.NameNotFoundException: chapter2 not found]

Solution icon of web
javax.naming.NamingException: Lookup failed for 'jdbc/chapter2' in SerialContext [Root exception is javax.naming.NameNotFoundException: chapter2 not found]

Solution icon of oraclecommunity
via Oracle Community by fabiomedeirosf, 1 year ago
javax.naming.NamingException: Lookup failed for 'java:app/jdbc/estudo' in SerialContext [Root exception is javax.naming.NamingException: Invocation exception: Got null ComponentInvocation ]

Solution icon of oraclecommunity
via Oracle Community by fabiomedeirosf, 1 year ago
javax.naming.NamingException: Lookup failed for 'java:app/jdbc/estudo' in SerialContext [Root exception is javax.naming.NamingException: Invocation exception: Got null ComponentInvocation ]

Stack trace

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)
	at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108)
	at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:142)
	at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:107)
Caused by: 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(JdbcDataSource.java:81)
	at org.glassfish.jdbcruntime.service.JdbcDataSource.setResourceInfo(JdbcDataSource.java:62)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 more bugmates