Please excuse my previous kludge question.,
Let me start with my first question.
My classes are contained and loaded in a jar from ./common/lib (also tried
./shared/lib). When
the my common class is instantiated by my web application, the
getContextClassLoader
reports WebAppClassLoader ..
From: scarlson [mailto:scarl...@i2s.com]
Subject: Re: Tomcat / Java JNI and Classloading issues
Please excuse my previous kludge question.
O.k. It was way too verbose and rambling for anyone to make much sense of.
My question is, should getContextClassLoader report WebAppClassLoader??
Yes
No. The contextClassLoader for any thread executing in a webapp will be
an instance of WebAppClassLoader. A WebAppClassLoader will delegate to
the common or shared classloader if it fails to find the requested class
in WEB-INF/lib or WEB-INF/classes.
So if the WebAppClassLoader delegates