You don't have to copy the jar into the lib directory.  You can also add
a new <library> tag to the application.xml config file.  This is fairly well
documented in the mailist list archive as well as the config files themself.
For example, here's a snippet of my application.xml config that utilizes
Oracle:

<orion-application>
...
        <!-- Path to the libraries that are installed on this server.
        These will accesible for the servlets, EJBs etc -->
        <library path="../lib" />
        <library
path="/usr/local/oracle/8i/u01/app/oracle/product/8.1.6/jdbc/lib/classes12.z
ip" />
...
</orion-application>

    Note that the xml comment is part of the default config.

--
Jason Rimmer              "If it isn't true, it should be,
[EMAIL PROTECTED]           and if we could afford it, it would be."


----- Original Message -----
From: "Danut Prisacaru" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 11:50 AM
Subject: Re: How to configure Orion to use Oracle


> At 09:20 AM 1/17/2001 -0700, Gary Shea wrote:
> >I believe you will need to copy the oracle jar classes111.zip or (if you
> >have it) classes12.zip to the orion lib dir.  That at least is how I
> >did it.
>
> You are right Gary. It just happen that I figured the solution few minutes
> ago by seeing that the "hsql.jar" file is under the Lib folder too.
>
> >I'm not sure if you can use the CLASSPATH to accomplish the
> >same thing, but frankly I'm not clear on how orion decides where to find
> >things!
>
> I agree. Why do I have to copy the file(s) there instead of using the
> CLASSPATH? Shouldn't I be able to point to where Oracle installed the
> driver files? Do I need to have two copies of the driver files on my
machine?
>
> Maybe this is an idea for a future improvement for Orion(?)
>
> >         Gary
>
> Danut
>
>
>
> >Danut Prisacaru ([EMAIL PROTECTED]) wrote:
> > > I am trying to use Oracle database with Orion. In the
"data-source.xml"
> > > file I have added:
> > >
> > >     <data-source
> > >        class="com.evermind.sql.DriverManagerDataSource"
> > >        name="Oracle"
> > >        schema="database-schemas/oracle.xml"
> > >        location="jdbc/OracleCoreDS"
> > >        xa-location="jdbc/xa/OracleXADS"
> > >        ejb-location="jdbc/Myapollo"
> > >        connection-driver="oracle.jdbc.driver.OracleDriver"
> > >        username="system"
> > >        password="manager"
> > >        url="jdbc:oracle:oci8:@APOLLO"
> > >        inactivity-timeout="30"
> > >     />
> > >
> > > I have set the correct class path to the Oracle class files
> > >
> >
CLASSPATH=c:\java\orion\jrb.jar;c:\java\orion\jndi.jar;.;c:\java\orion\orion
.jar;C:\Java\Oracle;.;C:\Java\orion\orion.jar;C:\Java\orion\ejb.jar;C:\Java\
orion\jndi.jar;C:\Java\j2sdkee1.2.1\lib\j2ee.jar;
> > >
> > > but when I launch Orion server I get the following message:
> > >
> > > C:\Java\orion>java -jar orion.jar
> > > Error initializing server: DriverManagerDataSource driver
> > > 'oracle.jdbc.driver.OracleDriver' not found
> > >
> > > Thank you,
> > > Danut
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > >
> > >
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>


Reply via email to