https://issues.apache.org/bugzilla/show_bug.cgi?id=53257
Priority: P2 Bug ID: 53257 Assignee: dev@tomcat.apache.org Summary: getLastModified() of compilation context returns negative number Severity: normal Classification: Unclassified OS: Windows Server 2003 Reporter: andreas.etzlstor...@ibees.at Hardware: PC Status: NEW Version: 7.0.27 Component: Jasper Product: Tomcat 7 Created attachment 28802 --> https://issues.apache.org/bugzilla/attachment.cgi?id=28802&action=edit full stacktrace Jasper Compiler has an issue on compiling JSPs if they are contained in a folder like the following example: /a+b/test.jsp. The plus charachter seems to break the org.apache.jasper.JspCompilationContext#getLastModified() method, because it returns -1 every time: java.lang.IllegalArgumentException: Negative time java.io.File.setLastModified(File.java:1258) org.apache.jasper.compiler.Compiler.compile(Compiler.java:376) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) ******************************************************* ******************************************************* net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:81) net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:92) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) Some details: - First I suspected URIEncoding="utf-8" in the Connector, but removing the configuration didn't fix the bug - The same bug occurs on my developing machine (Windows 7, NTFS, Apache Tomcat 7.0.22) - On a other customer machine the same example as above worked fine! (Any Linux Distribution, Apache Tomcat 7.0.19) - By the way I also tried the right URI-Encoding: http://.../a%2Bb/test.jsp Please find attached the full stack trace Best Regards A. Etzlstorfer -- You are receiving this mail because: You are the assignee for the bug.