Solved

Unable to create weblogic connection pool

Posted on 2004-08-08
10
761 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

685 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