ASF Bugzilla – Attachment 32776 Details for
Bug 57977
The original class loader isn't re-bound to the thread in PersistentValve.invoke()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch(rev.1) against trunk.
PersistentValve.java.patch (text/plain), 847 bytes, created by
Kyohei Nakamura
on 2015-06-02 05:20:10 UTC
(
hide
)
Description:
patch(rev.1) against trunk.
Filename:
MIME Type:
Creator:
Kyohei Nakamura
Created:
2015-06-02 05:20:10 UTC
Size:
847 bytes
patch
obsolete
>Index: java/org/apache/catalina/valves/PersistentValve.java >=================================================================== >--- java/org/apache/catalina/valves/PersistentValve.java (revision 1683025) >+++ java/org/apache/catalina/valves/PersistentValve.java (working copy) >@@ -76,6 +76,9 @@ > return; > } > >+ ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); >+ >+ try { > // Bind the context CL to the current thread > Thread.currentThread().setContextClassLoader > (context.getLoader().getClassLoader()); >@@ -172,7 +175,10 @@ > } > } > } >+ } finally { >+ Thread.currentThread().setContextClassLoader(oldClassLoader); > } >+ } > > /** > * Indicate whether the session has been idle for longer
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57977
:
32769
| 32776