Exception shows that your application was loaded by Tomcat's own WebappClassLoader
, rather than Spring's TomcatInstrumentableClassLoader
- so your Tomcat configuration might have failed. Maybe you should try putting loaderClass
attribute under the <Loader>
element like this:
<Context path="/your-application">
<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/>
</Context>
as explained here.