实际上我在docker中使用tomcat,我们的war文件挂载在另一个文件夹上。有四个目录在挂载的文件夹中,一个是war文件,两个java-script文件夹和一个管理器-gui文件夹。War文件和其他java脚本文件夹被自动删除,但管理界面仍然存在。我使用java 1.8, tomcat 9.0和docker服务器版本->1.13.1(基础操作系统内核版本:3.10.0-862.el7.x86_64)。
->security.proto13-Dec-2022 10:10:16.849 INFO [http-nio-8080-exec-124] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/admin-manager]
col = PLAINTEXT
send.buffer.bytes = 131072
->13-Dec-2022 10:10:17.653 INFO [http-nio-8080-exec-208] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/dashboard]
->13-Dec-2022 10:10:19.848 INFO [http-nio-8080-exec-185] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/linedashboard]
->13-Dec-2022 10:10:21.182 WARNING [http-nio-8080-exec-152] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [moep] registered the JDBC driver [com.mysql.cj.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
->13-Dec-2022 10:10:21.182 WARNING [http-nio-8080-exec-152] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [moep] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
修改访问系统的权限,重新创建tomcat容器。有谁能告诉我为什么会发生这种情况,我该如何解决?
manager-ui通常由您在Docker镜像中使用的tomcat安装提供。当您的WAR(可能)作为另一个进程的一部分部署时,(可能)在容器已经创建后运行。