(With credit to Rajan)
The connection requires a native library which
provices the WebLogic native connection to Oracle.
Since the library was not in the path, the follwoing
error message was generated:
java.lang.UnsatisfiedLinkError with the message 'no
weblogicoci36 in
>java.library.path'.
So Rajan's solution was to add the directory
containing the WebLogic native library to the VM's
library path so that it could be located at run time.
Alternatively, you could add
<WEBLOGIC_INSTALL>\bin\OCI815_8 to the PATH of the
shell that you launch WebLoigic from.
//Nicholas
--- zahid rahman <[EMAIL PROTECTED]> wrote:
> Can you explain how you worked out your answer so
> that the gentleman
> who posted the error will be able to work it for
> himself therefore become
> self reliant.
>
> >From: Rajan Kashyap <[EMAIL PROTECTED]>
> >Reply-To: A mailing list for Enterprise JavaBeans
> development
> ><[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: problem connecting oracle with ejb
> >Date: Fri, 30 Mar 2001 14:41:27 +0530
> >
> >Pass following parameter
> >
> -Djava.library.path=<WEBLOGIC_INSTALL>\bin\OCI815_8
> >to your JVM in your startWeblogic at the place
> where your are running
> >weblogic.server
> >
> >Rajan
> >
> >-----Original Message-----
> >From: A mailing list for Enterprise JavaBeans
> development
> >[mailto:[EMAIL PROTECTED]]On Behalf Of
> Ramesh, Kesav
> >Sent: Friday, March 30, 2001 2:01 PM
> >To: [EMAIL PROTECTED]
> >Subject: problem connecting oracle with ejb
> >
> >
> >here is what the error i get when i try to connect
> to a oracle database
> >with
> >my ejb. can any one let me know what might be the
> problem .
> >
> > FYI i have set up the classpath in setenv.bat to
> the path of my oracle
> >driver
> >
> >
> >Thu Mar 30 14:03:16 GMT+05:30 2000:<I> <JDBC Pool>
> Creating connection pool
> >demo
> >Pool with:
> >{refreshMinutes=10, poolName=demoPool,
> loginDelaySecs=1, testTable=dual,
> >maxCapacity=10,
> props=user=etcd;password=etcd;server=INFOREP,
> >allowShrinking=true,
> driver=weblogic.jdbc.oci.Driver,
> >aclName=weblogic.jdbc.connectionPool.demoPool,
> capacityIncrement=2,
> >initialCapacity=4, url=jdbc:weblogic:oracle,
> shrinkPeriodMins=15}
> >Delaying 1 seconds before making a demoPool pool
> connection.
> >java.sql.SQLException: System.loadLibrary threw
> >java.lang.UnsatisfiedLinkError with the message 'no
> weblogicoci36 in
> >java.library.path'.
> > at
>
weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
> > at
>
>weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
> >EnvFactory.java:149)
> > at
>
>weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
> >EnvFactory.java:109)
> > at
>
>weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
> >ava, Compiled Code)
> > at
>
>weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
> >)
> > at
>
weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
> > at
>
>weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
> > at java.lang.reflect.Method.invoke(Native
> Method)
> > at
>
weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
> > at
>
weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
> >Compiled Code)
> > at
>
>weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
> >Thu Mar 30 14:03:17 GMT+05:30 2000:<I> <JDBC Pool>
> Sleeping in
> >createResource()
> >Thu Mar 30 14:03:18 GMT+05:30 2000:<E> <JDBC Pool>
> Failed to create
> >connection pool "demoPool"
> >weblogic.common.ResourceException:
> weblogic.common.ResourceException:
> >Could not create pool connection. The DBMS driver
> exception was:
> >java.sql.SQLException: System.loadLibrary threw
> >java.lang.UnsatisfiedLinkError with the message 'no
> weblogicoci36 in
> >java.library.path'.
> > at
>
weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
> > at
>
java.sql.DriverManager.getConnection(DriverManager.java:457)
> > at
>
java.sql.DriverManager.getConnection(DriverManager.java:137)
> > at
>
>weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
> >EnvFactory.java:172)
> > at
>
>weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
> >EnvFactory.java:109)
> > at
>
>weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
> >ava, Compiled Code)
> > at
>
>weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
> >)
> > at
>
weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
> > at
>
>weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
> > at java.lang.reflect.Method.invoke(Native
> Method)
> > at
>
weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
> > at
>
weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
> >Compiled Code)
> > at
>
>weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
> > at
>
>weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
> >EnvFactory.java:182)
> > at
>
>weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
> >EnvFactory.java:109)
> > at
>
>weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
> >ava, Compiled Code)
> > at
>
>weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
> >)
> > at
>
weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
> > at
>
>weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
> > at java.lang.reflect.Method.invoke(Native
> Method)
> > at
>
weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
> > at
>
weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
> >Compiled Code)
> > at
>
>weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
> > at
>
>weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
> >EnvFactory.java:125)
> > at
>
>weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
> >ava, Compiled Code)
> > at
>
>weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
> >)
> > at
>
weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
> >Compiled Code)
> > at
>
>weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
> > at
>
>weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
> > at java.lang.reflect.Method.invoke(Native
> Method)
> > at
>
weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
>
=== message truncated ===
=====
Nicholas Whitehead
Home: (973) 377 9335
Cell: (973) 615 9646
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".