Engine connection does not work when connecting to the z/OS® connector V8.3.x or a distributed IBM Workload Scheduler engine V8.3.x

If one of the following errors occurs when running the test connection, follow the steps described in the cause and solution section:
  1. AWSUI0766E Test connection to myengine: failed. AWSUI0833E The operation did not complete.
    Reason: AWSJCO005E WebSphere Application Server gives the following error: 
    CORBA NO_PERMISSION 0x0 No; nested exception is:
    org.omg.CORBA.NO_PERMISSION: Trace from server: 1198777258 at host 
    myhostname.com >>
    org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException: ; nested exception is:
    com.ibm.websphere.csi.CSIAccessException: 
    SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Bean)
    ejb/com/ibm/tws/zconn/engine/ZConnEngineHome 
    getEngineInfo(com.ibm.tws.conn.util.Context):
    1 securityName: /UNAUTHENTICATED;accessID: 
    UNAUTHENTICATED is not granted any of the required roles: 
    TWSAdmin vmcid: 0x0 minor code: 0 completed: No . . .
  2. AWSUI0778E There was an authentication failure: the user name or password is incorrect.

Cause and solution:

The symptoms above are caused because on the z/OS® connector, or on the distributed engine side, the script webui.sh (bat) must be run to enable communication with the TDWC. Under the wastools directory of the home directory of the installation directory, run these commands:
./webui.sh -operation enable -user wasuser 
-password waspwd -port soap_port 
-pwdLTPA anypassword -server server1

./stopWas.sh -user wasuser -password waspwd

./startWas.sh
where:

user and password are those specified at installation time.

port is the WebSphere® SOAP port (display it by running the command showHostProperties.sh).

pwdLTPA is any password used to export and encrypt the LTPA keys.

server is the WebSphere® server name. The default is server1.