Author: remy.maucherat(a)jboss.com
Date: 2012-05-25 10:58:11 -0400 (Fri, 25 May 2012)
New Revision: 2037
Modified:
branches/7.0.x/java/org/apache/catalina/connector/CoyoteAdapter.java
branches/7.0.x/webapps/docs/changelog.xml
Log:
JBPAPP-9126: Set the context classloader as soon as possible on newly created threads
Modified: branches/7.0.x/java/org/apache/catalina/connector/CoyoteAdapter.java
===================================================================
--- branches/7.0.x/java/org/apache/catalina/connector/CoyoteAdapter.java 2012-05-16
13:29:25 UTC (rev 2036)
+++ branches/7.0.x/java/org/apache/catalina/connector/CoyoteAdapter.java 2012-05-25
14:58:11 UTC (rev 2037)
@@ -344,6 +344,9 @@
req.getParameters().setQueryStringEncoding
(connector.getURIEncoding());
+ // Set the context classloader, since in that case it might not be set
+
Thread.currentThread().setContextClassLoader(CoyoteAdapter.class.getClassLoader());
+
}
// Check if the connector was stopped
Modified: branches/7.0.x/webapps/docs/changelog.xml
===================================================================
--- branches/7.0.x/webapps/docs/changelog.xml 2012-05-16 13:29:25 UTC (rev 2036)
+++ branches/7.0.x/webapps/docs/changelog.xml 2012-05-25 14:58:11 UTC (rev 2037)
@@ -28,6 +28,10 @@
<fix>
Drop fix for <jboss-jira>AS7-4566</jboss-jira> (problem with IPv6 on
shutdown on JDK 6). (remm)
</fix>
+ <fix>
+ <jboss-jira>JBPAPP-9126</jboss-jira>: Set the context classloader as
soon as possible on newly
+ created threads. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
Show replies by date