In this section, we will look at some runtime errors that can occur and how these errors can be resolved.
A LoginException
occurs when the security realm configured in a web application is not running on the server. A warning message similar to the following will be logged to the geronimo.log
file.
2009-07-17 00:48:58,234 WARN [TomcatGeronimoRealm] Login exception authenticating username "system" javax.security.auth.login.LoginException: No LoginModules configured for test-realm ...
To resolve this error, make sure that the configured security realm is running. You can use the Security Realms portlet to view all of the security realms running on the server. To avoid running the application while the security realm is stopped, you should add a dependency on the security realm configuration to your application's deployment plan, so that the security realm is started automatically before starting your application.