Failed to create LoginModule(com.sun.security.auth.module.Krb5LoginModule), msg=com.sun.security.auth.module.Krb5LoginModule cannot be cast to javax.security.auth.spi.LoginModule
We have got the krb5.conf and login.conf files in the class path and they are reachable from our java class. And the Spnego libraries are also in the class path. Standalone.xml also has been modified to accomodate the spnego related stuffs.
When the runtime tries to execute the below line, we are getting the above mentioned exception.
SpnegoSOAPConnection con = new SpnegoSOAPConnection("spnego-client", "username", "password");