Web Application with Maven not create connection pool and JNDI automaticly in Glassfish
<p>When I deploy my web application witch use <strong>JDBC Connection pool</strong> and <strong>JNDI</strong> with <strong>Netbeans</strong>, this both created automaticly in <strong>Glassfish</strong>.</p>

<p>When I use <strong>Maven</strong> to create the same application, the JDBC Connection pool and JNDI <strong>not create automaticly</strong> and show me this error:</p>

<p><strong>Error</strong></p>

<pre><code>Grave: Exception while preparing the app : Invalid resource : moduleJNDI__pm
java.lang.RuntimeException: Invalid resource : moduleJNDI__pm
</code></pre>

<p>I know the solution of this error, I just create the <strong>JNDI manualy</strong>.</p>

<p>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.</p>

<p><strong>N.B</strong></p>

<p>I use the server: <strong>Glassfish 3.1.2.2</strong>, <strong>Netbeans 8.1</strong></p>

<p>Thank you.</p>