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:
Stop the newly installed service.
Remove the service. Run these commands:
cd to ESPdSeriesWAWebServices_HomeDir\apache-tomcat\bin
service.bat remove "Name_of_service"
Create a copy of the ESPdSeriesWAWebServices_HomeDir\apache-tomcat\bin\service.bat file.
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.
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