WebLogic Cluster

From Documentation
Revision as of 10:26, 10 May 2022 by Matthieu (talk | contribs) (→‎Setting up Weblogic Clusters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Last Update : 2022/05/10

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