It's all about the answers!

Ask a question

Need help in configuring WAS plug-in to route the requests for separate WAS servers


Ruslan Luchnikov (3121311) | asked Apr 02 '13, 5:38 a.m.
Hello,
I try configure CLM environment using WebSphere Application Server (WAS), IBM HTTP Server (IHS) and the WAS web server plugins for IHS.I installed every application JTS/CCM/QM/RM at separate WAS server and one IHS instance installed at separate server too.  I configured WAS IHS Plug-in for every application also. But when i verified to access application ccm, i getting error SRVE0255E. There is access to other applications and working fine, but slowly. Example plugin-cfg.xml(part CCM):

<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_SBT-OPIR-005Node01_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="SBT-OPIR-005Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="ccm.ca.sbrf.ru" Port="9080" Protocol="http"/>
         <Transport Hostname="ccm.ca.sbrf.ru" Port="9443" Protocol="https">
            <Property Name="keyring" Value="C:\IBM\HTTPServer\bin/ihskeys.kdb"/>
            <Property Name="stashfile" Value="C:\IBM\HTTPServer\bin/ihskeys.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_SBT-OPIR-005Node01_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/jazz/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hello"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hitcount"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsp"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsv"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsw"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/j_security_check"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ibm_security_logout"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/servlet/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ivt/*"/>
   </UriGroup>

I tried to configure CLM environment using IHS and mod_proxy also, and all work fine and quickly. But this method don't  supported by IBM.
Thanks for advice!

2 answers



permanent link
Guido Schneider (3.4k1486115) | answered Apr 02 '13, 6:05 a.m.
edited Apr 02 '13, 6:06 a.m.

You need for each machine or WAS profile your own <ServerCluster <UriGroup> and <Route> section. That's all.

Example:

<?xml version="1.0" encoding="ISO-8859-1"?><!--HTTP server plugin config file for the webserver MYMACHINE01Node01Cell.MYMACHINE01Node01.webserver1 generated on 2012.12.16 at 01:05:23 PM CET-->
<Config ASDisableNagle="false" AcceptAllContent="true" AppServerPortPreference="HostHeader" ChunkedResponse="false" FIPSEnable="false" FailoverToNext="false" HTTPMaxHeaders="300" IISDisableFlushFlag="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" KillWebServerStartUpOnParseErr="false" MarkBusyDown="false" OS400ConvertQueryStringToJobCCSID="false" RefreshInterval="60" ResponseChunkSize="64" SSLConsolidate="true" TrustedProxyEnable="false" VHostMatchingCompat="false">
   <Log LogLevel="Error" Name="c:\IBM\Websphere\Plugins\logs\webserver1\http_plugin.log"/>
   <Property Name="ESIEnable" Value="true"/>
   <Property Name="ESIMaxCacheSize" Value="1024"/>
   <Property Name="ESIInvalidationMonitor" Value="false"/>
   <Property Name="ESIEnableToPassCookies" Value="false"/>
   <Property Name="ESICacheidFull" Value="false"/>
   <Property Name="PluginInstallRoot" Value="c:\IBM\Websphere\Plugins\"/>
   <VirtualHostGroup Name="default_host">
      <VirtualHost Name="*:9080"/>
      <VirtualHost Name="*:80"/>
      <VirtualHost Name="*:9443"/>
      <VirtualHost Name="*:5060"/>
      <VirtualHost Name="*:5061"/>
      <VirtualHost Name="*:443"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:80"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:443"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9080"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9081"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9082"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9083"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9084"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9443"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9444"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9445"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9446"/>
      <VirtualHost Name="clmpublic.clmdom.mycompany.com:9447"/>
   </VirtualHostGroup>    <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_MYMACHINE01Node01_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="MYMACHINE01Node01_server1" ServerIOTimeout="900" WaitForContinue="false">
         <Transport Hostname="MYMACHINE01.MYDOM.mycompany.net" Port="9080" Protocol="http"/>
         <Transport Hostname="MYMACHINE01.MYDOM.mycompany.net" Port="9443" Protocol="https">
            <Property Name="keyring" Value="c:\IBM\Websphere\Plugins\config\webserver1\plugin-key.kdb"/>
            <Property Name="stashfile" Value="c:\IBM\Websphere\Plugins\config\webserver1\plugin-key.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_MYMACHINE01Node01_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/admin/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/clmhelp/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/jts/*"/>
   </UriGroup>
   <Route ServerCluster="server1_MYMACHINE01Node01_Cluster" UriGroup="default_host_server1_MYMACHINE01Node01_Cluster_URIs" VirtualHostGroup="default_host"/>    <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_MYMACHINE02Node02_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="MYMACHINE02Node02_server1" ServerIOTimeout="900" WaitForContinue="false">
         <Transport Hostname="MYMACHINE02.MYDOM.mycompany.net" Port="9081" Protocol="http"/>
         <Transport Hostname="MYMACHINE02.MYDOM.mycompany.net" Port="9444" Protocol="https">
            <Property Name="keyring" Value="c:\IBM\WebSphere\Plugins\config\webserver1\plugin-key.kdb"/>
            <Property Name="stashfile" Value="c:\IBM\WebSphere\Plugins\config\webserver1\plugin-key.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_MYMACHINE02Node02_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ccm/*"/>
   </UriGroup>
   <Route ServerCluster="server1_MYMACHINE02Node02_Cluster" UriGroup="default_host_server1_MYMACHINE02Node02_Cluster_URIs" VirtualHostGroup="default_host"/>    <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_MYMACHINE03Node03_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="MYMACHINE03Node03_server1" ServerIOTimeout="900" WaitForContinue="false">
         <Transport Hostname="MYMACHINE03.MYDOM.mycompany.net" Port="9082" Protocol="http"/>
         <Transport Hostname="MYMACHINE03.MYDOM.mycompany.net" Port="9445" Protocol="https">
            <Property Name="keyring" Value="c:\IBM\websphere\Plugins\config\webserver1\plugin-key.kdb"/>
            <Property Name="stashfile" Value="c:\IBM\websphere\Plugins\config\webserver1\plugin-key.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_MYMACHINE03Node03_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/qm/*"/>
   </UriGroup>
   <Route ServerCluster="server1_MYMACHINE03Node03_Cluster" UriGroup="default_host_server1_MYMACHINE03Node03_Cluster_URIs" VirtualHostGroup="default_host"/>    <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_MYMACHINE04Node04_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="MYMACHINE04Node04_server1" ServerIOTimeout="900" WaitForContinue="false">
         <Transport Hostname="MYMACHINE04.MYDOM.mycompany.net" Port="9083" Protocol="http"/>
         <Transport Hostname="MYMACHINE04.MYDOM.mycompany.net" Port="9446" Protocol="https">
            <Property Name="keyring" Value="c:\IBM\websphere\Plugins\config\webserver1\plugin-key.kdb"/>
            <Property Name="stashfile" Value="c:\IBM\websphere\Plugins\config\webserver1\plugin-key.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_MYMACHINE04Node04_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/converter/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/rm/*"/>
   </UriGroup>
   <Route ServerCluster="server1_MYMACHINE04Node04_Cluster" UriGroup="default_host_server1_MYMACHINE04Node04_Cluster_URIs" VirtualHostGroup="default_host"/>    <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_MYMACHINE05Node05_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="MYMACHINE05Node05_server1" ServerIOTimeout="900" WaitForContinue="false">
         <Transport Hostname="MYMACHINE05.MYDOM.mycompany.net" Port="9084" Protocol="http"/>
         <Transport Hostname="MYMACHINE05.MYDOM.mycompany.net" Port="9447" Protocol="https">
            <Property Name="keyring" Value="c:\IBM\websphere\Plugins\config\webserver1\plugin-key.kdb"/>
            <Property Name="stashfile" Value="c:\IBM\websphere\Plugins\config\webserver1\plugin-key.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_MYMACHINE05Node05_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/reporting/*"/>
   </UriGroup>
   <Route ServerCluster="server1_MYMACHINE05Node05_Cluster" UriGroup="default_host_server1_MYMACHINE05Node05_Cluster_URIs" VirtualHostGroup="default_host"/>    <RequestMetrics armEnabled="false" loggingEnabled="false" rmEnabled="false" traceLevel="HOPS">
      <filters enable="false" type="URI">
         <filterValues enable="false" value="/snoop"/>
         <filterValues enable="false" value="/hitcount"/>
      </filters>
      <filters enable="false" type="SOURCE_IP">
         <filterValues enable="false" value="255.255.255.255"/>
         <filterValues enable="false" value="254.254.254.254"/>
      </filters>
      <filters enable="false" type="JMS">
         <filterValues enable="false" value="destination=aaa"/>
      </filters>
      <filters enable="false" type="WEB_SERVICES">
         <filterValues enable="false" value="wsdlPort=aaa:op=bbb:nameSpace=ccc"/>
      </filters>
   </RequestMetrics>
</Config>


permanent link
Ruslan Luchnikov (3121311) | answered Apr 02 '13, 8:15 a.m.
I have the same configuration of plugin-cfg.xml. But in my case  qm and ccm have the same URI:
<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_SBT-OPIR-005Node01_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="SBT-OPIR-005Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="ccm.ca.sbrf.ru" Port="9080" Protocol="http"/>
         <Transport Hostname="ccm.ca.sbrf.ru" Port="9443" Protocol="https">
            <Property Name="keyring" Value="C:\IBM\HTTPServer\bin/ihskeys.kdb"/>
            <Property Name="stashfile" Value="C:\IBM\HTTPServer\bin/ihskeys.sth"/>
         </Transport>
      </Server>


   </ServerCluster>
   <UriGroup Name="default_host_server1_SBT-OPIR-005Node01_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/jazz/*"/>
    </UriGroup>
   <Route ServerCluster="server1_SBT-OPIR-005Node01_Cluster" UriGroup="default_host_server1_SBT-OPIR-005Node01_Cluster_URIs" VirtualHostGroup="default_host"/>
    <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_SBT-OPIR-008Node01_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="SBT-OPIR-008Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="jts.ca.sbrf.ru" Port="9080" Protocol="http"/>
         <Transport Hostname="jts.ca.sbrf.ru" Port="9443" Protocol="https">
            <Property Name="keyring" Value="C:\IBM\HTTPServer\bin/ihskeys.kdb"/>
            <Property Name="stashfile" Value="C:\IBM\HTTPServer\bin/ihskeys.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_SBT-OPIR-008Node01_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/jts/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/admin/*"/>

   </UriGroup>
   <Route ServerCluster="server1_SBT-OPIR-008Node01_Cluster" UriGroup="default_host_server1_SBT-OPIR-008Node01_Cluster_URIs" VirtualHostGroup="default_host"/>
   <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_SBT-OPIR-007Node01_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="SBT-OPIR-007Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="qm.ca.sbrf.ru" Port="9080" Protocol="http"/>
         <Transport Hostname="qm.ca.sbrf.ru" Port="9445" Protocol="https">
            <Property Name="keyring" Value="C:\IBM\HTTPServer\bin/ihskeys.kdb"/>
            <Property Name="stashfile" Value="C:\IBM\HTTPServer\bin/ihskeys.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_SBT-OPIR-007Node01_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/jazz/*"/>
   </UriGroup>
   <Route ServerCluster="server1_SBT-OPIR-007Node01_Cluster" UriGroup="default_host_server1_SBT-OPIR-007Node01_Cluster_URIs" VirtualHostGroup="default_host"/>
    <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_SBT-OPIR-006Node01_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="SBT-OPIR-006Node01_server1" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="rm.ca.sbrf.ru" Port="9080" Protocol="http"/>
         <Transport Hostname="rm.ca.sbrf.ru" Port="9444" Protocol="https">
            <Property Name="keyring" Value="C:\IBM\HTTPServer\bin/ihskeys.kdb"/>
            <Property Name="stashfile" Value="C:\IBM\HTTPServer\bin/ihskeys.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_SBT-OPIR-006Node01_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/converter/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/rdm/*"/>
   </UriGroup>
   <Route ServerCluster="server1_SBT-OPIR-006Node01_Cluster" UriGroup="default_host_server1_SBT-OPIR-006Node01_Cluster_URIs" VirtualHostGroup="default_host"/>
   <RequestMetrics armEnabled="false" newBehavior="false"
        rmEnabled="false" traceLevel="HOPS">
        <filters enable="false" type="URI">
            <filterValues enable="false" value="/servlet/snoop"/>
            <filterValues enable="false" value="/webapp/examples/HitCount"/>
        </filters>
        <filters enable="false" type="SOURCE_IP">
            <filterValues enable="false" value="255.255.255.255"/>
            <filterValues enable="false" value="254.254.254.254"/>
        </filters>
    </RequestMetrics>
How i can configure web-plugin for applications with the same uri?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.