WebLogic Cluster

From Documentation

Before You Start

You have to configure the following setting for ZK and Weblogic.


	<!-- clustering environment, since ZK 5.0.8-->


  • Add a weblogic.xml under XXX/WEB-INF folder(XXX is like ZKsandbox in the war file)

For example,

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


For Weblogic version 12c

<?xml version="1.0" encoding="UTF-8"?>
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.5/weblogic-web-app.xsd">

As mentioned in Weblogic's document

replicated — Same as memory, but session data is replicated across the clustered servers.

Setting up Weblogic Clusters

After those things done above, please follow the official document to set up a Weblogic Cluster Server here.

Including zul in JSP in Weblogic

Weblogic JSP writer implementation uses response#getOutputStream for JSP blocks.

Using the

<jsp:include src="foo/bar/mypage.zul">

tag in weblogic will cause the ZK layout servlet to write the zul file to response#getWriter.

This will cause an error "Cannot call outputStream because getWriter was already called"

Instead, use

<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<c:import var = "data" url = "foo/bar/mypage.zul"/><c:import>​

Version History

Last Update : 2022/05/10

Version Date Content
5.0.8 June 2011 Add ClusterSessionPatch listener to zk.xml for enforce Weblogic to write session.

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.