Date: 2004-11-16T04:09:39
   Editor: LutzWischmann <[EMAIL PROTECTED]>
   Wiki: Cocoon Wiki
   Page: BeaWeblogic
   URL: http://wiki.apache.org/cocoon/BeaWeblogic

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -36,5 +36,37 @@
 </weblogic-web-app>
 }}}
 
-----
 AUTHOR: Sascha-Matthias Kulawik, AUTHOR-CONTACT: [EMAIL PROTECTED]
+----
+=== Portal Framework with Cocoon 2.x.x and BEA Weblogic 5.x/6.x/7.x  ===
+Additionally there is a Problem with the Thread-Handling of WLS. The Portal 
Framework needs to be patched to use the correct Class-Loader for newly created 
Threads.
+
+These changes are 
{{{"org.apache.cocoon.webapps.portal.components.PortalManagerImpl.java"}}}
+
+{{{
+
+~ SNIP
+                
+                CopletThread copletThread = new CopletThread();
+                Thread theThread = new Thread(copletThread);
+                
+                // Patch Weblogic 5/6/7
+                try {
+                  
theThread.setContextClassLoader(this.getClass().getClassLoader());
+                } catch (Exception e){}
+                // Patch
+                
+                loadedCoplet[6] = copletThread;
+                copletThread.init(copletID,
+                                  
ContextHelper.getObjectModel(this.componentContext),
+                                  this.getLogger(),
+                                  
ContextHelper.getResponse(this.componentContext),
+                                  loadedCoplet,
+                                  this.manager,
+                                  this.resolver,
+                                  this.xpathProcessor);
+                theThread.start();
+                Thread.yield();
+
+~ SNAP
+}}}