Hi Jean Francois, Hi Jan,
I posted a recap on the other thread (
http://forums.java.net/jive/thread.jspa?threadID=23543&tstart=0) [stupid me - I had accidentally created two threads for the same issue].
Jan, you're suggestion with regard to the way the default Web module is handled in Glassfish 1 and Glassfish 2 seems to have been right. I cannot reproduce the error with Glassfish 2.
To reproduce the issue with Glassfish 1/Sun App Server 9.0, do this:
1. deploy web app (i.e. context is at /myapp)
2. set up db resources in the application server
3. set default web module for the virtual server to the web app
4. redeploy web app
5. Go to
http://localhost/myapp - you'll notice that the database connection can be used - the NPE doesn't appear.
6. Go to
http://localhost - test the database - the NPE will show up.
Hope that makes sense.
Dailysun
[Message sent by forum member 'dailysun' (dailysun)]
http://forums.java.net/jive/thread.jspa?messageID=205586