Need to figure out how to set the context class loader here
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 22:59:25 +0000 (22:59 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 22:59:25 +0000 (22:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801832 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/AsyncContextImpl.java

index 4b3bc06..95909b8 100644 (file)
@@ -160,9 +160,12 @@ public class AsyncContextImpl implements AsyncContext {
         if (state.compareAndSet(AsyncState.STARTED, AsyncState.DISPATCHING) ||
             state.compareAndSet(AsyncState.DISPATCHED, AsyncState.DISPATCHING)) {
             // TODO SERVLET3 - async
+            final ServletContext sctx = getServletRequest().getServletContext();
             Runnable r = new Runnable() {
                 public void run() {
+                    //TODO SERVLET3 - async - set context class loader when running the task.
                     try {
+                        
                         run.run();
                     }catch (Exception x) {
                         log.error("Unable to run async task.",x);