Testsuite: org.apache.jasper.TestJspCompilationContext Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.334 sec ------------- Standard Error ----------------- 13-Sep-2024 17:27:28.787 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJarIncludesInvalidJar] 13-Sep-2024 17:27:30.174 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 13-Sep-2024 17:27:30.237 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Sep-2024 17:27:30.243 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.30-dev] 13-Sep-2024 17:27:30.609 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Sep-2024 17:27:30.818 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. 13-Sep-2024 17:27:30.918 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-39899"] 13-Sep-2024 17:27:31.485 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:353) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:386) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487) at org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1804) at org.apache.jasper.compiler.Parser.parse(Parser.java:135) 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:497) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagFileInfo(TagLibraryInfoImpl.java:349) at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:206) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:437) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:495) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1452) at org.apache.jasper.compiler.Parser.parse(Parser.java:138) 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:211) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:396) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:372) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:396) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:377) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:325) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) 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:344) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:384) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) 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) 13-Sep-2024 17:27:31.519 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-39899"] 13-Sep-2024 17:27:31.527 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Sep-2024 17:27:31.559 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-39899"] 13-Sep-2024 17:27:31.571 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-39899"] 13-Sep-2024 17:27:31.593 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJar] 13-Sep-2024 17:27:31.595 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 13-Sep-2024 17:27:31.596 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Sep-2024 17:27:31.596 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.30-dev] 13-Sep-2024 17:27:31.635 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Sep-2024 17:27:31.752 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. 13-Sep-2024 17:27:31.779 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-42551"] 13-Sep-2024 17:27:33.716 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-42551"] 13-Sep-2024 17:27:33.717 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Sep-2024 17:27:33.724 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-42551"] 13-Sep-2024 17:27:33.736 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-42551"] 13-Sep-2024 17:27:33.739 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testModifiedTagFileInJar] 13-Sep-2024 17:27:33.750 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 13-Sep-2024 17:27:33.752 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Sep-2024 17:27:33.754 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.30-dev] 13-Sep-2024 17:27:33.805 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Sep-2024 17:27:33.974 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. 13-Sep-2024 17:27:33.987 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-3-42161"] 13-Sep-2024 17:27:34.571 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-3-42161"] 13-Sep-2024 17:27:34.574 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Sep-2024 17:27:34.578 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-3-42161"] 13-Sep-2024 17:27:34.581 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3-42161"] 13-Sep-2024 17:27:34.592 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJarIncludesValid] 13-Sep-2024 17:27:34.594 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 13-Sep-2024 17:27:34.603 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Sep-2024 17:27:34.603 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.30-dev] 13-Sep-2024 17:27:34.614 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Sep-2024 17:27:34.772 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. 13-Sep-2024 17:27:34.809 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-41969"] 13-Sep-2024 17:27:35.574 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-41969"] 13-Sep-2024 17:27:35.575 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Sep-2024 17:27:35.581 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-41969"] 13-Sep-2024 17:27:35.587 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-41969"] 13-Sep-2024 17:27:35.593 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTagFileInJarIncludesInvalidJarEscape] 13-Sep-2024 17:27:35.597 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 13-Sep-2024 17:27:35.609 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Sep-2024 17:27:35.609 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.30-dev] 13-Sep-2024 17:27:35.660 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Sep-2024 17:27:35.760 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. 13-Sep-2024 17:27:35.772 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-44275"] 13-Sep-2024 17:27:35.831 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:353) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:386) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487) at org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1804) at org.apache.jasper.compiler.Parser.parse(Parser.java:135) 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:497) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagFileInfo(TagLibraryInfoImpl.java:349) at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:206) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:437) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:495) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1452) at org.apache.jasper.compiler.Parser.parse(Parser.java:138) 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:211) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:396) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:372) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:396) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:377) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:325) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) 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:344) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:384) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) 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) 13-Sep-2024 17:27:35.847 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-44275"] 13-Sep-2024 17:27:35.850 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Sep-2024 17:27:35.854 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-44275"] 13-Sep-2024 17:27:35.862 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-44275"] ------------- ---------------- --------------- Testcase: testTagFileInJarIncludesInvalidJar took 2.971 sec Testcase: testTagFileInJar took 2.152 sec Testcase: testModifiedTagFileInJar took 0.852 sec Testcase: testTagFileInJarIncludesValid took 0.999 sec Testcase: testTagFileInJarIncludesInvalidJarEscape took 0.272 sec