It is working now. It had to do with either:
1) Deploying to GlassFish that is configured to have two virtual servers, so it gets started twice. Even if I pick a virtual server for the application, when I redeploy from NetBeans it gets deployed to both virtual servers then I hvae to use the admin program and do a restart before being able to use my application.
2) The use of directory deploy. I doubt this was the cause but I disabled it along with choosing which virtual server to use for the deployed app.
Ryan
[Message sent by forum member 'rdelaplante' (ryan_at_ijws.com)]
http://forums.java.net/jive/thread.jspa?messageID=363929