I am getting the following exception while starting the JBoss Server.
[SecurityInterceptor] Authentication exception, principal=null
12:26:09,000 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:164)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome
My understanding is, the server side LoginModule implementation shoud be invoked only when credentials are passed from a Client.
But in my case, on server startup itself the LoginModule is invoked.
My login-config looks like this...
<application-policy name = "Test">
<login-module code="com.dhyan.nms.server.popserver.TestLoginModule"
flag = "required" />
</application-policy>
I have also included the security-domain tag in the jboss.xml file.
Can anyone throw some light on this issue.