Testsuite: org.apache.jasper.TestJspCompilationContext Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.423 sec ------------- Standard Error ----------------- 26-Jul-2024 10:48:43.351 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJarIncludesInvalidJar] 26-Jul-2024 10:48:44.328 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 26-Jul-2024 10:48:44.394 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 26-Jul-2024 10:48:44.394 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 26-Jul-2024 10:48:44.623 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 26-Jul-2024 10:48:44.853 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 26-Jul-2024 10:48:44.954 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-39847"] 26-Jul-2024 10:48:45.361 SEVERE [http-nio-127.0.0.1-auto-1-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [/test] threw exception [/META-INF/tags/a/relative-invalid-jar.tag (line: [18], column: [42]) The include [../../../ok.tagf] is not valid since it is outside of /META-INF/tags in the current JAR] with root cause org.apache.jasper.JasperException: /META-INF/tags/a/relative-invalid-jar.tag (line: [18], column: [42]) The include [../../../ok.tagf] is not valid since it is outside of /META-INF/tags in the current JAR at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:32) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:299) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:99) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:359) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:392) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493) at org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1810) at org.apache.jasper.compiler.Parser.parse(Parser.java:141) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:264) at org.apache.jasper.compiler.ParserController.parseTagFileDirectives(ParserController.java:176) at org.apache.jasper.compiler.TagFileProcessor.parseTagFileDirectives(TagFileProcessor.java:496) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagFileInfo(TagLibraryInfoImpl.java:345) at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:205) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:443) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:501) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1458) at org.apache.jasper.compiler.Parser.parse(Parser.java:144) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:264) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:109) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:207) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:392) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:368) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:376) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:324) at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:345) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:383) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:936) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:833) 26-Jul-2024 10:48:45.404 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-39847"] 26-Jul-2024 10:48:45.409 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 26-Jul-2024 10:48:45.441 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-39847"] 26-Jul-2024 10:48:45.453 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-39847"] 26-Jul-2024 10:48:45.460 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJar] 26-Jul-2024 10:48:45.463 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 26-Jul-2024 10:48:45.464 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 26-Jul-2024 10:48:45.464 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 26-Jul-2024 10:48:45.491 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 26-Jul-2024 10:48:45.610 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 26-Jul-2024 10:48:45.625 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-39427"] 26-Jul-2024 10:48:47.271 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-39427"] 26-Jul-2024 10:48:47.272 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 26-Jul-2024 10:48:47.311 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-39427"] 26-Jul-2024 10:48:47.329 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-39427"] 26-Jul-2024 10:48:47.335 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testModifiedTagFileInJar] 26-Jul-2024 10:48:47.343 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 26-Jul-2024 10:48:47.344 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 26-Jul-2024 10:48:47.344 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 26-Jul-2024 10:48:47.384 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 26-Jul-2024 10:48:47.572 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 26-Jul-2024 10:48:47.591 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-3-32775"] 26-Jul-2024 10:48:48.295 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-3-32775"] 26-Jul-2024 10:48:48.296 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 26-Jul-2024 10:48:48.313 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-3-32775"] 26-Jul-2024 10:48:48.319 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3-32775"] 26-Jul-2024 10:48:48.322 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJarIncludesValid] 26-Jul-2024 10:48:48.327 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 26-Jul-2024 10:48:48.328 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 26-Jul-2024 10:48:48.330 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 26-Jul-2024 10:48:48.364 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 26-Jul-2024 10:48:48.456 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 26-Jul-2024 10:48:48.482 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-42593"] 26-Jul-2024 10:48:49.191 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-42593"] 26-Jul-2024 10:48:49.192 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 26-Jul-2024 10:48:49.197 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-42593"] 26-Jul-2024 10:48:49.206 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-42593"] 26-Jul-2024 10:48:49.208 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJarIncludesInvalidJarEscape] 26-Jul-2024 10:48:49.210 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 26-Jul-2024 10:48:49.211 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 26-Jul-2024 10:48:49.211 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 26-Jul-2024 10:48:49.232 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 26-Jul-2024 10:48:49.355 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 26-Jul-2024 10:48:49.402 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-33841"] 26-Jul-2024 10:48:49.513 SEVERE [http-nio-127.0.0.1-auto-5-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [/test] threw exception [/META-INF/tags/a/relative-invalid-jar-escape.tag (line: [18], column: [42]) The include [../../../../ok.tagf] is not valid since it is outside of /META-INF/tags in the current JAR] with root cause org.apache.jasper.JasperException: /META-INF/tags/a/relative-invalid-jar-escape.tag (line: [18], column: [42]) The include [../../../../ok.tagf] is not valid since it is outside of /META-INF/tags in the current JAR at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:32) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:299) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:99) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:359) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:392) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493) at org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1810) at org.apache.jasper.compiler.Parser.parse(Parser.java:141) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:264) at org.apache.jasper.compiler.ParserController.parseTagFileDirectives(ParserController.java:176) at org.apache.jasper.compiler.TagFileProcessor.parseTagFileDirectives(TagFileProcessor.java:496) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagFileInfo(TagLibraryInfoImpl.java:345) at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:205) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:443) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:501) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1458) at org.apache.jasper.compiler.Parser.parse(Parser.java:144) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:264) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:109) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:207) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:392) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:368) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:376) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:324) at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:345) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:383) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:936) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:833) 26-Jul-2024 10:48:49.520 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-33841"] 26-Jul-2024 10:48:49.523 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 26-Jul-2024 10:48:49.527 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-33841"] 26-Jul-2024 10:48:49.530 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-33841"] ------------- ---------------- --------------- Testcase: testTagFileInJarIncludesInvalidJar took 2.26 sec Testcase: testTagFileInJar took 1.874 sec Testcase: testModifiedTagFileInJar took 0.987 sec Testcase: testTagFileInJarIncludesValid took 0.887 sec Testcase: testTagFileInJarIncludesInvalidJarEscape took 0.323 sec