Why can't I get this right? Is Tomcat crazy?
I have a set of classes (the package is called finep) and the oracle drivers (a file
named classes12.jar).
Well... if I place finep and the oracle drivers in the webapp/WEB-INF dir (finep in
/classes, classes12.jar in /lib) everything works
put classes12.jar in $CATALINA_HOME/common/lib and finep in
$CATALINA_HOME/common/classes.
Jack Li
-Original Message-
From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 8:22 AM
To: [EMAIL PROTECTED]
Subject: can't get context to see global classes/jars
in $CATALINA_HOME/common/lib and finep in
$CATALINA_HOME/common/classes.
Jack Li
-Original Message-
From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 8:22 AM
To: [EMAIL PROTECTED]
Subject: can't get context to see global classes/jars
Why can't I get this right
Is finep trying to load the Oracle driver using Class.forName(String
aClassName)?
You should be using
Thread.currentThread().getContextClassLoader().loadClass(String aClassName);
That will find your Oracle Driver across multiple classloaders. It is the
Java2 way of loading classes and
yes... I'm using Class.forName()... but now, I can get NO classes.. not even finep
classes are found... I tried placing them in ALL the four possibilities: unpacked in
/classes and /common/classes and packed as jar in /lib and /common/lib
it seems to me that the ClassLoader are completely
Just tryed it... didn't work... I switched the Class.forName() for the new method u
described... it gives me the exact problem... driver not found
the class that is trying to acess the oracle driver is called DAOFundos located in
$CATALINA_HOME/classes, the oracle driver (classes12.jar)