Consultor Eletrônico



Kbase P57402: Can not manually customize WebSpeed messenger errors
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   7/7/2009
Status: Verified

SYMPTOM(s):

Can not manually customize WebSpeed messenger errors

When the broker is brought down, WebSpeed error is returned instead of the redirected URL

The wsCusErr.txt is saved in WebSpeed broker's WRKDIR, which is defined in ubroker.properties

Apache web server

In this script, WRKDIR is also defined to be the same as the broker's WRKDIR, but the WRKDIR definition is after DLC definition and the command to call cgiip. For example, following is the sequence in the script

DLC=path_to_install
$DLC/bin/cgiip -i wsbroker1
WRKDIR=mydir

In ubroker.properties file, cgiip messenger definition, following is defined for WRKDIR

WRKDIR=$WRKDIR

Click on the "Customize Messenger Error Messages" from WSMAdmin, get a 500 server error - "The server encountered an internal error or misconfigured and was unable to complete your request."

FACT(s) (Environment):

Can not use WSADmin's utility to customize error.
User's environment variable WRKDIR is not set
Manually create a wsCusErr.txt file in working directory
UNIX
WebSpeed 3.1x
In web server's cgi-bin directory, a customized script contains commands to call cgiip

CAUSE:

When the script in cgi-bin is called, DLC is set first, then cgiip is called. When cgiip is called, it's environment is taken from the cgiip messenger definitions in ubroker.properties file, e.g., WRKDIR=$WRKDIR, but since user's enviornment does not have WRKDIR defined, WRKDIR is actually empty. This is why wsCusErr.txt is not picked up.

FIX:

Define WRKDIR before calling cgiip in the script in web server's cgi-bin directory, i.e.,

DLC=path_to_install
WRKDIR=mydir
$DLC/bin/cgiip -i wsbroker1

When cgiip is called, the WRKDIR is already defined, so wsCusErr.txt will be picked up.