My original solution was to add a delegate for the original request in
mutable Req/res. But this cause other problem in wildfly :(. I keep with
the flag that you sad... Configure wildfly to accept other implementations.
Em 15/01/2014 16:54, "Otávio Garcia" <notifications@github.com> escreveu:

> In
> vraptor-core/src/main/java/br/com/caelum/vraptor/ioc/cdi/CDIHttpServletRequestFactory.java:
>
> >
> > -	@Produces @javax.enterprise.context.RequestScoped
> > +	@Produces
> > +	@Dependent
> >  	public MutableRequest getInstance(){
>
> See #315 <https://github.com/caelum/vraptor4/issues/315>. Weld returns a
> proxified instance of MutableRequest, that is not instanceof
> ServletRequestWrapper.
>
> According to the servlet spec wrappers must extend
> j.s.ServletRequestWrapper (or its sub class
> j.s.h.HttpServletRequestWrapper).
>
> Because of this, we can't run in Wildfly without hacking the server config.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/caelum/vraptor4/pull/316/files#r8907198>
> .
>