• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection Pool - Connection to Database  RSS feed

 
Ali Aman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ali.amaan@gmail.com


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

Can anyone help? :roll:
contact is below

ali.amaan@gmail.com
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Ali Aman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you ping is successful
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!