jQuery in Action, 3rd edition
The moose likes JBoss/WildFly and the fly likes Jboss and Jaas: where do I go wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss and Jaas: where do I go wrong?" Watch "Jboss and Jaas: where do I go wrong?" New topic

Jboss and Jaas: where do I go wrong?

erika santo

Joined: Sep 14, 2011
Posts: 1
Hi everybody

I'm new in this forum and I'm a newby. I'm stuck from a couple of days and really need some help.

I am using Jboss 5.1, java 1.6 and I'm developing a web application that needs login.
I'd like to uso JAAS functionality so this is what I have done:

- I wrote my own LoginModule and my own Principal
- Modified the jboss-web.xml as follows:

- Modified the login-conf.xml in jbossdirectory/server/default/conf as follows:
<application-policy name="LoginModuleRDS">
<login-module code="security.HibernateLoginModule"
<module-option name="restore-login-identity">true</module-option>


and deployed.

When I run the application I correctly see the log-in page.
My LoginModule is correctly called and correctly executed but then I get the following error:

The first 5 lines are logs that i'll delete as soon as i get this working.

17:02:52,671 INFO [HibernateLoginModule] MyLoginModule-initialize
17:02:52,671 INFO [HibernateLoginModule] MyLoginModule-dentro al login
17:02:52,671 INFO [HibernateLoginModule] MyLoginModule-dentro a validate2
17:02:52,692 INFO [HibernateLoginModule] MyLoginModule-dentro a validate
17:02:52,693 INFO [HibernateLoginModule] MyLoginModule-dentro a commit
17:02:52,708 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
at java.util.Hashtable.put(Hashtable.java:394)
at org.apache.catalina.session.StandardSession.setNote(StandardSession.java:907)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:282)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)

Can anybody please give an hint of where am I going wrong... Any help woud truly be appriciated!!!
I agree. Here's the link: http://aspose.com/file-tools
subject: Jboss and Jaas: where do I go wrong?
It's not a secret anymore!