Question

4
Replies
128
Views
Chiru Member since 2011 1 post
Posted: 4 years ago
Last activity: 4 years 5 months ago
Closed
Solved

Gateway console disabling SA-8595 resolution unclear - GatewayConsoleConfigurationMode Disabled

Hi team,

The Support Article SA-8595, https://pdn.pega.com/support-articles/changing-gateway-configuration-throws-error has a resolution that is unclear. The prgateway.xml is formed based on the configurations done on the gateway console. To disable the gateway console, the parameter GatewayConsoleConfigurationMode has to be set to "Disabled". When this is done, do we have to move all the configurations set in the prgateway.xml back in to the web.xml? Is the prgateway.xml no longer referred to for tee configurations when the GatewayConsoleConfigurationMode is set to disabled?

The formats and the structure of the xml seems different for example if the prgateway.xml is

<?xml version="1.0" encoding="UTF-8"?><GatewayAdmin><GatewayConsoleConfigurationMode>Disabled</GatewayConsoleConfigurationMode><SendBaseURLHeader>true</SendBaseURLHeader><ErrorPage>/webwb/Error.jsp</ErrorPage><PRPCHosts>pega7Dev;pega7Dev@PRServlet</PRPCHosts><ForwardAllCookies>true</ForwardAllCookies><GatewayCookieDomain>default</GatewayCookieDomain><LogoffPage>/webwb/Logoff.jsp</LogoffPage><LogLevel>WARNING</LogLevel><SecureCookie>false</SecureCookie><BaseURL>https://BaseURL/prgateway/PRPCGateway</BaseURL><HostInfo><HostName>pega7Dev</HostName><HostURL>https://HostURL/prweb;IAC;;;</HostURL></HostInfo><HostInfo><HostName>pega7Dev@PRServlet</HostName><HostURL>https://HostURL/prweb;PRServlet;;;</HostURL></HostInfo><SessionTimeout>-1</SessionTimeout></GatewayAdmin>

then the web.xml need to be udpated with all the values in of the prgateway.xml? like

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app id="WebApp">

  <servlet>

  <servlet-name>PRPCGateway</servlet-name>

  <display-name>PRPCGateway</display-name>

  <description>WWW interface to PegaRULES</description>

  <servlet-class>com.pega.pegarules.gateway.web.PRGatewayServlet</servlet-class>

  <init-param>

  <param-name>GatewayConsoleConfigurationMode</param-name>

  <param-value>Disabled</param-value>

  </init-param>

  <init-param>

  <param-name>ErrorPage</param-name>

  <param-value>/webwb/Error.jsp</param-value>

  </init-param>

  <init-param>

  <param-name>LogoffPage</param-name>

  <param-value>/webwb/Logoff.jsp</param-value>

  </init-param>

  <init-param>

  <param-name>SessionTimeout</param-name>

  <param-value>-1</param-value>

  </init-param>

  <init-param>

  <param-name>SecureCookie</param-name>

  <param-value>false</param-value>

  </init-param>

  <init-param>

  <param-name>ForwardAllCookies</param-name>

  <param-value>true</param-value>

  </init-param>

  <init-param>

  <param-name>LogLevel</param-name>

  <param-value>WARNING</param-value>

  </init-param>

  <init-param>

  <param-name>PRPCHosts</param-name>

  <param-value>pega7Dev;pega7Dev@PRServlet</param-value>

  </init-param>

  <init-param>

  <param-name>pega7Dev</param-name>

  <param-value>https://HostURL/prweb;IAC;;;</param-value>

  </init-param>

  <init-param>

  <param-name>pega7Dev@PRServlet</param-name>

  <param-value>https://HostURL/prweb;PRServlet;;;</param-value>

  </init-param>

  <init-param>

  <param-name>SendBaseURLHeader</param-name>

  <param-value>true</param-value>

  </init-param>

  <init-param>

  <param-name>BaseURL</param-name>

  <param-value>https://BaseURL/prgateway/PRPCGateway</param-value>

  </init-param>

  <init-param>

  <param-name>GatewayCookieDomain</param-name>

  <param-value>default</param-value>

  </init-param>

  <init-param>

  <param-name>GatewayKeyStoreFile</param-name>

  <param-value>/WEB-INF/lib/prgateway.jks</param-value>

  </init-param>

  <init-param>

  <param-name>GatewayKeyStorePassword</param-name>

  <param-value>changeit</param-value>

  </init-param>

  <load-on-startup>0</load-on-startup>

  </servlet>

  <servlet>

     <servlet-name>AdminUtil</servlet-name>

  <display-name>AdminUtil</display-name>

  <description>Admin utilities</description>

  <servlet-class>com.pega.pegarules.gateway.web.AdminUtilServlet</servlet-class>

    </servlet>

  <servlet-mapping>

  <servlet-name>PRPCGateway</servlet-name>

  <url-pattern>/PRPCGateway/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

  <servlet-name>AdminUtil</servlet-name>

  <url-pattern>/AdminUtil/*</url-pattern>

  </servlet-mapping>

</web-app>

Observe how the hostInfo is specified in the prgateway.xml

<HostInfo>

  <HostName>

  pega7Dev

  </HostName>

  <HostURL>

  https://HostURL/prweb;IAC;;;

  </HostURL>

</HostInfo>

in the web.xml just configuring them as parameters would do?

<init-param>

  <param-name>PRPCHosts</param-name>

  <param-value>pega7Dev/param-value>

</init-param>

<init-param>

  <param-name>pega7Dev</param-name>

  <param-value>https://HostURL/prweb;IAC;;;</param-value>

</init-param>

User Interface
Moderation Team has archived post
Share this page LinkedIn