When GlassFish runs its JavaDB, NetBeans not able to connect to its databases.
Start GF database from command line
Try to connect to a JavaDB database - failure - port in use?
Try to start JavaDB - failure - port in use.
*** This bug has been marked as a duplicate of bug 178598 ***