cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: BeaWeblogic
Date Tue, 16 Nov 2004 12:09:39 GMT
   Date: 2004-11-16T04:09:39
   Editor: LutzWischmann <develop@fourty-two.com>
   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: sascha@kulawik.de
+----
+=== 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
+}}}

Mime
View raw message