If you have server-side components that require a DB connection, you need to set up the connection pool. Netbeans does this automatically when you run it inside Netbeans, but you have to do it manually in the stand-alone world.
[Message sent by forum member 'trekkyleaper' (trekkyleaper)]
http://forums.java.net/jive/thread.jspa?messageID=286924