WebTomcat No longer available after adding user to WebApp Admin tool

book

Article ID: 206334

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

I was adding a user and passwd to WepApp Admin to validate it would function as designed before walking a customer through the same steps.

I was not able to log into the WepApp Admin page After adding a new Admin User.

I get an Unable to load Security module ( something to that Effect )  - I not have NO access to that page so cannot get the exact verbiage of the message.

I tried restarting WebTomcat and the server now Fail to initialize. - This is logged to the catalina.out file-

(GlobalUrlHandler.java:163) Loading configured Applications.
2021-01-11 13:08:14,768 INFO  [main] (GlobalUrlHandler.java:181) Installing application /oneclickwebapp
2021-01-11 13:08:14,933 INFO  [main] (GlobalUrlHandler.java:151) Loading master security module.({module=EMBEDED, config={users=[{password=$hashed$t8cP8YioZMCTchQp_EuHOabnm2ygVWTGpohvoMH8tMU, roles=[admin], username=spectrum}, {password=$hashed$HvpZp6TklQhQrgtMy-6OW-MxrjQFmbWt7xx0S2RKktM, roles=[admin, ], username=caadmin}], extensions=[]}, classPath=[]}).
2021-01-11 13:08:14,944 ERROR [main] (SecurityModuleWrapper.java:95) Failed to initialize security module.
java.lang.RuntimeException: Failed to load Security module extensions.
        at org.webswing.server.services.security.modules.AbstractExtendableSecurityModule.init(AbstractExtendableSecurityModule.java:96) ~[webswing-server-security-20.1.5.jar:?]
        at org.webswing.server.services.security.modules.AbstractUserPasswordSecurityModule.init(AbstractUserPasswordSecurityModule.java:27) ~[webswing-server-security-20.1.5.jar:?]
        at org.webswing.server.services.security.modules.embeded.EmbededSecurityModule.init(EmbededSecurityModule.java:23) ~[webswing-server-security-20.1.5.jar:?]
        at org.webswing.server.services.security.modules.SecurityModuleWrapper$1.call(SecurityModuleWrapper.java:86) ~[classes/:?]
        at org.webswing.server.services.security.modules.SecurityModuleWrapper.runWithContextClassLoader(SecurityModuleWrapper.java:202) ~[classes/:?]
        at org.webswing.server.services.security.modules.SecurityModuleWrapper.init(SecurityModuleWrapper.java:82) [classes/:?]
        at org.webswing.server.base.PrimaryUrlHandler.initConfiguration(PrimaryUrlHandler.java:102) [classes/:?]
        at org.webswing.server.base.PrimaryUrlHandler.init(PrimaryUrlHandler.java:66) [classes/:?]
        at org.webswing.server.GlobalUrlHandler.init(GlobalUrlHandler.java:111) [classes/:?]
        at org.webswing.server.WebswingServlet.init(WebswingServlet.java:58) [classes/:?]

 

 

Environment

Release : 20.2

Component : Spectrum OneClick

Resolution

Rebuild the webswing directory.

1. Stop the Spectrum WebTomcat service

$SPECROOT/webtomcat/bin/stoptWebTomcat.sh

2. Rename the current $SPECROOT/webtomcat/webswing directory.

3. Unzip the $SPECROOT/webtomcat/webswing.zip file. It should create a new $SPECROOT/webtomcat/webswing/ directory.

4. Start the Spectrum WebTomcat service.

$SPECROOT/webtomcat/bin/startWebTomcat.sh

 

When you create a new user in WebApp Admin Tool, it will be added into the $SPECROOT/webtomcat/webswing/webswing.config file.

Additional Information

https://knowledge.broadcom.com/external/article?articleId=205253