Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting to oracle through glassfish

 
Bushra Binte
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,while trying to create a connection pool for oracle in glassfish version 2,m getting the below error"Class name is wrong or classpath is not set for : oracle.jdbc.xa.client.OracleXADataSource ".Please suggest as how to resolve.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Butool,
Is classes12.jar in y our classpath?
 
Bushra Binte
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yep.I have added classes12.jar at the following location:
domains/<domainname>/lib/ext.Now am able to connect and able to ping from admin console of glassfish server.But when i use the connection pool in the ejb application,i get this error:
java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=169870336)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(ADDRESS=(PROTOCOL=TCP)(HOST=abcd)(PORT=1000))'))(ERROR=(CODE=305)(EMFI=1))))
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic