-1

I have been trying to create my first RESTful execrcise using. But I am unable to deploy module due to error "com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/playerDB__pm"

I checked and I have JNDI, daata source created.
enter image description here

Unlike specified in link. I am using:
-Netbeans 8.0.3, Java EE 7, GlassFish Server 4.

Also I have checked GlassFish is running fine.

Edit 1:
I have re-checked my 'Services' tab, and I could not find jdbc/__playedDB ,even though I have created it.

enter image description here

sql_dummy
  • 715
  • 8
  • 23
  • I think this https://stackoverflow.com/questions/13407505/java-jpa-glassfish-invalid-resource-jdbc-default-pm will help you – Ahmad Al-Kurdi Dec 11 '17 at 09:55
  • Thanks, this seems little related. But as I just updated I am completely unable to find my pool or resource. (I have clearly created it, but they seem missing). – sql_dummy Dec 11 '17 at 10:01

1 Answers1

0

Its a bug, the JDBC resource file is not being created (atleast with versions I am using: GlassFish 4.1, Netbeans 8.0.2). Using GlassFish manually create.

There could still be different error untill you set following connectins: database(data source) <- connection pool <- JNDI.

sql_dummy
  • 715
  • 8
  • 23