Technologies that are used in my application requires classloader with
'addTransformer(ClassFileTransformer)' method and claims that Geronimo's
default org.apache.geronimo.kernel.config.MultiParentClassLoader , doesn't
have it. So I need to setup my special class loader for my application
(war). I use Geronimo with Tomcat. I was told that specifying classloader is
a very simple process on Tomcat. Following example shows how to do it (The
file is named "context.xml"):
<Context path="/myWebApp" docBase="/my/webApp/location">
<Loader
loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/>
</Context>
The alternative for Geronimo is using "geronimo-tomcat.xml" in deployment
plan (I read about it from
http://www.ibm.com/developerworks/java/library/os-ag-tomcat/ this doc ). The
problem is that there isn't a classloader property specified.
So my question is: How can I change default classloader with a special one
for my web application deployed on Geronimo?
--
View this message in context:
http://apache-geronimo.328035.n3.nabble.com/How-to-specify-classloader-for-web-application-deployed-on-Geronimo-tp853251p853251.html
Sent from the Users mailing list archive at Nabble.com.