Getting Cocoon running in BEA Weblogic

In general Cocoon is running in every Application Server. Mostly it is used inside Apache Tomcat, sometimes it is necessary to run Cocoon in different Application Servers.

BEA Weblogic is one of mostly used Application Servers, so it might be useful to get Cocoon running here.

Cocoon 2.1.x and BEA Weblogic 6.1

We've tested Cocoon 2.1.x under Solaris, Windows and Linux. The most problems occur using Solaris Environment. There are only a few steps to do:

Cocoon 2.2.0 DEV and BEA Weblogic 8.1

Here are also different isues regarding Rhino and Xalan - for Xalan it is necessary to switch to ParanoidCocoonServlet and set init-classloader to true. Here also the Rhino problems are only solved in the latest SVN Version, not with! To get around the Xalan problems, you also can use xsltc instead of the xalan Transformer, then you can leave the ParanoidCocoonServlet and init-classloader settings. For Cocoon in general you also have to create a weblogic.xml here, because "Prefer Web Inf Classes" is no more accessible through the console; here a small example:

<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "">

AUTHOR: Sascha-Matthias Kulawik, AUTHOR-CONTACT:

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 ""

                CopletThread copletThread = new CopletThread();
                Thread theThread = new Thread(copletThread);
                // Patch Weblogic 5/6/7
                try {
                } catch (Exception e){}
                // Patch
                loadedCoplet[6] = copletThread;


BeaWeblogic (last edited 2009-09-20 23:39:48 by localhost)