Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

TomcatInstrumentableClassLoader causes classpath to break #36

Closed
cjntaylor opened this issue Oct 30, 2012 · 3 comments
Closed

TomcatInstrumentableClassLoader causes classpath to break #36

cjntaylor opened this issue Oct 30, 2012 · 3 comments
Assignees

Comments

@cjntaylor
Copy link

If i use a basic context.xml, defined as follows:

<?xml version="1.0" encoding="UTF-8"?>
<Context>
    <Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader" />
</Context>

The plugin no longer works, reporting that it cannot find org.apache.jasper.servlet.JspServlet I've added the dependency "org.springframework:spring-instrument-tomcat:3.1.2.RELEASE" to the tomcat configuration in my build.gradle, and as far as I can tell, embedded tomcat is finding this class. However, something seems to be broken with classpath delegation, because it can't find the other classes defined by the tomcat configuration.

Any ideas?

@bmuschko
Copy link
Owner

I guess this class does something with the way classloading works? I found this post with a similar issue. Apparently, they fixed it by setting useSystemClassLoaderAsParent to false. However, this method only seems to exist in Tomcat 5.x. Does this post help you in any kind of form?

  • What version of Tomcat are you using?
  • Do you have a sample project on GitHub that I could try to reproduce the issue with?

@ghost ghost assigned bmuschko Nov 27, 2012
@bmuschko
Copy link
Owner

bmuschko commented Mar 8, 2014

You never responded to this issue. Are you still interested in this? If not, I am going to close the issue.

@bmuschko
Copy link
Owner

Same issue as #83. Closing this one as it is a duplicated and you never responded.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants