Matheus, blz cara? te mandei o projeto, qdo puder veja se consegue descobrir a merda que eu fiz.rs
fiz um teste trocando o paramentor do meu metodo, não utilizando minha entidade.
E funcionou, meu vraptor encontrou meu controller.
@Post("/efetuarlogin")
public void efetuarLogin(String nome,String senha){
if(nome.equals("marcelo") && senha.equals("marcelo")){
System.out.println("usuario: " + nome + " senha: " + senha);
this.result.redirectTo(HomeController.class).home();
}
else{
this.result.redirectTo(this).login();
}
}
16:13:17,769 INFO [DefaultConverters ] Registering bundled converters
16:13:17,785 INFO [DefaultConverters ] Registering bundled converters
16:13:17,789 DEBUG [DefaultConverters ] Unable to find a converter for long. Returning NullConverter.
16:13:17,789 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveLongConverter to long
16:13:17,790 DEBUG [DefaultConverters ] Unable to find a converter for double. Returning NullConverter.
16:13:17,790 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter to double
16:13:17,790 DEBUG [DefaultConverters ] Unable to find a converter for class java.math.BigDecimal. Returning NullConverter.
16:13:17,790 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.BigDecimalConverter to class java.math.BigDecimal
16:13:17,798 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Short. Returning NullConverter.
16:13:17,798 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.ShortConverter to class java.lang.Short
16:13:17,842 DEBUG [ControllerHandler ] Found controller: {ControllerClass br.com.trust.ctms.controller.LoginController}
16:13:17,906 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.LoginController.login() as []
16:13:17,907 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.LoginController.login() as []
16:13:17,909 DEBUG [DefaultParametersControl] For / retrieved / with {}
16:13:17,909 INFO [DefaultRouteBuilder ] / [GET] -> public void br.com.trust.ctms.controller.LoginController.login()
16:13:17,917 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.LoginController.efetuarLogin(java.lang.String,java.lang.String) as [nome, senha]
16:13:17,917 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.LoginController.efetuarLogin(java.lang.String,java.lang.String) as [nome, senha]
16:13:17,918 DEBUG [DefaultParametersControl] For /efetuarlogin retrieved /efetuarlogin with {}
16:13:17,918 INFO [DefaultRouteBuilder ] /efetuarlogin [POST] -> public void br.com.trust.ctms.controller.LoginController.efetuarLogin(java.lang.String,java.lang.String)
16:13:17,920 DEBUG [DefaultConverters ] Unable to find a converter for class java.util.Calendar. Returning NullConverter.
16:13:17,920 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.CalendarConverter to class java.util.Calendar
16:13:17,920 DEBUG [ControllerHandler ] Found controller: {ControllerClass br.com.trust.ctms.controller.IndexController}
16:13:17,921 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.IndexController.index() as []
16:13:17,921 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.IndexController.index() as []
16:13:17,921 DEBUG [DefaultParametersControl] For /index retrieved /index with {}
16:13:17,922 INFO [DefaultRouteBuilder ] /index [GET] -> public void br.com.trust.ctms.controller.IndexController.index()
16:13:17,922 DEBUG [DefaultConverters ] Unable to find a converter for interface br.com.caelum.vraptor.observer.upload.UploadedFile. Returning NullConverter.
16:13:17,922 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.observer.upload.UploadedFileConverter to interface br.com.caelum.vraptor.observer.upload.UploadedFile
16:13:17,923 DEBUG [DefaultConverters ] Unable to find a converter for short. Returning NullConverter.
16:13:17,923 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveShortConverter to short
16:13:17,923 DEBUG [ControllerHandler ] Found controller: {ControllerClass br.com.trust.ctms.controller.HomeController}
16:13:17,924 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.HomeController.home() as []
16:13:17,924 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for public void br.com.trust.ctms.controller.HomeController.home() as []
16:13:17,924 DEBUG [DefaultParametersControl] For /home retrieved /home with {}
16:13:17,924 INFO [DefaultRouteBuilder ] /home [GET] -> public void br.com.trust.ctms.controller.HomeController.home()
16:13:17,925 DEBUG [DefaultConverters ] Unable to find a converter for char. Returning NullConverter.
16:13:17,925 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveCharConverter to char
16:13:17,925 DEBUG [DefaultConverters ] Unable to find a converter for class java.math.BigInteger. Returning NullConverter.
16:13:17,926 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.BigIntegerConverter to class java.math.BigInteger
16:13:17,945 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.trust.ctms.controller.AccessInterceptor
16:13:17,948 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Long. Returning NullConverter.
16:13:17,948 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.LongConverter to class java.lang.Long
16:13:17,948 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Enum. Returning NullConverter.
16:13:17,948 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.EnumConverter to class java.lang.Enum
16:13:17,949 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Boolean. Returning NullConverter.
16:13:17,949 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.BooleanConverter to class java.lang.Boolean
16:13:17,949 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.FlashInterceptor
16:13:17,949 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Double. Returning NullConverter.
16:13:17,950 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.DoubleConverter to class java.lang.Double
16:13:17,950 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Float. Returning NullConverter.
16:13:17,950 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.FloatConverter to class java.lang.Float
16:13:17,950 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Byte. Returning NullConverter.
16:13:17,951 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.ByteConverter to class java.lang.Byte
16:13:17,954 DEBUG [DefaultConverters ] Unable to find a converter for class java.util.Date. Returning NullConverter.
16:13:17,954 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.DateConverter to class java.util.Date
16:13:17,954 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.String. Returning NullConverter.
16:13:17,954 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.StringConverter to class java.lang.String
16:13:17,955 DEBUG [DefaultConverters ] Unable to find a converter for byte. Returning NullConverter.
16:13:17,955 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveByteConverter to byte
16:13:17,955 DEBUG [DefaultConverters ] Unable to find a converter for boolean. Returning NullConverter.
16:13:17,955 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter to boolean
16:13:17,955 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Character. Returning NullConverter.
16:13:17,955 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.CharacterConverter to class java.lang.Character
16:13:17,956 DEBUG [DefaultConverters ] Unable to find a converter for class java.lang.Integer. Returning NullConverter.
16:13:17,956 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.IntegerConverter to class java.lang.Integer
16:13:17,956 DEBUG [DefaultConverters ] Unable to find a converter for int. Returning NullConverter.
16:13:17,956 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveIntConverter to int
16:13:17,957 DEBUG [DefaultConverters ] Unable to find a converter for float. Returning NullConverter.
16:13:17,957 DEBUG [DefaultConverters ] adding converter class br.com.caelum.vraptor.converter.PrimitiveFloatConverter to float
16:13:17,957 DEBUG [InterceptorStereotypeHandler] Found interceptor for class br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor
16:13:17,968 DEBUG [InterceptorStackHandlersCache] Caching br.com.trust.ctms.controller.AccessInterceptor
16:13:17,983 DEBUG [InterceptorStackHandlersCache] Caching br.com.caelum.vraptor.interceptor.FlashInterceptor
16:13:17,983 DEBUG [InterceptorStackHandlersCache] Caching br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor
16:13:17,983 INFO [VRaptor ] VRaptor 4.2.0-RC3 successfuly initialized