Re: Tomcat returns Jsp source code as text/plain to the browser

2014-10-01 Thread Gadi Sastiel
Hi, the request is seen on the tomcat access log ( i've changed the path deliberately) [01/Oct/2014:10:01:27 +0300] GET /x/yy/z/Page.jsp%22 HTTP/1.1 200 30223 Thanks Gadi On Tue, Sep 30, 2014 at 10:06 PM, André Warnier a...@ice-sa.com wrote: Gadi Sastiel wrote: I have in

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-10-01 Thread Mark Thomas
On 01/10/2014 08:14, Gadi Sastiel wrote: Hi, the request is seen on the tomcat access log ( i've changed the path deliberately) [01/Oct/2014:10:01:27 +0300] GET /x/yy/z/Page.jsp%22 HTTP/1.1 200 30223 OK. Given that this doesn't happen on a clean Tomcat install it is likely

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-10-01 Thread Gadi Sastiel
In the web.xml under /tomcat/conf/ !-- == Default Servlet === -- servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class init-param

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-10-01 Thread Gadi Sastiel
Probably it happens since our JSP's are not under the WEB-INF folder. Should be moved there. Problem solved temporary by adding rewrite rule to the apache httpd-ssl.conf: RewriteRule ^.*\.jsp/*.*$ - [F] Thanks for everyone who tried to help. On Wed, Oct 1, 2014 at 12:10 PM, Gadi Sastiel

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gadi, On 10/1/14 9:32 AM, Gadi Sastiel wrote: Probably it happens since our JSP's are not under the WEB-INF folder. Should be moved there. That's unlikely to be the problem. Problem solved temporary by adding rewrite rule to the apache

Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread Gadi Sastiel
Hi all, Tomcat version 7.0.30 Operating System – Windows server 2008 and above. When I concatenate “ ( quotes) to the end of the url when accessing a jsp for example: /pages/somePage.jsp” The browser returns the source code of the JSP. Does anyone see such a behavior before ? How

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread Konstantin Kolinko
2014-09-30 15:30 GMT+04:00 Gadi Sastiel gadi.sast...@gmail.com: Hi all, Tomcat version 7.0.30 Operating System – Windows server 2008 and above. When I concatenate “ ( quotes) to the end of the url when accessing a jsp for example: /pages/somePage.jsp” The browser returns the

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread Gadi Sastiel
Hi , we are behind Apache. , we have HTTP and AJP connectors. Java 1.7.17 it was reproduced on Latest chrome and firefox I can see the request on the tomcat access log. Thanks Gadi On Tue, Sep 30, 2014 at 2:59 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2014-09-30 15:30 GMT+04:00

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread Daniel Mikusa
On Tue, Sep 30, 2014 at 9:04 AM, Gadi Sastiel gadi.sast...@gmail.com wrote: Hi , we are behind Apache. , we have HTTP and AJP connectors. Java 1.7.17 it was reproduced on Latest chrome and firefox I've seen similar issues when Apache HTTPD is not configured correctly. How are you proxying

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread Gadi Sastiel
I have in httpd.conf: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so # Configure mod_proxy_html to understand HTML4/XHTML1 IfModule proxy_html_module Include conf/extra/proxy-html.conf /IfModule LoadModule jk_module modules/mod_jk.so Gadi

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread Daniel Mikusa
On Tue, Sep 30, 2014 at 10:32 AM, Gadi Sastiel gadi.sast...@gmail.com wrote: I have in httpd.conf: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so # Configure mod_proxy_html to understand HTML4/XHTML1 IfModule proxy_html_module Include

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread André Warnier
Gadi Sastiel wrote: I have in httpd.conf: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so # Configure mod_proxy_html to understand HTML4/XHTML1 IfModule proxy_html_module Include conf/extra/proxy-html.conf /IfModule LoadModule jk_module