global resources (better explained)

2002-05-29 Thread Christian J. Dechery

I have a set of beans, the package names are finep and christian.
 
both are in $CATALINA_HOME/classes
 
calls to these classes occur normally... the problem is, that among these classes, 
some of them makes calls to the oracle driver... the oracle drivers (classes12.jar) 
are in $CATALINA_HOME/lib
 
like this it's not working... but if I take classes12.jar and place it in 
mywebapp/WEB-INF/lib, everything works fine...
 
does this behavious say something? I can't figure it out... I don't want to have this 
file (classes12.jar, which is kinda big) copied to ALL my webapps... 
 
thanks again
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




Re: global resources (better explained)

2002-05-29 Thread Phillip Morelock

pay attention to the order of classloaders -- i would jar your classes and
put them with the oracle classes, to ensure they're loaded in the same
space.  I have said this till I'm blue in the face, but so many problems
mysteriously go away when you use jars instead of just throwing class
files in xxx/classes.

cheers
fillup


On 5/29/02 12:20 PM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 I have a set of beans, the package names are finep and christian.
 
 both are in $CATALINA_HOME/classes
 
 calls to these classes occur normally... the problem is, that among these
 classes, some of them makes calls to the oracle driver... the oracle drivers
 (classes12.jar) are in $CATALINA_HOME/lib
 
 like this it's not working... but if I take classes12.jar and place it in
 mywebapp/WEB-INF/lib, everything works fine...
 
 does this behavious say something? I can't figure it out... I don't want to
 have this file (classes12.jar, which is kinda big) copied to ALL my webapps...
 
 thanks again
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]