Usando joda-time no vraptor estou com esse problema abaixo.
Pelo que noto aqui o "joda converter" está sendo registrado:INFO: 16:28:54 INFO (PicoComponentRegistry.java:97) - Class being registered as @RequestScoped, since there is no Scope annotation class br.com.caelum.vraptor.converter.jodatime.LocalDateConverter
INFO: 16:28:54 DEBUG (PicoComponentRegistry.java:99) - Registering br.com.caelum.vraptor.converter.jodatime.LocalDateConverter as a request component
INFO: 16:28:54 DEBUG (PicoComponentRegistry.java:76) - Registering br.com.caelum.vraptor.converter.jodatime.LocalTimeConverter with br.com.caelum.vraptor.converter.jodatime.LocalTimeConverter
INFO: 16:28:54 INFO (PicoComponentRegistry.java:97) - Class being registered as @RequestScoped, since there is no Scope annotation class br.com.caelum.vraptor.converter.jodatime.LocalTimeConverter
INFO: 16:28:54 DEBUG (PicoComponentRegistry.java:99) - Registering br.com.caelum.vraptor.converter.jodatime.LocalTimeConverter as a request component
INFO: 16:32:06 DEBUG (AsmBasedTypeCreator.java:117) - Fields: [private esim.model.dto.YearDTO YearController$store$[telefone removido]$1.Year_]
INFO: 16:32:06 DEBUG (CacheBasedTypeCreator.java:55) - cached generic type for method {DefaultResourceMethod: esim.web.controller.management.YearController.store}
INFO: 16:32:06 DEBUG (OgnlParametersProvider.java:140) - [b]Applying year.startDate with [01/01/2001][/b]
INFO: 16:32:06 WARN (OgnlParametersProvider.java:162) - [b]unable to parse expression 'year.startDate'ognl.OgnlException: startDate[/b] [br.com.caelum.vraptor.VRaptorException: Unable to find converter for org.joda.time.LocalDate]
at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:103)
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:279)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:279)
at ognl.Ognl.setValue(Ognl.java:737)
at ognl.Ognl.setValue(Ognl.java:783)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createViaOgnl(OgnlParametersProvider.java:142)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createRoot(OgnlParametersProvider.java:116)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.getParametersFor(OgnlParametersProvider.java:92)
at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.intercept(ParametersInstantiatorInterceptor.java:71)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:45)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:59)
at br.com.caelum.vraptor.interceptor.InstantiateInterceptor.intercept(InstantiateInterceptor.java:42)
public final class YearDTO
implements Serializable {
private Integer id;
private LocalDate startDate;
}
Além disso usando o pico para injeção e os jars estão no classpath.
