@marksmancl
We have researched different versions of tomcat on Windows 10 OS, and got the following result:
Tomcat 8.0.14 [local]
org.apache.catalina.startup.Catalina.start Server startup in 971510 ms
PDF
Thu Aug 31 12:56:08 EEST 2023 request received …
Thu Aug 31 12:56:08 EEST 2023 start to handle license…
Thu Aug 31 13:01:38 EEST 2023 apply license successful.
Thu Aug 31 13:01:38 EEST 2023 start to create a document…
Thu Aug 31 13:02:40 EEST 2023 create document success. 1.7
Thu Aug 31 13:02:46 EEST 2023 test completed.
Word
Thu Aug 31 13:19:47 EEST 2023 request received …
Thu Aug 31 13:19:47 EEST 2023 start to handle license…
Thu Aug 31 13:20:31 EEST 2023 apply license successful.
Thu Aug 31 13:20:31 EEST 2023 start to create a document…
Thu Aug 31 13:20:46 EEST 2023 create document success. content is:
Thu Aug 31 13:20:46 EEST 2023 test completed.
Tomcat 8.0.53 [local]
org.apache.catalina.startup.Catalina.start Server startup in 958789 ms
PDF
Thu Aug 31 14:54:18 EEST 2023 request received …
Thu Aug 31 14:54:18 EEST 2023 start to handle license…
Thu Aug 31 14:54:23 EEST 2023 apply license successful.
Thu Aug 31 14:54:23 EEST 2023 start to create a document…
Thu Aug 31 14:54:23 EEST 2023 create document success. 1.7
Thu Aug 31 14:54:23 EEST 2023 test completed.
Word
Thu Aug 31 14:54:45 EEST 2023 request received …
Thu Aug 31 14:54:45 EEST 2023 start to handle license…
Thu Aug 31 14:54:47 EEST 2023 apply license successful.
Thu Aug 31 14:54:47 EEST 2023 start to create a document…
Thu Aug 31 14:54:47 EEST 2023 create document success. content is:
Thu Aug 31 14:54:47 EEST 2023 test completed.
Tomcat 8.5.93 [local]
org.apache.catalina.startup.Catalina.start Server startup in 11053 ms
PDF
Thu Aug 31 15:05:59 EEST 2023 request received …
Thu Aug 31 15:05:59 EEST 2023 start to handle license…
Thu Aug 31 15:06:00 EEST 2023 apply license successful.
Thu Aug 31 15:06:00 EEST 2023 start to create a document…
Thu Aug 31 15:06:01 EEST 2023 create document success. 1.7
Thu Aug 31 15:06:01 EEST 2023 test completed.
Word
Thu Aug 31 15:06:16 EEST 2023 request received …
Thu Aug 31 15:06:16 EEST 2023 start to handle license…
Thu Aug 31 15:06:17 EEST 2023 apply license successful.
Thu Aug 31 15:06:17 EEST 2023 start to create a document…
Thu Aug 31 15:06:17 EEST 2023 create document success. content is:
Thu Aug 31 15:06:17 EEST 2023 test completed.
HTML library throw exception: The given key was not present in the dictionary.
Tomcat 8.5.93 start time with aspose-web.war is 11 seconds.
Aspose Word and PDF libraries code runs are 1-2 seconds.
Also, we have researched different versions of Tomcat on Debian OS (in docker), and got the following result:
Tomcat 8.0.53 [docker]
org.apache.catalina.startup.Catalina.start Server startup in 1074014 ms
PDF
Thu Aug 31 13:41:20 UTC 2023 request received …
Thu Aug 31 13:41:20 UTC 2023 start to handle license…
Thu Aug 31 13:41:24 UTC 2023 apply license successful.
Thu Aug 31 13:41:24 UTC 2023 start to create a document…
Thu Aug 31 13:41:25 UTC 2023 create document success. 1.7
Thu Aug 31 13:41:25 UTC 2023 test completed.
Word
Thu Aug 31 13:41:43 UTC 2023 request received …
Thu Aug 31 13:41:43 UTC 2023 start to handle license…
Thu Aug 31 13:41:44 UTC 2023 apply license successful.
Thu Aug 31 13:41:44 UTC 2023 start to create a document…
Thu Aug 31 13:41:45 UTC 2023 create document success. content is:
Thu Aug 31 13:41:45 UTC 2023 test completed.
Tomcat 8.5.93 [docker]
org.apache.catalina.startup.Catalina.start Server startup in 8166 ms
PDF
Thu Aug 31 13:15:46 UTC 2023 request received …
Thu Aug 31 13:15:46 UTC 2023 start to handle license…
Thu Aug 31 13:15:47 UTC 2023 apply license successful.
Thu Aug 31 13:15:47 UTC 2023 start to create a document…
Thu Aug 31 13:15:47 UTC 2023 create document success. 1.7
Thu Aug 31 13:15:47 UTC 2023 test completed.
Word
Thu Aug 31 13:15:28 UTC 2023 request received …
Thu Aug 31 13:15:28 UTC 2023 start to handle license…
Thu Aug 31 13:15:29 UTC 2023 apply license successful.
Thu Aug 31 13:15:29 UTC 2023 start to create a document…
Thu Aug 31 13:15:30 UTC 2023 create document success. content is:
Thu Aug 31 13:15:30 UTC 2023 test completed.
HTML library throw exception: The given key was not present in the dictionary.
Tomcat 8.5.93 start time with aspose-web.war is 8 seconds.
Aspose Word and PDF libraries code runs are 1-2 seconds.
We attached our research project.
Commands for reproduction:
mvn clean install
docker build -t aspose-tomcat-8593 .
docker run -p 8593:8080 aspose-tomcat-8593
open: http://localhost:8593/aspose-web
aspose-web.zip (63.9 KB)
Based on the investigation described above, we can conclude that this is not a bug. Please upgrade Tomcat 8 to the latest version (now it is 8.5.93)
About Aspose.HTML for Java HTMLJAVA-1580 ticket has been logged in our issue tracking system about which we will keep you informed in this forum thread. Please spare us some time.