When I deploy my web application witch use JDBC Connection pool and JNDI with Netbeans, this both created automaticly in Glassfish.
When I use Maven to create the same application, the JDBC Connection pool and JNDI not create automaticly and show me this error:
Error
Grave: Exception while preparing the app : Invalid resource : moduleJNDI__pm
java.lang.RuntimeException: Invalid resource : moduleJNDI__pm
I know the solution of this error, I just create the JNDI manualy.
My Question is: is there any solution or configuration to create the JNDI automaticly in the server Glassfish like the ordinary application, or is that a problem with Maven.
N.B
I use the server: Glassfish 3.1.2.2, Netbeans 8.1
Thank you.