Boa Tarde,
Estamos realizando alguns testes para adicionar o Varnish (cache web) na frente de uma aplicacao desenvolvida com o Vraptor.
Gostaria de saber, se alguém ja teve a necessidade e como foi feito…
Pois estamos obtendo um comportamento meio estranho, ao acessar a url que o Varnish está atendendo. O sistema não retorna nenhuma resposta no browser, mas chega o Resource do VRaptor atende a requisicao duas vezes…
Log do tomcat:
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.VRaptor - VRaptor received a new request
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ResourceLookupInterceptor
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.http.DefaultResourceTranslator - trying to access /
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.http.DefaultResourceTranslator - found resource [DefaultResourceMethod: HomeEmpresaController.indexHomeEmpresaController.index()]
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor InstantiateInterceptor
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ExceptionHandlerInterceptor
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor FlashInterceptor
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor DevShopView
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor JPATransactionInterceptor
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ExecuteMethodInterceptor
DEBUG 15 Dez 14:52:52 [http-42501-11] br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor - Invoking HomeEmpresaController.index()
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.view.DefaultPageResult - forwarding to /siteempresa/index.jsp
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.DefaultStaticContentHandler - Deferring request to container: /devshop/siteempresa/index.jsp
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ForwardToDefaultViewInterceptor
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.interceptor.ForwardToDefaultViewInterceptor - Request already dispatched and commited somewhere else, not forwarding.
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.VRaptor - VRaptor ended the request
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.VRaptor - VRaptor received a new request
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ResourceLookupInterceptor
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.http.DefaultResourceTranslator - trying to access /
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.http.DefaultResourceTranslator - found resource [DefaultResourceMethod: HomeEmpresaController.indexHomeEmpresaController.index()]
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor InstantiateInterceptor
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ExceptionHandlerInterceptor
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor FlashInterceptor
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor DevShopView
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor JPATransactionInterceptor
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ExecuteMethodInterceptor
DEBUG 15 Dez 14:52:53 [http-42501-11] br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor - Invoking HomeEmpresaController.index()
DEBUG 15 Dez 14:52:54 [http-42501-11] br.com.caelum.vraptor.view.DefaultPageResult - forwarding to /siteempresa/index.jsp
DEBUG 15 Dez 14:52:54 [http-42501-11] br.com.caelum.vraptor.core.DefaultStaticContentHandler - Deferring request to container: /devshop/siteempresa/index.jsp
DEBUG 15 Dez 14:52:54 [http-42501-11] br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler - Invoking interceptor ForwardToDefaultViewInterceptor
DEBUG 15 Dez 14:52:54 [http-42501-11] br.com.caelum.vraptor.interceptor.ForwardToDefaultViewInterceptor - Request already dispatched and commited somewhere else, not forwarding.
DEBUG 15 Dez 14:52:54 [http-42501-11] br.com.caelum.vraptor.VRaptor - VRaptor ended the request
O estranho, que após a ultima linha. Não tem mais log, sendo que deveria ter carregado os arquivos js, png, css que contem no jsp retornado.
Acessando direto a url do tomcat, o sistema abre de boa…
Galera do VRaptor, gostaria de saber se voces tem alguma dica, para me ajudar a solucionar essa questao.