Hi All!! I am using the Sun Java Systems Application Server, I am learning to build EJBs; I have problems connection to the database when I am using the Entity Bean, when I log in to the Admin console an I try to ping to the database "DERBY" through the DerbyPool (in the connections Pool) I get the following error:
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: java.security.PrivilegedActionException : Error opening socket to server localhost on port 1527 with message : null
hi you need to start the database (derby database) so , do the folowing : in command window: execute : glassfish_home\bin\asadmin.bat now execute : start-database inside the asadmin command it will start the javaDB and then yu can ping your database .