DE WebServices Authentication Error Starting With Service
search cancel

DE WebServices Authentication Error Starting With Service

book

Article ID: 250520

calendar_today

Updated On:

Products

CA Workload Automation DE

Issue/Introduction

After installing the DE WebServices service (per: Install ESP dSeries Workload Automation WebServices as Windows Service), When accessing the .wsdl endpoint it prompts for username/password and authentication always fails - with the following error in the catalina log:

21-Sep-2022 19:31:40.745 SEVERE [http-nio-8080-exec-5] org.apache.catalina.realm.JAASRealm.authenticate Unexpected error
 javax.security.auth.login.LoginException: No LoginModules configured for cawadeJAASLoginModule
  at javax.security.auth.login.LoginContext.init(LoginContext.java:264)

 

Environment

Release : 12.3

Component : ESPdSeriesWAWebServices

 

Cause

When the service is installed it does not include a needed module in order for authentication to work. 

 

Resolution

To resolve this issue: 

  1. Stop the newly installed service.
  2. Remove the service. Run these commands:
    • cd to ESPdSeriesWAWebServices_HomeDir\apache-tomcat\bin
    • service.bat remove "Name_of_service"
  3. Create a copy of the ESPdSeriesWAWebServices_HomeDir\apache-tomcat\bin\service.bat file. 
  4. Edit the ESPdSeriesWAWebServices_HomeDir\apache-tomcat\bin\service.bat file.
    • Change line 228
      From:
      --JvmOptions "-Dcatalina.home=%CATALINA_HOME%;-Dcatalina.base=%CATALINA_BASE%;-D%ENDORSED_PROP%=%CATALINA_HOME%\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties;%JvmArgs%" ^

      To: 
      --JvmOptions "-Dcatalina.home=%CATALINA_HOME%;-Dcatalina.base=%CATALINA_BASE%;-Djava.security.auth.login.config=%CATALINA_BASE%\conf\cawade_jaas.config;-D%ENDORSED_PROP%=%CATALINA_HOME%\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties;%JvmArgs%" ^

      The additional entry is in bold/underline font. 
  5. Reinstall and start the service.

 

Additional Information

After using the steps above, the catalina log file should now show an entry for: 

Command line argument: -Djava.security.auth.login.config=C:\ca\ESPdSeriesWAWebServices_R12_3\apache-tomcat\conf\cawade_jaas.config