solved ticket https://issues.jboss.org/browse/RAILO-2522 and https://issues.jboss.org/browse/RAILO-2523