Solved

Unable to create weblogic connection pool

Posted on 2004-08-08
10
747 Views
Last Modified: 2008-02-01
Hi,
I'm getting the following error while creating weblogic connection pool.
I'm using weblogic 6.1 on Solaris and Oracle 9i database. Please help me out for resolving this.

Regards
Pavan

weblogic.common.ConnectDeadException: failed to make new pool connection: weblogic.common.ResourceException:
 Could not load 'oracle.jdbc.driver.OracleDriver

 If this is a type-4 JDBC driver, it could occur if the JDBC
 driver is not in the system CLASSPATH.

 If this is a type-2 JDBC driver, it may also indicate that
 the Driver native layers(DBMS client lib or driver DLL)
 have not been installed properly on your system
 or in your PATH environment variable.
 This is most likely caused by one of the following:
 1. The native layer SO, SL, or DLL could not be found.
 2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
 3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
0
Comment
Question by:pavannaidu
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 92

Expert Comment

by:objects
ID: 11750397
souns like the oracle driver classes are not available to the wl classloader.
where have you put the driver classes?
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11750405
Looks like you've done some reasonable amount of research before posting it. That looks good. Can you make sure if the driver-class is in the class-path (Weblogic's class-path)?
0
 
LVL 35

Expert Comment

by:girionis
ID: 11750407
Are you creating the connection pool programmatically? AFAIK WebLogic comes with its own set of drivers, even for Oracle (although this is true for 8.1, not sure about 6.1 version) why don't use use them? Also can you post the output of this:

echo $CLASSPATH
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:pavannaidu
ID: 11750814
Guys.. problme fixed and its working now for me. thanX for the comments given..

Changes what i did

1.we need to specify the complete info where ever u r giving DB URL. I don't know the reason for this but with Oracle 9i we have to specify as follows.

URL="jdbc:oracle:oci:@(description=(address=(host=202.60.220.22)(protocol=tcp)(port=1523))(connect_data=(SERVICE_NAME=PAVAN)))

Regards
Pavan
0
 
LVL 35

Expert Comment

by:girionis
ID: 11750931
Please ask a quesiton to community support http://www.experts-exchange.com/Community_Support/ for zero points to PAQ the question and refund the points back to you.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11751816
What did you have in the URL before?
0
 

Author Comment

by:pavannaidu
ID: 11759508
Mayank Shridhar

The previous URL is
URL="jdbc:oracle:thin:@202.60.220.22:1523:PAVAN

and one more thing is, following are the some of the details about the versions of software i'm using.

1.Oracle 9.2.5 (64 bit version)
2.JVM 32 bit version on Solaris 5.8

As i'm using 32 bit JVM, even if i have Oracle 64 bit version, if i'm connecting using JDBC driver i should used 32 bit oracle libraries only... meaning i should have lib32 in my LD_LIBRARY_PATH, not lib.

LD_LIBRARY_PATH=$ORACLE_HOME/lib32

Regards
Pavan
0
 
LVL 35

Expert Comment

by:girionis
ID: 11759879
> A request has been made to close this question; if there are no objections within 4 days, the request will be granted.

Fine by me :)
0
 

Accepted Solution

by:
RomMod earned 0 total points
ID: 11796969
The question has been PAQ'd and the 100 points have been refunded.
RomMod
Community Support Moderator
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse package explorer vs project explorer view 2 121
use lov values 2 49
Error in @AspectJ Based AOP with Spring 2 13
how to install java on RHEL image on EC2 4 26
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now