After walking through the code, I see that SarClassLoader.init() adds search
URL's for m_baseDirectory/lib/*.jar and m_baseDirectory/lib/*.zip.
So, adding a lib/ directory in a .sar works:
MyServices.sar
blocks/
MyServer.bar
cornerstone.bar
lib/
classes12.zip
conf/
...
Any update on the FAQ-o-matic? It's still throwing SendFailedExceptions
upon registration...
-John
-----Original Message-----
From: John H. Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 11:19 AM
To: 'Avalon Development'
Subject: RE: JdbcDataSource driver loading (or CLASSPATH for .bar)
Aha! So I'm not insane. I'm using the 2001-03-26 build
(http://jakarta.apache.org/builds/jakarta-avalon/nightly/2001-03-26/).
A fix would be great...I'll look into fixing it, but I think this is beyond
my understanding of Avalon/Phoenix.
Thanks!
-John
-----Original Message-----
From: Peter Donald [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 1:59 AM
To: Avalon Development
Subject: Re: JdbcDataSource driver loading (or CLASSPATH for .bar)
At 01:00 27/3/01 -0800, John H. Lee wrote:
>
>I'm trying to get JdbcDataSource to work, but I get a
ClassNotFoundException
>upon:
>
> Class.forName("oracle.jdbc.driver.OracleDriver")
>
>I have tried placing the Oracle class archive (classes12.zip) in dist/lib,
>expanded in my .bar (next to my other classes), and in my shell CLASSPATH.
>
>Any clues? Thanks for your help.
Hmm - are you using the CVS version or the released version? If you are
using the CVS version I know whats causing this and can fix it tomorrow.
The problem is essentially that the classloader hierarchy was setup
incorrectly in first place ;(
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]