我目前正在调试为什么我们部署在 Tomcat 8.5
上的用 Java 1.8
编译的旧版 Maven
Web 应用程序会发送所有以下消息的时间:
警告:无法获取 charToByteConverterClass!
奇怪的是,当在本地 Tomcat 实例上启动它时,我在控制台中看到了警告,但在 catalina.out
文件中却没有看到。
到目前为止我的猜测是这是由某种依赖性引起的,因为我们的代码中没有这样的警告。
问题是我们有非常旧的依赖项,而且还有很多,所以在尝试升级它们之前,我想知道是否有任何方法:
- 查看打印的“调用堆栈”。
- 或者至少看看哪个类正在打印该内容。
到目前为止我尝试过的事情:
- 将应用程序日志级别设置为信息。
- 将 Tomcat 的日志记录级别设置为“全部”。
最佳答案
您需要升级 xalan由于自 2.7 版本以来已修复的问题:
issue is now resolved as being fixed in the Xalan-J 2.7 release. As the issue reporter please confirm the code no longer has this problem so that we can close this issue down.
Actually the code that had the problem is totally gone, haha! Through XALANJ-2087 the dependancy on CharToByteConverter was removed plus a number of bugs were fixed due to an incorrect algorithm.
关于java - 哪个 java 类在 catalina.out 上发出警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63033541/