-
Type: Clean up
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2023.14
-
Tags:
-
Sprint:nxplatform #115, nxplatform #116
-
Story Points:1
Launching any test using @ServletContainer, like TestDownloader for instance, generates these warnings:
2018-12-04 17:32:15,463 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [XMLSchema.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,465 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [datatypes.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,466 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [xml.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,467 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-app_2_2.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,469 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-jsptaglibrary_1_1.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,470 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-app_2_3.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,472 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-jsptaglibrary_1_2.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,473 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [j2ee_web_services_1_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,475 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [j2ee_web_services_client_1_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,476 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-app_2_4.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,478 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-jsptaglibrary_2_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,479 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [j2ee_1_4.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,480 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [jsp_2_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,482 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-app_2_5.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,483 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-jsptaglibrary_2_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,484 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_5.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,485 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [jsp_2_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,486 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_web_services_1_2.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,487 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_web_services_client_1_2.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,488 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-app_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,489 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-fragment_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,490 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-common_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,491 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_6.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,492 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [jsp_2_2.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,493 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_web_services_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,494 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_web_services_client_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,495 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-app_3_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,496 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-fragment_3_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,497 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-common_3_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,498 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_7.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,499 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [jsp_2_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,500 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_web_services_1_4.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,501 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_web_services_client_1_4.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,502 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-app_4_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,503 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-fragment_4_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,504 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [web-common_4_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled. 2018-12-04 17:32:15,505 [main] WARN [JavaUtilLoggingHelper$LogHandler] The XML schema [javaee_8.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
This is because the javax.servlet-api-4.0.1.jar that comes from Maven doesn't have the required resources, whereas the one embedded by Tomcat has them.
The one used by Tomcat is called tomcat-servlet-api, we would need to use it instead of javax.servlet-api, which means changing this in every POM and rework the exclusions in the root POM.