Javafree
 Forum   Topics   Author   Post 
Spring Framework java.lang.IllegalArgumentException - 2 alois Amigo, Descobri um erro no código na el da página. Faltava {} . Erro que não se deve ter. Vamos adiante
Spring Framework java.lang.IllegalArgumentException - 2 alois Ainda estudando solução. Interessado em descobrir como farei.
Spring Framework java.lang.IllegalArgumentException - 2 alois Bom li o arquivo e identifiquei as implementações do springsecurity em minha aplicação fico ainda sem saber como resolver. Será que precisa de converter sobre o selectOneMenu ?
Spring Framework java.lang.IllegalArgumentException - 2 alois Blz vou ver o tutorial.
Spring Framework java.lang.IllegalArgumentException - 2 alois Mas a maior dificuldade que a aplicação está grande e com um nivel de complexidade maior mas vou testar mesmo assim.
Spring Framework java.lang.IllegalArgumentException - 2 alois Ok. Vou tentar só que não sei por onde começar...Eu começaria por onde?
Spring Framework java.lang.IllegalArgumentException - 2 alois Meu amigo já fiz isso e continua dando o mesmo erro. Algo está retornando null e não é aceito pelo spring security ? Será que falta um converter ? O que será ?
Spring Framework java.lang.IllegalArgumentException alois Não, ainda não resolvi.
Spring Framework java.lang.IllegalArgumentException alois Feito. Criado outro post com mesmo nome e acrescido numero 2.
Spring Framework java.lang.IllegalArgumentException - 2 alois Esta é a página que deveria carregar após o login: [code] <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <ui:composition template="/templates/interna.xhtml"> <ui:define name="titulo"> Área Administrativa </ui:define> <ui:define name="corpo"> <h:form> <h:messages /> <h:dataTable value="#{usuarioBean.lista}" var="usuario" rules="rows" cellpadding="5"> <f:facet name="caption"> A listagem a seguir exibe a relação de todos os usuários do sistema. Você poderá realizar ativação e desativação, edição e exclusão para os usuários. </f:facet> <f:facet name="header">Listagem de Usuários</f:facet> <f:facet name="footer">Final da Listagem</f:facet> <h:column> <h:commandLink action="#{usuarioBean.ativar}"> <h:graphicImage library="imagens" name="usuario_ativo_#{usuario.ativo}.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Código</f:facet> #{usuario.codigo} </h:column> <h:column> <h:graphicImage library="imagens" name="bandeira_#{usuario.idioma}.png" /> </h:column> <h:column> <f:facet name="header">Nome</f:facet> #{usuario.nome} </h:column> <h:column> <f:facet name="header">e-Mail</f:facet> <a href="mailto:#{usuario.email}">#{usuario.email}</a> </h:column> <h:column> <h:commandLink action="#{usuarioBean.editar}"> <h:graphicImage library="imagens" name="editar16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> <f:setPropertyActionListener target="#{usuarioBean.destinoSalvar}" value="/admin/principal" /> </h:commandLink> </h:column> <h:column> <h:commandLink action="#{usuarioBean.excluir}" onclick="if (!confirm(confirma a exclusão do usuário #{usuario.nome}?)) return false;"> <h:graphicImage library="imagens" name="excluir16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Permissões</f:facet> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_ADMINISTRADOR')}" title="Permissão Administrador"> <h:graphicImage library="imagens" name="ROLE_ADMINISTRADOR_#{usuario.permissao.contains('ROLE_ADMINISTRADOR')}.png" style="border:0" /> </h:commandLink> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_USUARIO_VIP')}" title="Permissão Usuário VIP" > <h:graphicImage library="imagens" name="ROLE_USUARIO_VIP_#{usuario.permissao.contains('ROLE_USUARIO_VIP')}.png" style="border:0"/> </h:commandLink> </h:column> </h:dataTable> </h:form> </ui:define> </ui:composition> </html> [/code] E esta o ManagedBean [code] package financeiroweb; import java.util.List; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; import javax.faces.context.FacesContext; import financeiro.conta.Conta; import financeiro.conta.ContaRN; import financeiro.usuario.Usuario; import financeiro.usuario.UsuarioRN; @ManagedBean(name = "usuarioBean") @RequestScoped public class UsuarioBean { private Usuario usuario = new Usuario(); private String confirmarSenha; private List<Usuario> lista; private String destinoSalvar; private Conta conta = new Conta(); public String novo() { this.destinoSalvar = "usuarioSucesso"; this.usuario = new Usuario(); this.usuario.setAtivo(true); return "usuario"; } public String editar() { this.confirmarSenha = this.usuario.getSenha(); return "/publico/usuario"; } public String salvar() { FacesContext context = FacesContext.getCurrentInstance(); String senha = this.usuario.getSenha(); if (!senha.equals(this.confirmarSenha)) { FacesMessage facesMessage = new FacesMessage( "A senha não foi confirmada corretamente"); context.addMessage(null, facesMessage); return null; } UsuarioRN usuarioRN = new UsuarioRN(); usuarioRN.salvar(this.usuario); if(this.conta.getDescricao() != null){ this.conta.setUsuario(this.usuario); this.conta.setFavorita(true); ContaRN contaRN = new ContaRN(); contaRN.salvar(this.conta); } return this.destinoSalvar; } public Conta getConta() { return conta; } public void setConta(Conta conta) { this.conta = conta; } public String excluir() { UsuarioRN usuarioRN = new UsuarioRN(); usuarioRN.excluir(this.usuario); this.lista = null; return null; } public String ativar() { if (this.usuario.isAtivo()) this.usuario.setAtivo(false); else this.usuario.setAtivo(true); UsuarioRN usuarioRN = new UsuarioRN(); usuarioRN.salvar(this.usuario); return null; } public String atribuiPermissao(Usuario usuario, String permissao){ this.usuario = usuario; java.util.Set<String> permissoes = this.usuario.getPermissao(); if (permissoes.contains(permissao)){ permissoes.remove(permissao); }else{ permissoes.add(permissao); } return null; } public List<Usuario> getLista() { if (this.lista == null) { UsuarioRN usuarioRN = new UsuarioRN(); this.lista = usuarioRN.listar(); } return this.lista; } public void setLista(List<Usuario> lista) { this.lista = lista; } public Usuario getUsuario() { return usuario; } public void setUsuario(Usuario usuario) { this.usuario = usuario; } public String getConfirmarSenha() { return confirmarSenha; } public void setConfirmarSenha(String confirmarSenha) { this.confirmarSenha = confirmarSenha; } public String getDestinoSalvar() { return destinoSalvar; } public void setDestinoSalvar(String destinoSalvar) { this.destinoSalvar = destinoSalvar; } } [/code]
Spring Framework java.lang.IllegalArgumentException - 2 alois Amigos tenho dificuldade em resolver o seguinte problema. Não consigo fazer a página de logado carregar após realizar o login. Primeiro minha página inicial carrega mas no Tomcat um erro aparece. Abaixo parte da mensagem: [code] 19:30:17.928 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 19:30:17.928 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/restrito/principal.jsf'; pattern is /**; matched=true 19:30:17.930 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 19:30:17.930 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No HttpSession currently exists 19:30:17.930 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: null. A new one will be created. 19:30:17.936 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 19:30:17.936 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 19:30:17.936 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 19:30:17.936 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 19:30:17.939 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 19:30:17.940 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 19:30:17.941 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS' 19:30:17.941 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 19:30:17.942 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 19:30:17.942 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 19:30:17.942 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 19:30:17.945 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /admin/**; matched=false 19:30:17.945 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /restrito/**; matched=true 19:30:17.945 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Secure object: FilterInvocation: URL: /restrito/principal.jsf; Attributes: [ROLE_USUARIO] 19:30:17.945 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS 19:30:17.945 [http-bio-8080-exec-3] DEBUG o.s.s.access.vote.AffirmativeBased - Voter: org.springframework.security.access.vote.RoleVoter@1352872, returned: -1 19:30:17.945 [http-bio-8080-exec-3] DEBUG o.s.s.access.vote.AffirmativeBased - Voter: org.springframework.security.access.vote.AuthenticatedVoter@f28847, returned: 0 19:30:17.961 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Access is denied (user is anonymous); redirecting to authentication entry point org.springframework.security.access.AccessDeniedException: Access is denied at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:71) ~[spring-security-core-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:204) ~[spring-security-core-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:106) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:112) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [catalina.jar:7.0.27] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [catalina.jar:7.0.27] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) [catalina.jar:7.0.27] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.27] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [catalina.jar:7.0.27] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) [tomcat-coyote.jar:7.0.27] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) [tomcat-coyote.jar:7.0.27] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307) [tomcat-coyote.jar:7.0.27] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_02] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_02] at java.lang.Thread.run(Unknown Source) [na:1.7.0_02] 19:30:18.072 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.HttpSessionRequestCache - DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/FinanceiroWeb/restrito/principal.jsf] 19:30:18.072 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Calling Authentication entry point. 19:30:18.075 [http-bio-8080-exec-3] DEBUG o.s.s.web.DefaultRedirectStrategy - Redirecting to 'http://localhost:8080/FinanceiroWeb/publico/login.jsf;jsessionid=0603AB38849EE794EE41A5E2A065C960' 19:30:18.075 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 19:30:18.075 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 19:30:18.091 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/publico/login.jsf'; to: '/publico/login.jsf' 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/publico/login.jsf'; pattern is /**; matched=true 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1f0c55a. A new one will be created. 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 19:30:18.092 [http-bio-8080-exec-4] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 19:30:18.093 [http-bio-8080-exec-4] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: both null (property equals) 19:30:18.093 [http-bio-8080-exec-4] DEBUG o.s.s.w.s.DefaultSavedRequest - requestURI: arg1=/FinanceiroWeb/restrito/principal.jsf; arg2=/FinanceiroWeb/publico/login.jsf;jsessionid=0603AB38849EE794EE41A5E2A065C960 (property not equals) 19:30:18.093 [http-bio-8080-exec-4] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 19:30:18.093 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 19:30:18.093 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 19:30:18.094 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 19:30:18.094 [http-bio-8080-exec-4] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6fa8940c: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffde5d4: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 0603AB38849EE794EE41A5E2A065C960; Granted Authorities: ROLE_ANONYMOUS' 19:30:18.094 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 19:30:18.094 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 19:30:18.094 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 19:30:18.094 [http-bio-8080-exec-4] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/publico/login.jsf'; to: '/publico/login.jsf' 19:30:18.094 [http-bio-8080-exec-4] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/login.jsf'; pattern is /admin/**; matched=false 19:30:18.095 [http-bio-8080-exec-4] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/login.jsf'; pattern is /restrito/**; matched=false 19:30:18.095 [http-bio-8080-exec-4] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 19:30:18.095 [http-bio-8080-exec-4] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf reached end of additional filter chain; proceeding with original chain 19:30:18.392 [http-bio-8080-exec-4] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 19:30:18.392 [http-bio-8080-exec-4] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 19:30:18.392 [http-bio-8080-exec-4] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 19:30:18.393 [http-bio-8080-exec-4] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 19:30:18.393 [http-bio-8080-exec-4] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit Jul 01, 2013 7:30:18 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp Informações: JSF1027: [/FinanceiroWeb] Os ELResolvers para JSF não foram registrados com o contêiner JSP. Jul 01, 2013 7:30:19 PM com.sun.faces.context.SessionMap put Advertência: JSF1063: AVISO! Definindo valor de atributo não serializável em HttpSession (chave: contextoBean, classe do valor: financeiroweb.ContextoBean). [/code] Quando tento fazer login no sistema o seguinte erro aparece: [code] 19:34:32.266 [http-bio-8080-exec-1] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors 19:34:32.277 [http-bio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - HQL: select u from financeiro.usuario.Usuario u where u.login = :login 19:34:32.277 [http-bio-8080-exec-1] DEBUG o.h.h.i.ast.QueryTranslatorImpl - SQL: select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 19:34:32.277 [http-bio-8080-exec-1] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors 19:34:32.382 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 19:34:32.498 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 19:34:32.504 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 19:34:32.512 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 19:34:32.515 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 19:34:32.571 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 19:34:32.574 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 19:34:32.576 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 19:34:32.578 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null Jul 01, 2013 7:34:32 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException Grave: Error Rendering View[/restrito/principal.xhtml] java.lang.IllegalArgumentException at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:216) at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:135) at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:760) at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:842) at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:296) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at financeiro.web.filter.ConexaoHibernateFilter.doFilter(ConexaoHibernateFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 19:34:32.598 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 19:34:32.601 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 19:34:32.603 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 19:34:32.610 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 19:34:32.612 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 19:34:32.618 [http-bio-8080-exec-1] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 19:34:32.639 [http-bio-8080-exec-1] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 19:34:32.639 [http-bio-8080-exec-1] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 19:34:32.639 [http-bio-8080-exec-1] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 19:34:32.640 [http-bio-8080-exec-1] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 19:34:32.640 [http-bio-8080-exec-1] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 19:34:32.640 [http-bio-8080-exec-1] DEBUG o.h.e.j.i.p.ConnectionProxyHandler - HHH000163: Logical connection releasing its physical connection 19:34:32.643 [http-bio-8080-exec-1] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 19:34:32.643 [http-bio-8080-exec-1] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed [/code]
Spring Framework java.lang.IllegalArgumentException alois Aqui o código da página principal.xhtml: [code] <?xml version="1.0" encoding="ISO-8859-1" ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:sec="http://www.springframework.org/security/facelets/tags"> <ui:composition template="/templates/principal.xhtml"> <ui:define name="corpo"> Usuário logado #{request.remoteUser} <br /> Nome do Usuário Logado #{contextoBean.usuarioLogado.nome} <h:form> <h:commandButton value="Conta" action="conta" /> <h:selectOneMenu value="#{contextoBean.contaAtiva.conta}" valueChangeListener="#{contextoBean.setContaAtiva}" rendered="#{!empty contextoBean}" onchange="submit()"> <f:selectItems value="#contaBean.lista" var="conta" itemValue="#{conta.conta}" itemLabel="#{conta.descricao}" /> </h:selectOneMenu> <sec:ifAnyGranted roles="ROLE_ADMINISTRADOR"> <h:commandLink action="/admin/principal" title="Administrativo"> <h:graphicImage library="imagens" name="administrativo16.png" /> </h:commandLink> </sec:ifAnyGranted> <a onclick="document.location='#{request.contextPath}/j_spring_security_logout'" title="Sair"> <h:graphicImage library="imagens" name="logout16.png" /> </a> </h:form> </ui:define> </ui:composition> </html> [/code]
Spring Framework java.lang.IllegalArgumentException alois Olá de novo. Estive analisando refiz algumas classes e noto alguns problemas que gostaria de analisassem comigo por favor. Quando rodo o tomcat 7 surge algumas informações e erros a aparecem quando tento fazer login na aplicação. Abaixo mensagem no Tomcat quando carregado: [code] Jun 28, 2013 10:23:48 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp Informações: JSF1027: [/FinanceiroWeb] Os ELResolvers para JSF não foram registrados com o contêiner JSP. Jun 28, 2013 10:23:49 AM com.sun.faces.context.SessionMap put Advertência: JSF1063: AVISO! Definindo valor de atributo não serializável em HttpSession (chave: contextoBean, classe do valor: financeiroweb.ContextoBean). [/code] Espero que desta vez esteja redefinindo bem o problema. Se precisar posso postar aqui no forum outras classes. Obrigado desde já. Parte do Erro após login na página: [code] 10:24:04.948 [http-bio-8080-exec-8] DEBUG o.h.h.i.ast.QueryTranslatorImpl - HQL: select u from financeiro.usuario.Usuario u where u.login = :login 10:24:04.948 [http-bio-8080-exec-8] DEBUG o.h.h.i.ast.QueryTranslatorImpl - SQL: select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:24:04.948 [http-bio-8080-exec-8] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors 10:24:05.088 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:24:05.197 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 10:24:05.197 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 10:24:05.213 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:24:05.213 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 10:24:05.291 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:24:05.291 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:24:05.291 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 10:24:05.291 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null Jun 28, 2013 10:24:05 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException Grave: Error Rendering View[/restrito/principal.xhtml] java.lang.IllegalArgumentException at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:216) at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:135) at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:760) at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:842) at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:296) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at financeiro.web.filter.ConexaoHibernateFilter.doFilter(ConexaoHibernateFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 10:24:05.322 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:24:05.322 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 10:24:05.322 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 10:24:05.338 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:24:05.339 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 10:24:05.339 [http-bio-8080-exec-8] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 10:24:05.354 [http-bio-8080-exec-8] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:24:05.354 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:24:05.354 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:24:05.370 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:24:05.370 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:24:05.370 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.p.ConnectionProxyHandler - HHH000163: Logical connection releasing its physical connection 10:24:05.370 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:24:05.370 [http-bio-8080-exec-8] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed [/code]
Java Básico javax.el.PropertyNotFoundException no JSF alois [i]Oi você já conseguiu resolver este problema? estou na mesma situação..
Spring Framework java.lang.IllegalArgumentException alois Aqui está o applicationContext-security.xml [code]<?xml version="1.0" encoding="UTF-8"?> <b:beans xmlns="http://www.springframework.org/schema/security" xmlns:b="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <http> <intercept-url pattern="/admin/**" access="ROLE_ADMINISTRADOR" /> <intercept-url pattern="/restrito/**" access="ROLE_USUARIO" /> <form-login login-page="/publico/login.jsf" always-use-default-target="true" default-target-url="/restrito/principal.jsf" authentication-failure-url="/publico/login.jsf?login_error=1" /> <logout /> <remember-me /> </http> <authentication-manager> <authentication-provider> <jdbc-user-service data-source-ref="financeiroDataSource" authorities-by-username-query="SELECT u.email, p.permissao FROM usuario u, usuario_permissao p WHERE u.codigo = p.usuario AND u.email = ?" users-by-username-query="SELECT email, senha, ativo FROM usuario WHERE email = ?" /> </authentication-provider> </authentication-manager> </b:beans>[/code]
Spring Framework java.lang.IllegalArgumentException alois verifiquei no que fiz quando este erro apareceu mas não consegui identificar nesta situação o problema. Modifiquei o Login.xhtml e o applicationContext-security.xml. Tinha colocado uns templates de formulário onde funcionam para as outras páginas, mas acho que não são eles. O primeiro erro do console aparece quando carrego página para efetuar login. o segundo erro aparece quando tento me logar na aplicação. Abaixo: [code]10:23:30.366 [http-bio-8080-exec-9] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:23:30.366 [http-bio-8080-exec-9] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; to: '/javax.faces.resource/fundo_barra_rodape.png.jsf' 10:23:30.366 [http-bio-8080-exec-9] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /admin/**; matched=false 10:23:30.382 [http-bio-8080-exec-9] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /restrito/**; matched=false 10:23:30.382 [http-bio-8080-exec-9] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:23:30.382 [http-bio-8080-exec-9] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 10:23:30.382 [http-bio-8080-exec-9] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 10:23:30.382 [http-bio-8080-exec-9] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:23:30.382 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:23:30.398 [http-bio-8080-exec-9] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/restrito/principal.jsf'; pattern is /**; matched=true 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No HttpSession currently exists 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: null. A new one will be created. 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /admin/**; matched=false 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /restrito/**; matched=true 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Secure object: FilterInvocation: URL: /restrito/principal.jsf; Attributes: [ROLE_USUARIO] 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.access.vote.AffirmativeBased - Voter: org.springframework.security.access.vote.RoleVoter@1502431, returned: -1 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.access.vote.AffirmativeBased - Voter: org.springframework.security.access.vote.AuthenticatedVoter@7814d1, returned: 0 10:24:54.826 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Access is denied (user is anonymous); redirecting to authentication entry point org.springframework.security.access.AccessDeniedException: Access is denied at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:71) ~[spring-security-core-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:204) ~[spring-security-core-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:106) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:112) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [catalina.jar:7.0.27] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [catalina.jar:7.0.27] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) [catalina.jar:7.0.27] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.27] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [catalina.jar:7.0.27] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) [tomcat-coyote.jar:7.0.27] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) [tomcat-coyote.jar:7.0.27] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307) [tomcat-coyote.jar:7.0.27] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_02] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_02] at java.lang.Thread.run(Unknown Source) [na:1.7.0_02] 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.HttpSessionRequestCache - DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/FinanceiroWeb/restrito/principal.jsf] 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Calling Authentication entry point. 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.web.DefaultRedirectStrategy - Redirecting to 'http://localhost:8080/FinanceiroWeb/publico/login.jsf;jsessionid=320ED2FA0A61C03093754B62C4EA970F' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/publico/login.jsf'; to: '/publico/login.jsf' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/publico/login.jsf'; pattern is /**; matched=true 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1cf1a2b. A new one will be created. 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: both null (property equals) 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - requestURI: arg1=/FinanceiroWeb/restrito/principal.jsf; arg2=/FinanceiroWeb/publico/login.jsf;jsessionid=320ED2FA0A61C03093754B62C4EA970F (property not equals) 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6fabe8e0: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ANONYMOUS' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/publico/login.jsf'; to: '/publico/login.jsf' 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/login.jsf'; pattern is /admin/**; matched=false 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/login.jsf'; pattern is /restrito/**; matched=false 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf reached end of additional filter chain; proceeding with original chain 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 10:24:54.842 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit Jun 25, 2013 10:24:54 AM com.sun.faces.context.SessionMap put Advertência: JSF1063: AVISO! Definindo valor de atributo não serializável em HttpSession (chave: contextoBean, classe do valor: financeiroweb.ContextoBean). 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:24:54.874 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/estilo.css.jsf'; to: '/javax.faces.resource/estilo.css.jsf' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/estilo.css.jsf'; pattern is /**; matched=true 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1cf1a2b. A new one will be created. 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: arg1=null; arg2=ln=css (property not equals) 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6fabe8e0: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ANONYMOUS' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/estilo.css.jsf'; to: '/javax.faces.resource/estilo.css.jsf' 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/estilo.css.jsf'; pattern is /admin/**; matched=false 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/estilo.css.jsf'; pattern is /restrito/**; matched=false 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css reached end of additional filter chain; proceeding with original chain 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:24:54.889 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/logotipo_g.png.jsf'; to: '/javax.faces.resource/logotipo_g.png.jsf' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/logotipo_g.png.jsf'; pattern is /**; matched=true 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1cf1a2b. A new one will be created. 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: arg1=null; arg2=ln=imagens (property not equals) 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6fabe8e0: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ANONYMOUS' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/logotipo_g.png.jsf'; to: '/javax.faces.resource/logotipo_g.png.jsf' 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/logotipo_g.png.jsf'; pattern is /admin/**; matched=false 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/logotipo_g.png.jsf'; pattern is /restrito/**; matched=false 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:24:54.906 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:24:54.922 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:24:54.922 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_menu.png.jsf'; to: '/javax.faces.resource/fundo_barra_menu.png.jsf' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/fundo_barra_menu.png.jsf'; pattern is /**; matched=true 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1cf1a2b. A new one will be created. 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: arg1=null; arg2=ln=imagens (property not equals) 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6fabe8e0: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ANONYMOUS' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_menu.png.jsf'; to: '/javax.faces.resource/fundo_barra_menu.png.jsf' 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_menu.png.jsf'; pattern is /admin/**; matched=false 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_menu.png.jsf'; pattern is /restrito/**; matched=false 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 10:24:54.922 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; to: '/javax.faces.resource/fundo_barra_rodape.png.jsf' 10:24:54.937 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /**; matched=true 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1cf1a2b. A new one will be created. 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: arg1=null; arg2=ln=imagens (property not equals) 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6fabe8e0: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ANONYMOUS' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; to: '/javax.faces.resource/fundo_barra_rodape.png.jsf' 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /admin/**; matched=false 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /restrito/**; matched=false 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 10:24:54.937 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/j_spring_security_check'; to: '/j_spring_security_check' 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/j_spring_security_check'; pattern is /**; matched=true 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /j_spring_security_check at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1cf1a2b. A new one will be created. 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /j_spring_security_check at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /j_spring_security_check at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:25:19.850 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.UsernamePasswordAuthenticationFilter - Request is to process authentication 10:25:19.882 [http-bio-8080-exec-10] DEBUG o.s.s.authentication.ProviderManager - Authentication attempt using org.springframework.security.authentication.dao.DaoAuthenticationProvider 10:25:19.882 [http-bio-8080-exec-10] DEBUG o.s.jdbc.core.JdbcTemplate - Executing prepared SQL query 10:25:19.882 [http-bio-8080-exec-10] DEBUG o.s.jdbc.core.JdbcTemplate - Executing prepared SQL statement [SELECT email, senha, ativo FROM usuario WHERE email = ?] 10:25:19.897 [http-bio-8080-exec-10] DEBUG o.s.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.jdbc.core.JdbcTemplate - Executing prepared SQL query 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.jdbc.core.JdbcTemplate - Executing prepared SQL statement [SELECT u.email, p.permissao FROM usuario u, usuario_permissao p WHERE u.codigo = p.usuario AND u.email = ?] 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.s.SessionFixationProtectionStrategy - Invalidating session with Id '320ED2FA0A61C03093754B62C4EA970F' and migrating attributes. 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.s.SessionFixationProtectionStrategy - Started new session: EEDCFFBC8868B8C519EF36C945215F51 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.UsernamePasswordAuthenticationFilter - Authentication success. Updating SecurityContextHolder to contain: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@479ddaef: Principal: org.springframework.security.core.userdetails.User@ea0190a1: Username: aloisce@gmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMINISTRADOR,ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ADMINISTRADOR, ROLE_USUARIO 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.r.TokenBasedRememberMeServices - Did not send remember-me cookie (principal did not set parameter '_spring_security_remember_me') 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.r.TokenBasedRememberMeServices - Remember-me login not requested. 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.s.HttpSessionRequestCache - Removing DefaultSavedRequest from session if present 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.web.DefaultRedirectStrategy - Redirecting to '/FinanceiroWeb/restrito/principal.jsf' 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext stored to HttpSession: 'org.springframework.security.core.context.SecurityContextImpl@479ddaef: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@479ddaef: Principal: org.springframework.security.core.userdetails.User@ea0190a1: Username: aloisce@gmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMINISTRADOR,ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ADMINISTRADOR, ROLE_USUARIO' 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/restrito/principal.jsf'; pattern is /**; matched=true 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@479ddaef: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@479ddaef: Principal: org.springframework.security.core.userdetails.User@ea0190a1: Username: aloisce@gmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMINISTRADOR,ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ADMINISTRADOR, ROLE_USUARIO' 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 10:25:19.945 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.r.RememberMeAuthenticationFilter - SecurityContextHolder not populated with remember-me token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@479ddaef: Principal: org.springframework.security.core.userdetails.User@ea0190a1: Username: aloisce@gmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMINISTRADOR,ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ADMINISTRADOR, ROLE_USUARIO' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@479ddaef: Principal: org.springframework.security.core.userdetails.User@ea0190a1: Username: aloisce@gmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMINISTRADOR,ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ADMINISTRADOR, ROLE_USUARIO' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /admin/**; matched=false 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /restrito/**; matched=true 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Secure object: FilterInvocation: URL: /restrito/principal.jsf; Attributes: [ROLE_USUARIO] 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Previously Authenticated: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@479ddaef: Principal: org.springframework.security.core.userdetails.User@ea0190a1: Username: aloisce@gmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMINISTRADOR,ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe9938: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 320ED2FA0A61C03093754B62C4EA970F; Granted Authorities: ROLE_ADMINISTRADOR, ROLE_USUARIO 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.access.vote.AffirmativeBased - Voter: org.springframework.security.access.vote.RoleVoter@1502431, returned: 1 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Authorization successful 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - RunAsManager did not change Authentication object 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf reached end of additional filter chain; proceeding with original chain 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 10:25:19.961 [http-bio-8080-exec-10] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 10:25:20.148 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.QueryTranslatorImpl - parse() - HQL: select u from financeiro.usuario.Usuario u where u.login = :login 10:25:20.163 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- HQL AST --- \-[QUERY] Node: 'query' +-[SELECT_FROM] Node: 'SELECT_FROM' | +-[FROM] Node: 'from' | | \-[RANGE] Node: 'RANGE' | | +-[DOT] Node: '.' | | | +-[DOT] Node: '.' | | | | +-[IDENT] Node: 'financeiro' | | | | \-[IDENT] Node: 'usuario' | | | \-[IDENT] Node: 'Usuario' | | \-[ALIAS] Node: 'u' | \-[SELECT] Node: 'select' | \-[IDENT] Node: 'u' \-[WHERE] Node: 'where' \-[EQ] Node: '=' +-[DOT] Node: '.' | +-[IDENT] Node: 'u' | \-[IDENT] Node: 'login' \-[COLON] Node: ':' \-[IDENT] Node: 'login' 10:25:20.163 [http-bio-8080-exec-10] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors 10:25:20.226 [http-bio-8080-exec-10] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select << begin [level=1, statement=select] 10:25:20.257 [http-bio-8080-exec-10] DEBUG o.h.h.internal.ast.tree.FromElement - FromClause{level=1} : financeiro.usuario.Usuario (u) -> usuario0_ 10:25:20.257 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : u -> usuario0_.codigo 10:25:20.273 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : u -> usuario0_.codigo 10:25:20.273 [http-bio-8080-exec-10] DEBUG o.h.hql.internal.ast.tree.DotNode - getDataType() : login -> org.hibernate.type.StringType@36afc 10:25:20.273 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.tree.FromReferenceNode - Resolved : u.login -> usuario0_.login 10:25:20.273 [http-bio-8080-exec-10] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select : finishing up [level=1, statement=select] 10:25:20.288 [http-bio-8080-exec-10] DEBUG o.h.hql.internal.ast.HqlSqlWalker - processQuery() : ( SELECT ( {select clause} usuario0_.codigo ) ( FromClause{level=1} Usuario usuario0_ ) ( where ( = ( usuario0_.login usuario0_.codigo login ) ? ) ) ) 10:25:20.304 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.util.JoinProcessor - Using FROM fragment [Usuario usuario0_] 10:25:20.304 [http-bio-8080-exec-10] DEBUG o.h.h.i.antlr.HqlSqlBaseWalker - select >> end [level=1, statement=select] 10:25:20.304 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.QueryTranslatorImpl - --- SQL AST --- \-[SELECT] QueryNode: 'SELECT' querySpaces (Usuario) +-[SELECT_CLAUSE] SelectClause: '{select clause}' | +-[ALIAS_REF] IdentNode: 'usuario0_.codigo as codigo0_' {alias=u, className=financeiro.usuario.Usuario, tableAlias=usuario0_} | \-[SQL_TOKEN] SqlFragment: 'usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_' +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[u], fromElementByTableAlias=[usuario0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]} | \-[FROM_FRAGMENT] FromElement: 'Usuario usuario0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=u,role=null,tableName=Usuario,tableAlias=usuario0_,origin=null,columns={,className=financeiro.usuario.Usuario}} \-[WHERE] SqlNode: 'where' \-[EQ] BinaryLogicOperatorNode: '=' +-[DOT] DotNode: 'usuario0_.login' {propertyName=login,dereferenceType=ALL,propertyPath=login,path=u.login,tableAlias=usuario0_,className=financeiro.usuario.Usuario,classAlias=u} | +-[ALIAS_REF] IdentNode: 'usuario0_.codigo' {alias=u, className=financeiro.usuario.Usuario, tableAlias=usuario0_} | \-[IDENT] IdentNode: 'login' {originalText=login} \-[NAMED_PARAM] ParameterNode: '?' {name=login, expectedType=org.hibernate.type.StringType@36afc} 10:25:20.304 [http-bio-8080-exec-10] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors 10:25:20.304 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.QueryTranslatorImpl - HQL: select u from financeiro.usuario.Usuario u where u.login = :login 10:25:20.304 [http-bio-8080-exec-10] DEBUG o.h.h.i.ast.QueryTranslatorImpl - SQL: select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:25:20.319 [http-bio-8080-exec-10] DEBUG o.h.hql.internal.ast.ErrorCounter - throwQueryException() : no errors 10:25:20.382 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 10:25:20.491 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_,
Spring Framework java.lang.IllegalArgumentException alois Agora vou verificar o que foi feito pra consertar.
Spring Framework java.lang.IllegalArgumentException alois O console ainda me dá a mensagem de acesso negado onde antes não me lembro de ter alterado alguma coisa sobre a área restrita e administrativa da aplicação. Console: [code]12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.r.RememberMeAuthenticationFilter - SecurityContextHolder not populated with remember-me token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.280 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:11.281 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_menu.png.jsf'; to: '/javax.faces.resource/fundo_barra_menu.png.jsf' 12:53:11.282 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/fundo_barra_menu.png.jsf'; pattern is /**; matched=true 12:53:11.282 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:11.282 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/logout16.png.jsf'; to: '/javax.faces.resource/logout16.png.jsf' 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@be9b169c: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.282 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/logout16.png.jsf'; pattern is /admin/**; matched=false 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:11.282 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/logout16.png.jsf'; pattern is /restrito/**; matched=false 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:11.282 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:11.282 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logout16.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:11.282 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.r.RememberMeAuthenticationFilter - SecurityContextHolder not populated with remember-me token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.283 [http-bio-8080-exec-7] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:11.283 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:11.283 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:11.283 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_menu.png.jsf'; to: '/javax.faces.resource/fundo_barra_menu.png.jsf' 12:53:11.283 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_menu.png.jsf'; pattern is /admin/**; matched=false 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_menu.png.jsf'; pattern is /restrito/**; matched=false 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_menu.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 12:53:11.283 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 12:53:11.290 [http-bio-8080-exec-7] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 12:53:11.292 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 12:53:11.292 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 12:53:11.293 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 12:53:11.293 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 12:53:11.293 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 12:53:11.293 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 12:53:11.307 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 12:53:11.307 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 12:53:11.307 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 12:53:11.312 [http-bio-8080-exec-8] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 12:53:11.313 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 12:53:11.313 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 12:53:11.313 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 12:53:11.313 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 12:53:11.314 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 12:53:11.314 [http-bio-8080-exec-8] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; to: '/javax.faces.resource/fundo_barra_rodape.png.jsf' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /**; matched=true 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@be9b169c: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.r.RememberMeAuthenticationFilter - SecurityContextHolder not populated with remember-me token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; to: '/javax.faces.resource/fundo_barra_rodape.png.jsf' 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /admin/**; matched=false 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/fundo_barra_rodape.png.jsf'; pattern is /restrito/**; matched=false 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/fundo_barra_rodape.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 12:53:11.345 [http-bio-8080-exec-6] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 12:53:11.355 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 12:53:11.355 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 12:53:11.355 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 12:53:11.355 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 12:53:11.355 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 12:53:11.355 [http-bio-8080-exec-6] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/publico/usuario.jsf'; to: '/publico/usuario.jsf' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/publico/usuario.jsf'; pattern is /**; matched=true 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@be9b169c: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.r.RememberMeAuthenticationFilter - SecurityContextHolder not populated with remember-me token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/publico/usuario.jsf'; to: '/publico/usuario.jsf' 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/usuario.jsf'; pattern is /admin/**; matched=false 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/usuario.jsf'; pattern is /restrito/**; matched=false 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.s.security.web.FilterChainProxy - /publico/usuario.jsf reached end of additional filter chain; proceeding with original chain 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 12:53:22.177 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 12:53:22.209 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 12:53:22.209 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 12:53:22.209 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 12:53:22.219 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 12:53:22.219 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 12:53:22.219 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 12:53:22.229 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 12:53:22.239 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 12:53:22.239 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 12:53:22.239 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 12:53:22.239 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 12:53:22.259 [http-bio-8080-exec-6] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 12:53:22.259 [http-bio-8080-exec-6] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 12:53:22.259 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 12:53:22.259 [http-bio-8080-exec-6] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 12:53:22.259 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 12:53:22.259 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 12:53:22.259 [http-bio-8080-exec-6] DEBUG o.h.e.j.i.p.ConnectionProxyHandler - HHH000163: Logical connection releasing its physical connection 12:53:22.259 [http-bio-8080-exec-6] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 12:53:22.269 [http-bio-8080-exec-6] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 12:53:30.811 [http-bio-8080-exec-2] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/j_spring_security_logout'; to: '/j_spring_security_logout' 12:53:30.811 [http-bio-8080-exec-2] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/j_spring_security_logout'; pattern is /**; matched=true 12:53:30.811 [http-bio-8080-exec-2] DEBUG o.s.security.web.FilterChainProxy - /j_spring_security_logout at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:30.811 [http-bio-8080-exec-2] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@be9b169c: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' 12:53:30.811 [http-bio-8080-exec-2] DEBUG o.s.security.web.FilterChainProxy - /j_spring_security_logout at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:30.811 [http-bio-8080-exec-2] DEBUG o.s.s.w.a.logout.LogoutFilter - Logging out user 'org.springframework.security.authentication.UsernamePasswordAuthenticationToken@be9b169c: Principal: org.springframework.security.core.userdetails.User@8b64bfe8: Username: leudamarinho@hotmail.com; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_USUARIO; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: B0443E3CD832767BF6A324CF89B2641C; Granted Authorities: ROLE_USUARIO' and transferring to logout destination 12:53:30.821 [http-bio-8080-exec-2] DEBUG o.s.s.w.a.r.TokenBasedRememberMeServices - Logout of user leudamarinho@hotmail.com 12:53:30.821 [http-bio-8080-exec-2] DEBUG o.s.s.w.a.r.TokenBasedRememberMeServices - Cancelling cookie 12:53:30.821 [http-bio-8080-exec-2] DEBUG o.s.s.w.a.l.SimpleUrlLogoutSuccessHandler - Using default Url: / 12:53:30.821 [http-bio-8080-exec-2] DEBUG o.s.s.web.DefaultRedirectStrategy - Redirecting to '/FinanceiroWeb/' 12:53:30.821 [http-bio-8080-exec-2] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 12:53:30.821 [http-bio-8080-exec-2] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/restrito/principal.jsf'; pattern is /**; matched=true 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No HttpSession currently exists 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: null. A new one will be created. 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.SessionManagementFilter - Requested session IDFD079E95F0807A8042B54CF76C7E76FE is invalid. 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.security.web.FilterChainProxy - /restrito/principal.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/restrito/principal.jsf'; to: '/restrito/principal.jsf' 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /admin/**; matched=false 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/restrito/principal.jsf'; pattern is /restrito/**; matched=true 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Secure object: FilterInvocation: URL: /restrito/principal.jsf; Attributes: [ROLE_USUARIO] 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.access.vote.AffirmativeBased - Voter: org.springframework.security.access.vote.RoleVoter@58e945, returned: -1 12:53:30.932 [http-bio-8080-exec-3] DEBUG o.s.s.access.vote.AffirmativeBased - Voter: org.springframework.security.access.vote.AuthenticatedVoter@13ac4ae, returned: 0 12:53:30.942 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Access is denied (user is anonymous); redirecting to authentication entry point org.springframework.security.access.AccessDeniedException: Access is denied at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:71) ~[spring-security-core-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:204) ~[spring-security-core-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:106) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) ~[spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:112) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) [spring-security-web-3.0.8.RELEASE.jar:3.0.8.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.27] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [catalina.jar:7.0.27] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [catalina.jar:7.0.27] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) [catalina.jar:7.0.27] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) [catalina.jar:7.0.27] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.27] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [catalina.jar:7.0.27] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) [tomcat-coyote.jar:7.0.27] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) [tomcat-coyote.jar:7.0.27] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) [tomcat-coyote.jar:7.0.27] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_02] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_02] at java.lang.Thread.run(Unknown Source) [na:1.7.0_02] 12:53:30.942 [http-bio-8080-exec-3] DEBUG o.s.s.w.s.HttpSessionRequestCache - DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/FinanceiroWeb/restrito/principal.jsf] 12:53:30.942 [http-bio-8080-exec-3] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Calling Authentication entry point. 12:53:30.942 [http-bio-8080-exec-3] DEBUG o.s.s.web.DefaultRedirectStrategy - Redirecting to 'http://localhost:8080/FinanceiroWeb/publico/login.jsf' 12:53:30.942 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 12:53:30.942 [http-bio-8080-exec-3] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/publico/login.jsf'; to: '/publico/login.jsf' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/publico/login.jsf'; pattern is /**; matched=true 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1b6ada2. A new one will be created. 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: both null (property equals) 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.DefaultSavedRequest - requestURI: arg1=/FinanceiroWeb/restrito/principal.jsf; arg2=/FinanceiroWeb/publico/login.jsf (property not equals) 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9056f12c: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@380f4: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 81C334E265DCBBE55DCF1753268904E4; Granted Authorities: ROLE_ANONYMOUS' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/publico/login.jsf'; to: '/publico/login.jsf' 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/login.jsf'; pattern is /admin/**; matched=false 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/publico/login.jsf'; pattern is /restrito/**; matched=false 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /publico/login.jsf reached end of additional filter chain; proceeding with original chain 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 12:53:30.982 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 12:53:31.013 [http-bio-8080-exec-7] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 12:53:31.018 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 12:53:31.018 [http-bio-8080-exec-7] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 12:53:31.020 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 12:53:31.020 [http-bio-8080-exec-7] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 12:53:31.021 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 12:53:31.021 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or anonymous - context will not be stored in HttpSession. 12:53:31.021 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed Jun 23, 2013 12:53:31 PM com.sun.faces.context.SessionMap put Advertência: JSF1063: AVISO! Definindo valor de atributo não serializável em HttpSession (chave: contextoBean, classe do valor: financeiroweb.ContextoBean). 12:53:31.075 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/logotipo_g.png.jsf'; to: '/javax.faces.resource/logotipo_g.png.jsf' 12:53:31.075 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/logotipo_g.png.jsf'; pattern is /**; matched=true 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1b6ada2. A new one will be created. 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: arg1=null; arg2=ln=imagens (property not equals) 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9056f12c: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@380f4: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 81C334E265DCBBE55DCF1753268904E4; Granted Authorities: ROLE_ANONYMOUS' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/logotipo_g.png.jsf'; to: '/javax.faces.resource/logotipo_g.png.jsf' 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/logotipo_g.png.jsf'; pattern is /admin/**; matched=false 12:53:31.076 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/logotipo_g.png.jsf'; pattern is /restrito/**; matched=false 12:53:31.077 [http-bio-8080-exec-8] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 12:53:31.077 [http-bio-8080-exec-8] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/logotipo_g.png.jsf?ln=imagens reached end of additional filter chain; proceeding with original chain 12:53:31.077 [http-bio-8080-exec-8] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin 12:53:31.077 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection 12:53:31.077 [http-bio-8080-exec-8] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection 12:53:31.077 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true 12:53:31.077 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - Converted URL to lowercase, from: '/javax.faces.resource/estilo.css.jsf'; to: '/javax.faces.resource/estilo.css.jsf' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - Candidate is: '/javax.faces.resource/estilo.css.jsf'; pattern is /**; matched=true 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 1 of 10 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - HttpSession returned null object for SPRING_SECURITY_CONTEXT 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1b6ada2. A new one will be created. 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 2 of 10 in additional filter chain; firing Filter: 'LogoutFilter' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 3 of 10 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 4 of 10 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.DefaultSavedRequest - pathInfo: both null (property equals) 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.DefaultSavedRequest - queryString: arg1=null; arg2=ln=css (property not equals) 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.s.w.s.HttpSessionRequestCache - saved request doesn't match 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 5 of 10 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 6 of 10 in additional filter chain; firing Filter: 'RememberMeAuthenticationFilter' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 7 of 10 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9056f12c: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@380f4: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 81C334E265DCBBE55DCF1753268904E4; Granted Authorities: ROLE_ANONYMOUS' 12:53:31.079 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 8 of 10 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:53:31.082 [http-bio-8080-exec-8] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 12:53:31.083 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 9 of 10 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:53:31.083 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css at position 10 of 10 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:53:31.083 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 12:53:31.084 [http-bio-8080-exec-8] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 12:53:31.084 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Converted URL to lowercase, from: '/javax.faces.resource/estilo.css.jsf'; to: '/javax.faces.resource/estilo.css.jsf' 12:53:31.084 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/estilo.css.jsf'; pattern is /admin/**; matched=false 12:53:31.084 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.DefaultFilterInvocationSecurityMetadataSource - Candidate is: '/javax.faces.resource/estilo.css.jsf'; pattern is /restrito/**; matched=false 12:53:31.084 [http-bio-8080-exec-7] DEBUG o.s.s.w.a.i.FilterSecurityInterceptor - Public object - authentication not attempted 12:53:31.084 [http-bio-8080-exec-7] DEBUG o.s.security.web.FilterChainProxy - /javax.faces.resource/estilo.css.jsf?ln=css reached end of additional filter chain; proceeding with original chain 12:53:31.084 [h
Spring Framework java.lang.IllegalArgumentException alois Só que depois que reiniciei o Eclipse ficaram sem indicação de erros. Poxa tô confuso agora o que será que não deixa carregar a página de logado para ambas as regras (administrador e usuário)?
Spring Framework java.lang.IllegalArgumentException alois Fiz o rebuild e apareceu duas classes com erros: Principal XHTML: [code]<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <ui:composition template="/templates/interna.xhtml"> <ui:define name="titulo"> Área Administrativa </ui:define> <ui:define name="corpo"> <h:form> <h:messages /> <h:dataTable value="#{usuarioBean.lista}" var="usuario" rules="rows" cellpadding="5"> <f:facet name="caption"> A listagem a seguir exibe a relação de todos os usuários do sistema. Você poderá realizar ativação e desativação, edição e exclusão para os usuários. </f:facet> <f:facet name="header">Listagem de Usuários</f:facet> <f:facet name="footer">Final da Listagem</f:facet> <h:column> <h:commandLink action="#{usuarioBean.ativar}"> <h:graphicImage library="imagens" name="usuario_ativo_#{usuario.ativo}.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Código</f:facet> #{usuario.codigo} </h:column> <h:column> <h:graphicImage library="imagens" name="bandeira_#{usuario.idioma}.png" /> </h:column> <h:column> <f:facet name="header">Nome</f:facet> #{usuario.nome} </h:column> <h:column> <f:facet name="header">e-Mail</f:facet> <a href="mailto:#{usuario.email}">#{usuario.email}</a> </h:column> <h:column> <h:commandLink action="#{usuarioBean.editar}"> <h:graphicImage library="imagens" name="editar16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> <f:setPropertyActionListener target="#{usuarioBean.destinoSalvar}" value="/admin/principal" /> </h:commandLink> </h:column> <h:column> <h:commandLink action="#{usuarioBean.excluir}" onclick="if (!confirm(confirma a exclusão do usuário #{usuario.nome}?)) return false;"> <h:graphicImage library="imagens" name="excluir16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Permissões</f:facet> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_ADMINISTRADOR')}" title="Permissão Administrador"> <h:graphicImage library="imagens" name="ROLE_ADMINISTRADOR_#{usuario.permissao.contains('ROLE_ADMINISTRADOR')}.png" style="border:0" /> </h:commandLink> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_USUARIO_VIP')}" title="Permissão Usuário VIP" > <h:graphicImage library="imagens" name="ROLE_USUARIO_VIP_#{usuario.permissao.contains('ROLE_USUARIO_VIP')}.png" style="border:0"/> </h:commandLink> </h:column> </h:dataTable> </h:form> </ui:define> </ui:composition> </html>[/code] Nestas duas linhas: <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_ADMINISTRADOR')}" e <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_USUARIO_VIP')}" e nesta classe: Conta.xhtml [code]<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:sec="http://www.springframework.org/security/facelets/tags"> <ui:composition template="/templates/interna.xhtml"> <ui:define name="titulo"> Cadastro de Contas </ui:define> <ui:define name="corpo"> <h:form id="edicao"> <h:messages /> <h:inputHidden value="#{contaBean.selecionada.conta}" /> <h:inputHidden value="#{contaBean.selecionada.favorita}" /> <h:panelGrid columns="2"> <h:outputLabel value="Descrição: " for="descricao" /> <h:inputText id="descricao" value="#{contaBean.selecionada.descricao}" required="true" maxlength="45" /> <h:outputLabel value="Saldo Inicial: " for="saldoInicial" /> <h:inputText id="saldoInicial" value="#{contaBean.selecionada.saldoInicial}" size="10"> <f:convertNumber minFractionDigits="2" /> </h:inputText> <h:commandButton value="Salvar" action="#{contaBean.salvar}"> <f:ajax execute="@form" render=":edicao :listagem" /> </h:commandButton> </h:panelGrid> </h:form> <h:form id="listagem"> <h:dataTable value="#{contaBean.lista}" var="conta" rendered="#{!empty contaBean.lista}"> <h:dataTable value="#{contaBean.lista}" var="conta" rendered="#{!empty contaBean.lista}"> <h:column> <f:facet name="header">Descrição</f:facet> #{conta.descricao} </h:column> <h:column> <f:facet name="header">Data Cadastro</f:facet> <h:outputText value="#{conta.dataCadastro}"> <f:convertDateTime dateStyle="medium" /> </h:outputText> </h:column> <h:column> <f:facet name="header">Saldo Inicial</f:facet> <h:outputText value="#{conta.saldoInicial}" style="text-align:right; display:block;"> <f:convertNumber minFractionDigits="2" /> </h:outputText> </h:column> <h:column> <h:commandLink action="#{contaBean.tornarfavorita}"> <f:ajax execute="@this" render=":listagem" /> <h:graphicImage library="images" name="favorita16_#{conta.favorita.png" /> <f:setPropertyActionListener target="#{contaBean.selecionada}" value="#conta" /> </h:commandLink> </h:column> <h:column> <h:commandLink> <f:ajax execute="@this" render=":edicao" /> <h:graphicImage library="images" name="editar16.png" /> <f:setPropertyActionListener target="#{conntaBean.selecionada" value="#{conta}" /> </h:commandLink> </h:column> <h:column> <h:commandLink action="#{contaBean.excluir}"> <f:ajax execute="@this" render=":listagem" /> <h:graphicImage library="imagens" name="excluir16.png" /> <f:setPropertyActionListener target="#{contaBean.selecionada}" value="#{conta}" /> </h:commandLink> </h:column> </h:dataTable> </h:dataTable> </h:form> </ui:define> </ui:composition> </html>[/code] nestas duas linhas: <h:commandButton value="Salvar" action="#{contaBean.salvar}"> e h:commandLink action="#{contaBean.excluir}">
Spring Framework java.lang.IllegalArgumentException alois Desculpe amigo mas ainda não. Estou analisando e não consigo ver o erro que cometi. O método existe mas não sei porque dá erro.
Spring Framework java.lang.IllegalArgumentException alois Eis a classe ContextoBean.java : [code]package financeiroweb; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import javax.faces.context.ExternalContext; import javax.faces.context.FacesContext; import javax.faces.event.ValueChangeEvent; import financeiro.conta.Conta; import financeiro.conta.ContaRN; import financeiro.usuario.Usuario; import financeiro.usuario.UsuarioRN; @ManagedBean(name = "contextoBean") @SessionScoped public class ContextoBean { private Usuario usuarioLogado = null; private Conta contaAtiva = null; public Usuario getUsuarioLogado(){ FacesContext context = FacesContext.getCurrentInstance(); ExternalContext external = context.getExternalContext(); String login = external.getRemoteUser(); if (this.usuarioLogado == null || !login.equals(this.usuarioLogado.getLogin())){ if(login != null){ UsuarioRN usuarioRN = new UsuarioRN(); this.usuarioLogado = usuarioRN.buscarPorLogin(login); this.contaAtiva = null; } } return usuarioLogado; } public void setUsuarioLogado(Usuario usuario){ this.usuarioLogado = usuario; } public Conta getContaAtiva(){ if(this.contaAtiva == null){ Usuario usuario = this.getUsuarioLogado(); ContaRN contaRN = new ContaRN(); this.contaAtiva = contaRN.buscarFavorita(usuario); if(this.contaAtiva == null){ List<Conta> contas = contaRN.listar(usuario); if(contas != null){ for(Conta conta : contas){ this.contaAtiva = conta; break; } } } } return this.contaAtiva; } public void setContaAtiva(ValueChangeEvent event){ Integer conta = (Integer) event.getNewValue(); ContaRN contaRN = new ContaRN(); this.contaAtiva = contaRN.carregar(conta); } } [/code]
Spring Framework java.lang.IllegalArgumentException alois Valeu, vou analisar depois respondo.
Spring Framework java.lang.IllegalArgumentException alois Erro no console: [code]Mai 30, 2013 10:45:37 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException Grave: Error Rendering View[/restrito/principal.xhtml] javax.el.PropertyNotFoundException: Property 'setContaAtiva' not found on type financeiroweb.ContextoBean at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:237) at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:214) at javax.el.BeanELResolver.property(BeanELResolver.java:325) at javax.el.BeanELResolver.getValue(BeanELResolver.java:85) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:67) at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72) at com.sun.el.parser.AstValue.getValue(AstValue.java:116) at com.sun.el.parser.AstValue.getValue(AstValue.java:163) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219) at com.sun.faces.facelets.el.ELText$ELTextVariable.toString(ELText.java:207) at com.sun.faces.facelets.el.ELText$ELTextComposite.toString(ELText.java:148) at com.sun.faces.facelets.compiler.CommentInstruction.write(CommentInstruction.java:70) at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:75) at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:176) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at financeiro.web.filter.ConexaoHibernateFilter.doFilter(ConexaoHibernateFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 22:45:37.593 [http-bio-8080-exec-9] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 22:45:37.593 [http-bio-8080-exec-9] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 22:45:37.593 [http-bio-8080-exec-9] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.h.e.j.i.p.ConnectionProxyHandler - HHH000163: Logical connection releasing its physical connection 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 22:45:37.612 [http-bio-8080-exec-9] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed[/code]
Spring Framework java.lang.IllegalArgumentException alois A parte do código que dá problema é essa: [code]<h:selectOneMenu value="#{contextoBean.contaAtiva.conta}" valueChangeListener="#{contextoBean.setContaAtiva}" rendered="#{!empty contextoBean}" onchange="submit()"> <f:selectItems value="#contaBean.lista" var="conta" itemValue="#{conta.conta}" itemLabel="#{conta.descricao}" /> </h:selectOneMenu>[/code] Fiz o que você pediu. Acontece de carregar a página de login e quando clico no botão dá a mensagem de erro já mostrada
Spring Framework java.lang.IllegalArgumentException alois Principal.xhtml: [code]<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <ui:composition template="/templates/interna.xhtml"> <ui:define name="titulo"> Área Administrativa </ui:define> <ui:define name="corpo"> <h:form> <h:messages /> <h:dataTable value="#{usuarioBean.lista}" var="usuario" rules="rows" cellpadding="5"> <f:facet name="caption"> A listagem a seguir exibe a relação de todos os usuários do sistema. Você poderá realizar ativação e desativação, edição e exclusão para os usuários. </f:facet> <f:facet name="header">Listagem de Usuários</f:facet> <f:facet name="footer">Final da Listagem</f:facet> <h:column> <h:commandLink action="#{usuarioBean.ativar}"> <h:graphicImage library="imagens" name="usuario_ativo_#{usuario.ativo}.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Código</f:facet> #{usuario.codigo} </h:column> <h:column> <h:graphicImage library="imagens" name="bandeira_#{usuario.idioma}.png" /> </h:column> <h:column> <f:facet name="header">Nome</f:facet> #{usuario.nome} </h:column> <h:column> <f:facet name="header">e-Mail</f:facet> <a href="mailto:#{usuario.email}">#{usuario.email}</a> </h:column> <h:column> <h:commandLink action="#{usuarioBean.editar}"> <h:graphicImage library="imagens" name="editar16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> <f:setPropertyActionListener target="#{usuarioBean.destinoSalvar}" value="/admin/principal" /> </h:commandLink> </h:column> <h:column> <h:commandLink action="#{usuarioBean.excluir}" onclick="if (!confirm(confirma a exclusão do usuário #{usuario.nome}?)) return false;"> <h:graphicImage library="imagens" name="excluir16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Permissões</f:facet> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_ADMINISTRADOR')}" title="Permissão Administrador"> <h:graphicImage library="imagens" name="ROLE_ADMINISTRADOR_#{usuario.permissao.contains('ROLE_ADMINISTRADOR')}.png" style="border:0" /> </h:commandLink> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_USUARIO_VIP')}" title="Permissão Usuário VIP" > <h:graphicImage library="imagens" name="ROLE_USUARIO_VIP_#{usuario.permissao.contains('ROLE_USUARIO_VIP')}.png" style="border:0"/> </h:commandLink> </h:column> </h:dataTable> </h:form> </ui:define> </ui:composition> </html>[/code]
Spring Framework java.lang.IllegalArgumentException alois Ok vou experimentar mas estive verificando outra coisas na classe principal.xhtml linha 68 e 74: Method must have signature "String method(), String method(), String method(String), String method(String, String), String method(String, String, String), String method(String, String, String, String), String method(String, String, String, String, String), String method(String, String, String, String, String, String), String method(String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String)" but has signature "String method(Usuario, String)"
Spring Framework java.lang.IllegalArgumentException alois Eis o código: [code]package financeiroweb; import java.util.List; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; import javax.faces.context.FacesContext; import financeiro.conta.Conta; import financeiro.conta.ContaRN; import financeiro.usuario.Usuario; import financeiro.usuario.UsuarioRN; @ManagedBean(name = "usuarioBean") @RequestScoped public class UsuarioBean { private Usuario usuario = new Usuario(); private String confirmarSenha; private List<Usuario> lista; private String destinoSalvar; private Conta conta = new Conta(); public String novo() { this.destinoSalvar = "usuarioSucesso"; this.usuario = new Usuario(); this.usuario.setAtivo(true); return "usuario"; } public String editar() { this.confirmarSenha = this.usuario.getSenha(); return "/publico/usuario"; } public String salvar() { FacesContext context = FacesContext.getCurrentInstance(); String senha = this.usuario.getSenha(); if (!senha.equals(this.confirmarSenha)) { FacesMessage facesMessage = new FacesMessage( "A senha não foi confirmada corretamente"); context.addMessage(null, facesMessage); return null; } UsuarioRN usuarioRN = new UsuarioRN(); usuarioRN.salvar(this.usuario); if(this.conta.getDescricao() != null){ this.conta.setUsuario(this.usuario); this.conta.setFavorita(true); ContaRN contaRN = new ContaRN(); contaRN.salvar(this.conta); } return this.destinoSalvar; } public Conta getConta() { return conta; } public void setConta(Conta conta) { this.conta = conta; } public String excluir() { UsuarioRN usuarioRN = new UsuarioRN(); usuarioRN.excluir(this.usuario); this.lista = null; return null; } public String ativar() { if (this.usuario.isAtivo()) this.usuario.setAtivo(false); else this.usuario.setAtivo(true); UsuarioRN usuarioRN = new UsuarioRN(); usuarioRN.salvar(this.usuario); return null; } public String atribuiPermissao(Usuario usuario, String permissao){ this.usuario = usuario; java.util.Set<String> permissoes = this.usuario.getPermissao(); if (permissoes.contains(permissao)){ permissoes.remove(permissao); }else{ permissoes.add(permissao); } return null; } public List<Usuario> getLista() { if (this.lista == null) { UsuarioRN usuarioRN = new UsuarioRN(); this.lista = usuarioRN.listar(); } return this.lista; } public void setLista(List<Usuario> lista) { this.lista = lista; } public Usuario getUsuario() { return usuario; } public void setUsuario(Usuario usuario) { this.usuario = usuario; } public String getConfirmarSenha() { return confirmarSenha; } public void setConfirmarSenha(String confirmarSenha) { this.confirmarSenha = confirmarSenha; } public String getDestinoSalvar() { return destinoSalvar; } public void setDestinoSalvar(String destinoSalvar) { this.destinoSalvar = destinoSalvar; } }[/code]
Spring Framework java.lang.IllegalArgumentException alois Acontece quando o botão é pressionado. Devo esclarecer que existe um template para ser carregado.
Spring Framework java.lang.IllegalArgumentException alois Meus caros, Estou com problema em logar no sistema e no console aparece o seguinte erro: [code] Mai 28, 2013 4:26:09 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException Grave: Error Rendering View[/restrito/principal.xhtml] java.lang.IllegalArgumentException at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:216) at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:135) at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:760) at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:842) at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:296) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at financeiro.web.filter.ConexaoHibernateFilter.doFilter(ConexaoHibernateFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 16:26:09.847 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 16:26:09.850 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 16:26:09.852 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 16:26:09.860 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select usuario0_.codigo as codigo0_, usuario0_.ativo as ativo0_, usuario0_.celular as celular0_, usuario0_.email as email0_, usuario0_.idioma as idioma0_, usuario0_.login as login0_, usuario0_.nascimento as nascimento0_, usuario0_.nome as nome0_, usuario0_.senha as senha0_ from Usuario usuario0_ where usuario0_.login=? 16:26:09.864 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null and this_.favorita=? 16:26:09.868 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - select this_.cod_conta as cod1_1_1_, this_.dat_cadastro as dat2_1_1_, this_.desc_conta as desc3_1_1_, this_.favorita as favorita1_1_, this_.saldo_inicial as saldo5_1_1_, this_.cod_usuario as cod6_1_1_, usuario2_.codigo as codigo0_0_, usuario2_.ativo as ativo0_0_, usuario2_.celular as celular0_0_, usuario2_.email as email0_0_, usuario2_.idioma as idioma0_0_, usuario2_.login as login0_0_, usuario2_.nascimento as nascimento0_0_, usuario2_.nome as nome0_0_, usuario2_.senha as senha0_0_ from conta_bancaria this_ inner join Usuario usuario2_ on this_.cod_usuario=usuario2_.codigo where this_.cod_usuario is null 16:26:09.915 [http-bio-8080-exec-10] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing 16:26:09.916 [http-bio-8080-exec-10] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - committed JDBC Connection 16:26:09.916 [http-bio-8080-exec-10] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - re-enabling autocommit 16:26:09.917 [http-bio-8080-exec-10] DEBUG o.h.e.j.i.LogicalConnectionImpl - Releasing JDBC connection 16:26:09.917 [http-bio-8080-exec-10] DEBUG o.h.e.j.i.LogicalConnectionImpl - Released JDBC connection 16:26:09.918 [http-bio-8080-exec-10] DEBUG o.h.e.j.i.p.ConnectionProxyHandler - HHH000163: Logical connection releasing its physical connection 16:26:09.918 [http-bio-8080-exec-10] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally 16:26:09.918 [http-bio-8080-exec-10] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed [/code] A classe do erro: [code] <?xml version="1.0" encoding="ISO-8859-1" ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:sec="http://www.springframework.org/security/facelets/tags"> <ui:composition template="/templates/principal.xhtml"> <ui:define name="corpo"> Usuário logado #{request.remoteUser} <br /> Nome do Usuário Logado #{contextoBean.usuarioLogado.nome} <h:form> <h:commandButton value="Conta" action="conta" /> <h:selectOneMenu value="#{contextoBean.contaAtiva.conta}" valueChangeListener="#{contextoBean.setContaAtiva}" rendered="#{!empty contextoBean}" onchange="submit()"> <f:selectItems value="#contaBean.lista" var="conta" itemValue="#{conta.conta}" itemLabel="#{conta.descricao}" /> </h:selectOneMenu> <sec:ifAnyGranted roles="ROLE_ADMINISTRADOR"> <h:commandLink action="/admin/principal" title="Administrativo"> <h:graphicImage library="imagens" name="administrativo16.png" /> </h:commandLink> </sec:ifAnyGranted> <a onclick="document.location='#{request.contextPath}/j_spring_security_logout'" title="Sair"> <h:graphicImage library="imagens" name="logout16.png" /> </a> </h:form> </ui:define> </ui:composition> </html> [/code] Não estou entendendo onde pode estar o erro. Isso aconteceu depois que comecei a trabalhar com facelets e CSS. Aguardo ajuda.
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Olá Marcelo, Em primeiro lugar desculpas pela demora. Consegui fazer o sistema funcionar observando bem os artigos indicados por você e vendo o retorno do authorities-by-username-query e users-by-username-query. Realmente era por ali o problema tirei também o MD5 que precisava fazer mais implementações no sistema.. Obrigado pelas dicas. Vou administrar melhor o tempo e responder em tempo habil. :!:
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Ok te respondo logo que puder.
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Amigo sou novo no Java e não consegui entender bem o que você disse. Por favor poderia me dizer mais a respeito?
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Login [code]<?xml version="1.0" encoding="ISO-8859-1" ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <h:head> <title>Login</title> </h:head> <h:body> <h:form> <h:commandButton action="#{usuarioBean.novo}" value="Registre-se" /> </h:form> <h:panelGroup rendered="#{!empty param.login_error}"> <span style="font-color:red"> Erro ao efetuar o login.</span><br /> <br/> Motivo: #{SPRING_SECURITY_LAST_EXCEPTION.message} </h:panelGroup> <h:form id="login" method="post" action="#{request.contextPath}/j_spring_security_check"> <table> <tr><td>Login</td> <td><input type='text' name='j_username'/></td></tr> <tr><td>Senha</td> <td><input type='password' name='j_password'/></td></tr> <tr><td align="right"><input type="checkbox" name="_spring_security_remember_me"/></td> <td>Entrar automaticamente</td></tr> <tr><td></td> <td><input type="submit" value="Entrar"/></td> </tr> </table> <script> document.getElementById("login").j_username.value = "#{SPRING_SECURITY_LAST_USERNAME}"; </script> </h:form> </h:body> </html>[/code]
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Olá Marcelo, Desculpe a demora, semana curta, muito trabalho a fazer. Bem meu amigo mostro pra você a classe que redireciona para as páginas conforme a permissão. [code]<?xml version="1.0" encoding="UTF-8"?> <b:beans xmlns="http://www.springframework.org/schema/security" xmlns:b="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <http> <intercept-url pattern="/admin/**" access="ROLE_ADMINISTRADOR" /> <intercept-url pattern="/restrito/**" access="ROLE_USUARIO" /> <form-login login-page="/publico/login.jsf" always-use-default-target="true" default-target-url="/restrito/principal.jsf" authentication-failure-url="/publico/login.jsf?login_error=1" /> <logout/> <remember-me /> </http> <authentication-manager> <authentication-provider> <password-encoder hash="md5"/> <jdbc-user-service data-source-ref="financeiroDataSource" authorities-by-username-query="SELECT u.email, p.permissao FROM usuario u, usuario_permissao p WHERE u.codigo = p.usuario AND u.email = ?" users-by-username-query="SELECT email, senha, ativo FROM usuario WHERE email = ?" /> </authentication-provider> </authentication-manager> </b:beans>[/code] Se precisar de mais alguma coisa estou a disposição.
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Acontece a mesma coisa. Na verdade está fazendo o cadastro normalmente para usuário ROLE_USUARIO, mesmo assim não se loga como usuario comum. Como disse anteriormente o sistema nem sai da tela de login e dá access denied no Tomcat para o spring security.
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Olá Marcelo, o usuário que estou tentando logar tem as duas permissões: ROLE_ADMINISTRADOR e ROLE_USUARIO. Agora por que não redireciona para a página? Não dá nem mensagem de erro. Vou rever algo que incluí com a ciptografia da senha.
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Sim isso mesmo caro Marcelo, o que está acontecendo para esta parte do código não ser executada?
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Eis o meu applicationContext-security.xml [code] <?xml version="1.0" encoding="UTF-8"?> <b:beans xmlns="http://www.springframework.org/schema/security" xmlns:b="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <http> <intercept-url pattern="/admin/**" access="ROLE_ADMINISTRADOR" /> <intercept-url pattern="/restrito/**" access="ROLE_USUARIO" /> <form-login login-page="/publico/login.jsf" always-use-default-target="true" default-target-url="/restrito/principal.jsf" authentication-failure-url="/publico/login.jsf?login_error=1" /> <logout/> <remember-me /> </http> <authentication-manager> <authentication-provider> <password-encoder hash="md5"/> <jdbc-user-service data-source-ref="financeiroDataSource" authorities-by-username-query="SELECT u.email, p.permissao FROM usuario u, usuario_permissao p WHERE u.codigo = p.usuario AND u.email = ?" users-by-username-query="SELECT email, senha, ativo FROM usuario WHERE email = ?" /> </authentication-provider> </authentication-manager> </b:beans> [/code] Também o meu /restrito/principal.xhtml [code] <?xml version="1.0" encoding="ISO-8859-1" ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:sec="http://www.springframework.org/security/facelets/tags"> <h:head> <title>Principal</title> </h:head> <h:body> <h1>Gerenciador Financeiro Pessoal</h1> Usuário logado #{request.remoteUser} <br /> <h:form> <sec:ifAnyGranted roles="ROLE_ADMINISTRADOR"> <h:commandLink action="/admin/principal" title="Administrativo" > <h:graphicImage library="imagens" name="administrativo16.png" /> </h:commandLink> </sec:ifAnyGranted> <a onclick="document.location='#{request.contextPath}/j_spring_security_logout'" title="Sair"> <h:graphicImage library="imagens" name="logout16.png" /> </a> </h:form> </h:body> </html> [/code] Veja também /admin/principal.xtml [code] <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <h:head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Cadastro de Usuários</title> </h:head> <h:body> <h1>Cadastro de Usuários</h1> <h:form> <h:messages /> <h:dataTable value="#{usuarioBean.lista}" var="usuario" rules="rows" cellpadding="5"> <f:facet name="caption"> A listagem a seguir exibe a relação de todos os usuários do sistema. Você poderá realizar ativação e desativação, edição e exclusão para os usuários. </f:facet> <f:facet name="header">Listagem de Usuários</f:facet> <f:facet name="footer">Final da Listagem</f:facet> <h:column> <h:commandLink action="#{usuarioBean.ativar}"> <h:graphicImage library="imagens" name="usuario_ativo_#{usuario.ativo}.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Código</f:facet> #{usuario.codigo} </h:column> <h:column> <h:graphicImage library="imagens" name="bandeira_#{usuario.idioma}.png" /> </h:column> <h:column> <f:facet name="header">Nome</f:facet> #{usuario.nome} </h:column> <h:column> <f:facet name="header">e-Mail</f:facet> <a href="mailto:#{usuario.email}">#{usuario.email}</a> </h:column> <h:column> <h:commandLink action="#{usuarioBean.editar}"> <h:graphicImage library="imagens" name="editar16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> <f:setPropertyActionListener target="#{usuarioBean.destinoSalvar}" value="/admin/principal" /> </h:commandLink> </h:column> <h:column> <h:commandLink action="#{usuarioBean.excluir}" onclick="if (!confirm(confirma a exclusão do usuário #{usuario.nome}?)) return false;"> <h:graphicImage library="imagens" name="excluir16.png" style="border:0" /> <f:setPropertyActionListener target="#{usuarioBean.usuario}" value="#{usuario}" /> </h:commandLink> </h:column> <h:column> <f:facet name="header">Permissões</f:facet> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario, 'ROLE_ADMINISTRADOR')}" title="Permissão Administrador"> <h:graphicImage library="imagens" name="ROLE_ADMINISTRADOR_#{usuario.permissao.contains('ROLE_ADMINISTRADOR')}.png" style="border:0" /> </h:commandLink> <h:commandLink action="#{usuarioBean.atribuiPermissao(usuario,'ROLE_USUARIO_VIP')}" title="Permissão Usuário VIP" > <h:graphicImage library="imagens" name="ROLE_USUARIO_VIP_#{usuario.permissao.contains('ROLE_USUARIO_VIP')}.png" style="border:0"/> </h:commandLink> </h:column> </h:dataTable> </h:form> </h:body> </html> [/code] Bem depois de logado se usuario admin deve ser redirecionado para usuario logado e em seguida para /admin/principal.xhtml. Mas este redirecinamento não acontece e não sai da página de login. Aguardo resposta do que pode ser. Obrigado.
Spring Framework org.springframework.security.access.AccessDeniedException: Access is denied alois Pessoal bom dia, Estou com problema com minha página de login que não redireciona para página de logado e páginas adm e restrita do sistema. Eis o logo do Tomcat: http://pastebin.com/YthLbkbZ Grato pela ajuda desde já.
Goto page 1 , 2  Next - >>