Authorization failure using servlets with WebSphere
A user ID and password authorization failure can occur for servlets that use the IBM® WebSphere® autostart function. This is indicated by a message in the JNI trace.
Symptom
The following message appears in the JNI trace:
CcicsECI: Authorize userid/password with RACF. Return code = -1, errno = 157
Probable cause
Servlets that use the WebSphere autostart function do not have the required authority to access CICS® Transaction Gateway.
Action
Use user-driven
servlets.
With these the initialization is performed in the servlet's init() method.