Closed GoogleCodeExporter closed 8 years ago
Are classes loaded by the shared loader available by the common loader? In this
case can you try removing spymemcached from tomcat/lib?
Is there some documentation on the shared classloader btw? It's not documented
in http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html (from my
memory the shared loader existed in tomcat 4/5 or so).
Original comment by martin.grotzke
on 25 Nov 2013 at 11:37
Common loader does not have access to classes loaded by shared loader.
Shared loader is from legacy tomcat 5.x,and we are using this in tomcat 7 as of
now.
You can refer to documentation on shared.loader at following link
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
Original comment by VISH.THE...@gmail.com
on 26 Nov 2013 at 6:35
Ok. An option would be to create a shaded msm jar (using the
maven-shade-plugin) that bundles spymemcached (with relocated, renamed
spymemcached classes).
Original comment by martin.grotzke
on 26 Nov 2013 at 2:21
Maven-shade could have been used but we got this working by overriding
resolveClass of ObjectInputStream and using current thread classloader. Thanks
for your help and suggestions Martin.
Original comment by VISH.THE...@gmail.com
on 27 Nov 2013 at 8:50
Great you solved it!
Original comment by martin.grotzke
on 27 Nov 2013 at 10:20
Original issue reported on code.google.com by
VISH.THE...@gmail.com
on 25 Nov 2013 at 1:37