Agent for JBoss :: java.lang.ExceptionInInitializerError

Document ID : KB000049507
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When I start the Agent for JBoss, no logs are created by the Agent and I can see the following error in the JBoss server.log:

     ERROR [org.apache.catalina.connector.CoyoteAdapter] (http-xxx.xxx.xxx.xxx-8080-1)
     An exception or error occurred in the container during the request processing java.lang.ExceptionInInitializerError 

How could I solve this problem ?

Solution:

This seems like a configuration issue.

In order to solve this issue you will need to modify the login-config.xml as :

You will not get the error if you put

    </application-policy>
        <application-policy name="SiteMinderDomain">
          <authentication>
              <login-module code="com.ca.soa.agent.appserver.authenticator.jBoss.SMJBossLoginModule" flag="required">
              <module-option name="unauthenticatedIdentity">anonymous</module-option>
              </login-module>
          </authentication>
     </application-policy>
    </policy>

at the beginning of the file just after the Policy Tag, such as:

    <policy>
        </application-policy>
         <application-policy name="SiteMinderDomain">
          <authentication>
              <login-module code="com.ca.soa.agent.appserver.authenticator.jBoss.SMJBossLoginModule" flag="required">
              <module-option name="unauthenticatedIdentity">anonymous</module-option>
              </login-module>
          </authentication>
         </application-policy>
   [...]

The Agent for JBoss will not start properly if this configuration is put at the very end of the <policy> tag description.