java - 哪个 java 类在 catalina.out 上发出警告

标签 java maven debugging tomcat tomcat8

我目前正在调试为什么我们部署在 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/

相关文章:

java - Web应用程序[/payapplication]抛出load()异常java.lang.ClassNotFoundException : org. jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean

Maven 依赖树 - 加号 (+) 与反斜杠 (\)

java - Eclipse 未在断点处停止 :Remote Java Debugging (done locally)

c# - 没有逻辑空间来创建更多用户字符串

java - 处理 - 如何使用鼠标移动棋子?

Java extends Thread 不起作用,但 implements Runnable 起作用。我不明白为什么?

Maven 使用 JAX-WS 2.1 而不是 JAX-WS 2.2

java - ImageView不根据屏幕尺寸进行调整

java - 如何为 webdriver 编写 keyDown 和 keyUp?

Java异常: get detailMessage only