Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

vraptors 4 autorizacao de usuario com interceptors

ta dando erro de pag 404 o stack ta assim:

set 05, 2014 2:47:19 PM org.apache.catalina.core.AprLifecycleListener init
INFORMAÇÕES: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre8/bin/client;C:/Program Files/Java/jre8/bin;C:/Program Files/Java/jre8/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_11\bin;C:\Program Files\MySQL\MySQL Utilities 1.4.3\;C:\Program Files\MySQL\MySQL Utilities 1.4.3\Doctrine extensions for PHP\;C:\eclipse;;.
set 05, 2014 2:47:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
ADVERTÊNCIA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:vraptor-produtos' did not find a matching property.
set 05, 2014 2:47:23 PM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["http-bio-8080"]
set 05, 2014 2:47:23 PM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["ajp-bio-8009"]
set 05, 2014 2:47:23 PM org.apache.catalina.startup.Catalina load
INFORMAÇÕES: Initialization processed in 4802 ms
set 05, 2014 2:47:23 PM org.apache.catalina.core.StandardService startInternal
INFORMAÇÕES: Starting service Catalina
set 05, 2014 2:47:23 PM org.apache.catalina.core.StandardEngine startInternal
INFORMAÇÕES: Starting Servlet Engine: Apache Tomcat/7.0.55
set 05, 2014 2:47:27 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFORMAÇÕES: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [985] milliseconds.
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
14:48:19,380  INFO [DefaultConverters   ] Registering bundled converters
14:48:19,408  INFO [DefaultConverters   ] Registering bundled converters
14:48:19,413 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.FloatConverter to class java.lang.Float
14:48:19,413 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveLongConverter to long
14:48:19,414 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveShortConverter to short
14:48:19,414 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveByteConverter to byte
14:48:19,415 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveIntConverter to int
14:48:19,415 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.DoubleConverter to class java.lang.Double
14:48:19,517 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor
14:48:19,544 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.ByteConverter to class java.lang.Byte
14:48:19,545 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.StringConverter to class java.lang.String
14:48:19,546 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.DateConverter to class java.util.Date
14:48:19,547 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.LongConverter to class java.lang.Long
14:48:19,547 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter to double
14:48:19,548 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.BooleanConverter to class java.lang.Boolean
14:48:19,549 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.FlashInterceptor
14:48:19,662 DEBUG [ControllerHandler   ] Found controller: {ControllerClass br.com.caelum.vraptor.controller.LoginController}
14:48:20,161 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.LoginController.formulario() as []
14:48:20,162 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.LoginController.formulario() as []
14:48:20,205 DEBUG [DefaultParametersControl] For /login/formulario retrieved /login/formulario with {}
14:48:20,207  INFO [DefaultRouteBuilder ] /login/formulario                                 [GET] -> public void br.com.caelum.vraptor.controller.LoginController.formulario()
14:48:20,231 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.LoginController.autentica(br.com.caelum.vraptor.model.Usuario) as [usuario]
14:48:20,231 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.LoginController.autentica(br.com.caelum.vraptor.model.Usuario) as [usuario]
14:48:20,232 DEBUG [DefaultParametersControl] For /login/autentica retrieved /login/autentica with {}
14:48:20,232  INFO [DefaultRouteBuilder ] /login/autentica                                  [POST] -> public void br.com.caelum.vraptor.controller.LoginController.autentica(br.com.caelum.vraptor.model.Usuario)
14:48:20,235 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.EnumConverter to class java.lang.Enum
14:48:20,235 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.BigIntegerConverter to class java.math.BigInteger
14:48:20,246 DEBUG [ControllerHandler   ] Found controller: {ControllerClass br.com.caelum.vraptor.controller.ProdutoController}
14:48:20,250 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.remove(br.com.caelum.vraptor.model.Produto) as [produto]
14:48:20,250 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.remove(br.com.caelum.vraptor.model.Produto) as [produto]
14:48:20,250 DEBUG [DefaultParametersControl] For /produto/remove retrieved /produto/remove with {}
14:48:20,250  INFO [DefaultRouteBuilder ] /produto/remove                                   [POST] -> public void br.com.caelum.vraptor.controller.ProdutoController.remove(br.com.caelum.vraptor.model.Produto)
14:48:20,251 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.formulario() as []
14:48:20,251 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.formulario() as []
14:48:20,251 DEBUG [DefaultParametersControl] For /produto/formulario retrieved /produto/formulario with {}
14:48:20,252  INFO [DefaultRouteBuilder ] /produto/formulario                               [GET] -> public void br.com.caelum.vraptor.controller.ProdutoController.formulario()
14:48:20,252 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.lista() as []
14:48:20,252 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.lista() as []
14:48:20,252 DEBUG [DefaultParametersControl] For /produto/lista retrieved /produto/lista with {}
14:48:20,253  INFO [DefaultRouteBuilder ] /produto/lista                                    [GET] -> public void br.com.caelum.vraptor.controller.ProdutoController.lista()
14:48:20,254 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.inicio() as []
14:48:20,254 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.inicio() as []
14:48:20,254 DEBUG [DefaultParametersControl] For / retrieved / with {}
14:48:20,254  INFO [DefaultRouteBuilder ] /                                                 [GET] -> public void br.com.caelum.vraptor.controller.ProdutoController.inicio()
14:48:20,255 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.listaXML() as []
14:48:20,255 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.listaXML() as []
14:48:20,276 DEBUG [DefaultParametersControl] For /produto/listaXML retrieved /produto/listaXML with {}
14:48:20,276  INFO [DefaultRouteBuilder ] /produto/listaXML                                 [GET] -> public void br.com.caelum.vraptor.controller.ProdutoController.listaXML()
14:48:20,280 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.adiciona(br.com.caelum.vraptor.model.Produto) as [produto]
14:48:20,282 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.adiciona(br.com.caelum.vraptor.model.Produto) as [produto]
14:48:20,285 DEBUG [DefaultParametersControl] For /produto/adiciona retrieved /produto/adiciona with {}
14:48:20,285  INFO [DefaultRouteBuilder ] /produto/adiciona                                 [POST] -> public void br.com.caelum.vraptor.controller.ProdutoController.adiciona(br.com.caelum.vraptor.model.Produto)
14:48:20,286 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.sobre() as []
14:48:20,286 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.caelum.vraptor.controller.ProdutoController.sobre() as []
14:48:20,286 DEBUG [DefaultParametersControl] For /produto/sobre retrieved /produto/sobre with {}
14:48:20,287  INFO [DefaultRouteBuilder ] /produto/sobre                                    [GET] -> public void br.com.caelum.vraptor.controller.ProdutoController.sobre()
14:48:20,296 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveCharConverter to char
14:48:20,300 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.observer.upload.UploadedFileConverter to interface br.com.caelum.vraptor.observer.upload.UploadedFile
14:48:20,301 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.IntegerConverter to class java.lang.Integer
14:48:20,301 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.CalendarConverter to class java.util.Calendar
14:48:20,302 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.BigDecimalConverter to class java.math.BigDecimal
14:48:20,302 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveFloatConverter to float
14:48:20,302 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.CharacterConverter to class java.lang.Character
14:48:20,304 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.ShortConverter to class java.lang.Short
14:48:20,305 DEBUG [DefaultConverters   ] adding converter class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter to boolean
14:48:20,325 DEBUG [InterceptorStackHandlersCache] Caching br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor 
14:48:20,370 DEBUG [InterceptorStackHandlersCache] Caching br.com.caelum.vraptor.interceptor.FlashInterceptor 
14:48:28,689  INFO [VRaptor             ] VRaptor 4.0.0.Final successfuly initialized
set 05, 2014 2:48:28 PM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["http-bio-8080"]
set 05, 2014 2:48:28 PM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["ajp-bio-8009"]
set 05, 2014 2:48:28 PM org.apache.catalina.startup.Catalina start
INFORMAÇÕES: Server startup in 65507 ms
1 resposta
solução!

Oi Gustavo

O seu código estava funcionando antes de você adicionar o interceptor na aplicação?