Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2012-08-10 07:48:03 +0000
committerJan Bartel2012-08-10 07:48:03 +0000
commit6dbef17e4404389edadce59074ab02d15b97b65a (patch)
tree81b6c6f857b8bf3d8f841b83981a45490e120ce0
parent0b4d2e6a0fe6b37363ee0caf7f84b420b7c74cc2 (diff)
downloadorg.eclipse.jetty.project-6dbef17e4404389edadce59074ab02d15b97b65a.tar.gz
org.eclipse.jetty.project-6dbef17e4404389edadce59074ab02d15b97b65a.tar.xz
org.eclipse.jetty.project-6dbef17e4404389edadce59074ab02d15b97b65a.zip
377055 Prevent webapp classloader leaks
Use the passed in classloader as an arg to Class.forName, even though the classloader is set in AbstractPreventer as the context classloader.
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java2
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java2
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java
index 5d8791d5d4..9600fbbd78 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/Java2DLeakPreventer.java
@@ -34,7 +34,7 @@ public class Java2DLeakPreventer extends AbstractLeakPreventer
{
try
{
- Class.forName("sun.java2d.Disposer");
+ Class.forName("sun.java2d.Disposer", true, loader);
}
catch (ClassNotFoundException e)
{
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java
index 9bebbd1781..7915d14395 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LDAPLeakPreventer.java
@@ -36,7 +36,7 @@ public class LDAPLeakPreventer extends AbstractLeakPreventer
{
try
{
- Class.forName("com.sun.jndi.LdapPoolManager");
+ Class.forName("com.sun.jndi.LdapPoolManager", true, loader);
}
catch (ClassNotFoundException e)
{
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java
index 0f032dbebe..7a1ffdbff4 100644
--- a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java
+++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/LoginConfigurationLeakPreventer.java
@@ -34,7 +34,7 @@ public class LoginConfigurationLeakPreventer extends AbstractLeakPreventer
{
try
{
- Class.forName("javax.security.auth.login.Configuration");
+ Class.forName("javax.security.auth.login.Configuration", true, loader);
}
catch (ClassNotFoundException e)
{

Back to the top