my dog learned polymorphism*
The moose likes JDBC and the fly likes Connecting to oracle through glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connecting to oracle through glassfish" Watch "Connecting to oracle through glassfish" New topic
Author

Connecting to oracle through glassfish

Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Butool,
Is classes12.jar in y our classpath?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
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))))
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Connecting to oracle through glassfish
 
Similar Threads
Connectin pool in GlassFish
Two-Phase commit using CMT on JBoss and Oracle XE
WA #1.....word association
JPA not working with EJB3
Which (libraries,other software) do you recommend for certification(serverside&clientside) security?