WSDL in Weblogic Cluster Environment

Situation:

1. Weblogic Cluster架構

2. 安裝WebService於Managed Server A

3. 前端有L4 Switch分配Request

4. 對外使用 Virtual IP

5. 使用 http://Virtual IP:Port/….?WSDL 查看WSDL內容, schemaLocation顯示Managed Server A’s IP而不是Virtual IP,

<xsd:import … schemaLocation=”http://Managed Server A:Port/…xsd”  />

當Managed Server A出問題時, 便找不到xsd的位置, 導致Client無法載入WSDL.

Solution:

在Weblogic啟動Script (ex: setXXXenv_AdminServer.sh)加上

JAVA_OPTIONS=”${JAVA_OPTIONS} -Dweblogic.wsee.useRequestHost=true”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s