Jboss 5 as + jaas

Estou com um problema referente ao JAAS. Quando tento fazer o login, simplesmente não acontece nada. No trace log da erro de autenticação que não entendo.

Stacktrace

2013-04-23 10:39:55,597 DEBUG [org.apache.catalina.connector.CoyoteAdapter] (http-127.0.2.1-8080-5) Requested cookie session id is 85A362CEC46B747DE78B4D4139578DE5 2013-04-23 10:39:55,597 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http-127.0.2.1-8080-5) Security checking request GET /CertificadoDigital-web/javax.faces.resource/images/ui-bg_glass_20_474747_1x400.png.xhtml 2013-04-23 10:39:55,598 DEBUG [org.apache.catalina.realm.RealmBase] (http-127.0.2.1-8080-5) Checking constraint 'SecurityConstraint[Users]' against GET /javax.faces.resource/images/ui-bg_glass_20_474747_1x400.png.xhtml --> false 2013-04-23 10:39:55,598 DEBUG [org.apache.catalina.realm.RealmBase] (http-127.0.2.1-8080-5) Checking constraint 'SecurityConstraint[Users]' against GET /javax.faces.resource/images/ui-bg_glass_20_474747_1x400.png.xhtml --> false 2013-04-23 10:39:55,598 DEBUG [org.apache.catalina.realm.RealmBase] (http-127.0.2.1-8080-5) Checking constraint 'SecurityConstraint[Users]' against GET /javax.faces.resource/images/ui-bg_glass_20_474747_1x400.png.xhtml --> false 2013-04-23 10:39:55,598 DEBUG [org.apache.catalina.realm.RealmBase] (http-127.0.2.1-8080-5) Checking constraint 'SecurityConstraint[Users]' against GET /javax.faces.resource/images/ui-bg_glass_20_474747_1x400.png.xhtml --> false 2013-04-23 10:39:55,598 DEBUG [org.apache.catalina.realm.RealmBase] (http-127.0.2.1-8080-5) No applicable constraint located 2013-04-23 10:39:55,598 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http-127.0.2.1-8080-5) Not subject to any constraint 2013-04-23 10:39:55,598 TRACE [org.apache.catalina.core.StandardWrapper] (http-127.0.2.1-8080-5) Returning non-STM instance 2013-04-23 10:39:55,599 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) servletPath /javax.faces.resource/images/ui-bg_glass_20_474747_1x400.png.xhtml 2013-04-23 10:39:55,599 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) pathInfo null 2013-04-23 10:39:55,599 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:39:55,599 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:39:55,601 FINE [javax.enterprise.resource.webcontainer.jsf.resource] (http-127.0.2.1-8080-5) Caching ResourceInfo: ResourceInfo{name='images/ui-bg_glass_20_474747_1x400.png', version='NONE', libraryName='primefaces-cruze', libraryVersion='null', localePrefix='NONE', path='META-INF/resources/primefaces-cruze/images/ui-bg_glass_20_474747_1x400.png', compressible='false', compressedPath=null} 2013-04-23 10:40:09,189 DEBUG [org.apache.catalina.connector.CoyoteAdapter] (http-127.0.2.1-8080-5) Requested cookie session id is 85A362CEC46B747DE78B4D4139578DE5 2013-04-23 10:40:09,190 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http-127.0.2.1-8080-5) Security checking request POST /CertificadoDigital-web/pages/public/j_security_check 2013-04-23 10:40:09,190 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] (http-127.0.2.1-8080-5) Authenticating username 'MPFontana' 2013-04-23 10:40:09,226 TRACE [org.apache.catalina.core.StandardWrapper] (http-127.0.2.1-8080-5) Returning non-STM instance 2013-04-23 10:40:09,227 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) servletPath /pages/public/loginError.xhtml 2013-04-23 10:40:09,227 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) pathInfo null 2013-04-23 10:40:09,228 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:40:09,228 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) execute(com.sun.faces.context.FacesContextImpl@1492aff) 2013-04-23 10:40:09,228 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) Entering RestoreViewPhase 2013-04-23 10:40:09,230 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) New request: creating a view for /pages/public/loginError.xhtml 2013-04-23 10:40:09,230 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:40:09,230 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:40:09,230 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.ViewRoot' 2013-04-23 10:40:09,230 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created new view for /pages/public/loginError.xhtml 2013-04-23 10:40:09,231 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Locale for this view as determined by calculateLocale pt_BR 2013-04-23 10:40:09,231 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) RenderKitId for this view as determined by calculateRenderKitId HTML_BASIC 2013-04-23 10:40:09,232 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.factory] (http-127.0.2.1-8080-5) Resource-Url from external context: jndi:/localhost/CertificadoDigital-web/pages/public/loginError.xhtml 2013-04-23 10:40:09,232 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.factory] (http-127.0.2.1-8080-5) Creating Metadata Facelet for: jndi:/localhost/CertificadoDigital-web/pages/public/loginError.xhtml 2013-04-23 10:40:09,239 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed : http://www.w3.org/1999/xhtml 2013-04-23 10:40:09,239 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: com.sun.faces.facelets.compiler.NamespaceUnit@4387f5 and adding it to parent: com.sun.faces.facelets.compiler.CompilationUnit@192f558 2013-04-23 10:40:09,239 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed h: http://java.sun.com/jsf/html 2013-04-23 10:40:09,239 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed f: http://java.sun.com/jsf/core 2013-04-23 10:40:09,239 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed ui: http://java.sun.com/jsf/facelets 2013-04-23 10:40:09,239 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed p: http://primefaces.org/ui 2013-04-23 10:40:09,240 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Finished Unit: com.sun.faces.facelets.compiler.NamespaceUnit@4387f5 2013-04-23 10:40:09,240 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) Exiting RestoreViewPhase 2013-04-23 10:40:09,240 FINE [javax.enterprise.resource.webcontainer.jsf.timing] (http-127.0.2.1-8080-5) [TIMING] - [12ms] : Execution time for phase (including any PhaseListeners) -> RESTORE_VIEW 1 2013-04-23 10:40:09,240 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) render(com.sun.faces.context.FacesContextImpl@1492aff) 2013-04-23 10:40:09,240 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) Entering RenderResponsePhase 2013-04-23 10:40:09,241 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) About to render view /pages/public/loginError.xhtml 2013-04-23 10:40:09,241 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:40:09,241 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Building View: /pages/public/loginError.xhtml 2013-04-23 10:40:09,241 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.factory] (http-127.0.2.1-8080-5) Creating Facelet for: jndi:/localhost/CertificadoDigital-web/pages/public/loginError.xhtml 2013-04-23 10:40:09,243 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: TextUnit[0] and adding it to parent: com.sun.faces.facelets.compiler.CompilationUnit@7fcee1 2013-04-23 10:40:09,247 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed : http://www.w3.org/1999/xhtml 2013-04-23 10:40:09,247 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: com.sun.faces.facelets.compiler.NamespaceUnit@19a1780 and adding it to parent: TextUnit[0] 2013-04-23 10:40:09,247 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed h: http://java.sun.com/jsf/html 2013-04-23 10:40:09,247 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed f: http://java.sun.com/jsf/core 2013-04-23 10:40:09,247 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed ui: http://java.sun.com/jsf/facelets 2013-04-23 10:40:09,247 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Namespace Pushed p: http://primefaces.org/ui 2013-04-23 10:40:09,247 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Tag Pushed: /pages/public/loginError.xhtml @6,42 <html> 2013-04-23 10:40:09,248 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) /pages/public/loginError.xhtml @6,42 xmlns:h="http://java.sun.com/jsf/html" Namespace Bound to TagLibrary 2013-04-23 10:40:09,248 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) /pages/public/loginError.xhtml @6,42 xmlns:f="http://java.sun.com/jsf/core" Namespace Bound to TagLibrary 2013-04-23 10:40:09,248 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) /pages/public/loginError.xhtml @6,42 xmlns:ui="http://java.sun.com/jsf/facelets" Namespace Bound to TagLibrary 2013-04-23 10:40:09,248 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) /pages/public/loginError.xhtml @6,42 xmlns:p="http://primefaces.org/ui" Namespace Bound to TagLibrary 2013-04-23 10:40:09,248 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: TextUnit[0] and adding it to parent: com.sun.faces.facelets.compiler.NamespaceUnit@19a1780 2013-04-23 10:40:09,248 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Tag Pushed: /pages/public/loginError.xhtml @8,59 <ui:decorate> 2013-04-23 10:40:09,248 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: /pages/public/loginError.xhtml @8,59 <ui:decorate> and adding it to parent: TextUnit[0] 2013-04-23 10:40:09,249 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: TextUnit[0] and adding it to parent: /pages/public/loginError.xhtml @8,59 <ui:decorate> 2013-04-23 10:40:09,249 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Tag Pushed: /pages/public/loginError.xhtml @9,34 <ui:define> 2013-04-23 10:40:09,249 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: /pages/public/loginError.xhtml @9,34 <ui:define> and adding it to parent: TextUnit[0] 2013-04-23 10:40:09,249 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Starting Unit: TextUnit[0] and adding it to parent: /pages/public/loginError.xhtml @9,34 <ui:define> 2013-04-23 10:40:09,250 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Tag Pushed: /pages/public/loginError.xhtml @10,13 <p> 2013-04-23 10:40:09,250 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Finished Unit: TextUnit[0] 2013-04-23 10:40:09,250 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Finished Unit: /pages/public/loginError.xhtml @9,34 <ui:define> 2013-04-23 10:40:09,250 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Finished Unit: TextUnit[1] 2013-04-23 10:40:09,250 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.compiler] (http-127.0.2.1-8080-5) Finished Unit: /pages/public/loginError.xhtml @8,59 <ui:decorate> 2013-04-23 10:40:09,251 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.ui.decorate] (http-127.0.2.1-8080-5) /pages/public/loginError.xhtml @8,59 <ui:decorate> found Define[centro] 2013-04-23 10:40:09,252 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.factory] (http-127.0.2.1-8080-5) Resource-Url from external context: jndi:/localhost/CertificadoDigital-web/resources/template/default.xhtml 2013-04-23 10:40:09,252 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,252 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @7,13 <h:head> Component[-1454422182_5f886349] Created: javax.faces.component.UIOutput 2013-04-23 10:40:09,253 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,253 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @14,13 <h:body> Component[-1454422182_5f886363] Created: javax.faces.component.UIOutput 2013-04-23 10:40:09,253 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.Layout' 2013-04-23 10:40:09,253 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,253 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.ComponentResourceContainer' 2013-04-23 10:40:09,254 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,254 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,254 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,254 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,255 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.Output' 2013-04-23 10:40:09,255 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @16,82 <p:layout> Component[-1454422182_5f886305] Created: org.primefaces.component.layout.Layout 2013-04-23 10:40:09,256 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.LayoutUnit' 2013-04-23 10:40:09,256 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/header.xhtml @10,62 <p:layoutUnit> Component[-445138472_252c5a4a] Created: org.primefaces.component.layout.LayoutUnit 2013-04-23 10:40:09,257 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.HtmlGraphicImage' 2013-04-23 10:40:09,257 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/header.xhtml @11,103 <h:graphicImage> Component[-445138472_252c5a30] Created: javax.faces.component.html.HtmlGraphicImage 2013-04-23 10:40:09,257 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.LayoutUnit' 2013-04-23 10:40:09,257 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @24,58 <p:layoutUnit> Component[-1454422182_5f8863c8] Created: org.primefaces.component.layout.LayoutUnit 2013-04-23 10:40:09,257 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'javax.faces.HtmlForm' 2013-04-23 10:40:09,258 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @26,33 <h:form> Component[-1454422182_5f8863f4] Created: javax.faces.component.html.HtmlForm 2013-04-23 10:40:09,258 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.Menu' 2013-04-23 10:40:09,258 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @27,58 <p:menu> Component[-1454422182_5f886396] Created: org.primefaces.component.menu.Menu 2013-04-23 10:40:09,258 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.Submenu' 2013-04-23 10:40:09,259 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @28,57 <p:submenu> Component[-1454422182_5f8863b0] Created: org.primefaces.component.submenu.Submenu 2013-04-23 10:40:09,259 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.MenuItem' 2013-04-23 10:40:09,259 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @29,124 <p:menuitem> Component[-1454422182_5f886242] Created: org.primefaces.component.menuitem.MenuItem 2013-04-23 10:40:09,259 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.MenuItem' 2013-04-23 10:40:09,259 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @30,115 <p:menuitem> Component[-1454422182_5f886255] Created: org.primefaces.component.menuitem.MenuItem 2013-04-23 10:40:09,260 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.MenuItem' 2013-04-23 10:40:09,260 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @31,142 <p:menuitem> Component[-1454422182_5f88625c] Created: org.primefaces.component.menuitem.MenuItem 2013-04-23 10:40:09,260 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Created component with component type of 'org.primefaces.component.LayoutUnit' 2013-04-23 10:40:09,260 FINE [javax.enterprise.resource.webcontainer.jsf.facelets.tag.component] (http-127.0.2.1-8080-5) /resources/template/default.xhtml @40,49 <p:layoutUnit> Component[-1454422182_5f88626f] Created: org.primefaces.component.layout.LayoutUnit 2013-04-23 10:40:09,261 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Rendering View: /pages/public/loginError.xhtml 2013-04-23 10:40:09,263 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:40:09,266 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) Client State: total number of characters written: 1.292 2013-04-23 10:40:09,267 FINE [javax.enterprise.resource.webcontainer.jsf.application] (http-127.0.2.1-8080-5) URL pattern of the FacesServlet executing the current request .xhtml 2013-04-23 10:40:09,267 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.2.1-8080-5) Exiting RenderResponsePhase 2013-04-23 10:40:09,267 FINE [javax.enterprise.resource.webcontainer.jsf.timing] (http-127.0.2.1-8080-5) [TIMING] - [27ms] : Execution time for phase (including any PhaseListeners) -> RENDER_RESPONSE 6 2013-04-23 10:40:09,267 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CertificadoDigital-web].[Faces Servlet]] (http-127.0.2.1-8080-5) Disabling the response for futher output 2013-04-23 10:40:09,267 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http-127.0.2.1-8080-5) Failed authenticate() test ??/CertificadoDigital-web/pages/public/j_security_check

web.xml

[code]


Users
/pages/private/*


USER

<!-- Validation By Form -->
<login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>        
        <form-login-page>/pages/public/login.xhtml</form-login-page>
        <form-error-page>/pages/public/loginError.xhtml</form-error-page>
    </form-login-config>
</login-config>

<!-- Allowed Roles -->   
<security-role>
    <role-name>USER</role-name>
</security-role>    

<!-- Filter to get the user name and work with it -->
<filter>
    <filter-name>LoginFilter</filter-name>
    <filter-class>br.com.certificado.filter.LoginFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>LoginFilter</filter-name>
    <url-pattern>/pages/private/*</url-pattern>
</filter-mapping>    [/code]

jboss-web.xml

<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <!-- Links with JBoss the Realm to use --> <security-domain>java:/jaas/LoginCertRealm</security-domain> </jboss-web>

login-config.xml

<application-policy name="LoginCertRealm"> <authentication> <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required"> <module-option name="dsJndiName">java:/LoginCertDS</module-option> <module-option name="principalsQuery">select password from profile where username = ?</module-option> <module-option name="rolesQuery">select rolename, 'Roles' from user_roles where username = ?</module-option> </login-module> </authentication> </application-policy>

Realm datasource

[code]<?xml version="1.0" encoding="UTF-8"?>

jdbc:mysql://localhost:3306/ejbca com.mysql.jdbc.Driver mysql-connector-java-5.1.15.jar root root false false false [/code]