This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Connection Pool - Connection to Database

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you ping is successful
 
reply
    Bookmark Topic Watch Topic
  • New Topic