File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Connection Pool between Oracle10g Express Edition and Glassfish V3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Connection Pool between Oracle10g Express Edition and Glassfish V3" Watch "Connection Pool between Oracle10g Express Edition and Glassfish V3" New topic
Author

Connection Pool between Oracle10g Express Edition and Glassfish V3

Gaurav Dighe
Greenhorn

Joined: Jun 25, 2009
Posts: 21

Hi,
I am developing application, where i am already connected with Oracle 10G Express Edition using Oracle Thin Driver.

Now I am trying to create the connection pool in glassfish v3.
When I ping my connection pool I am getting Error: Wrong Class Path

Following are the steps i took in Glassfish:

1. Create new connection pool
2. i named it as: AffablebeanPool
3. Database vendor name: Oracle
4. Resource Type: javax.sql.DataSource
5. DataSource Class: oracle.jdbc.pool.OracleDataSource --------------it comes automatically


My Oracle 10G Express Edition Attributes are as follows:
Database Name: XE

host: localhost
port number: 1521
DatabaseURL: jdbcracle:thin:@localhost:1521:XE
UserId: affablebean
password: admin


I searched in Glassfish v3 Administration guide, but only found it for Oracle 11.

Please assist me with right steps.

It woul be helpful, if snapshots with Glassfishv3 is also posted here


Thanks & Regards,
Gaurav Dighe
adil qureshi
Ranch Hand

Joined: Jul 11, 2008
Posts: 48
I think jar file for driver is not in the lib folder of glassfish . Just do that and restart see if it works.


SCJP 1.5,SCWCD 1.5
Gaurav Dighe
Greenhorn

Joined: Jun 25, 2009
Posts: 21

hi,
thnx. but could you tell me the importance of adding jar files in glassfish.
o
adil qureshi
Ranch Hand

Joined: Jul 11, 2008
Posts: 48
actually .... the implementation classes might not be present so you need to have the jar files in the classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection Pool between Oracle10g Express Edition and Glassfish V3