1

我在这个项目中同时使用 Spring 和 Hessian,并以 Tomcat 作为其容器。所有的 Hessian 代码都可以正常工作(数据被发送和保存,没有任何障碍)但是有一个东西会一直登录到 catalina.out

Sep 12, 2013 1:49:49 PM com.caucho.hessian.io.SerializerFactory getDeserializer
WARNING: Hessian/Burlap: 'com.manilapath.mppiservices.document.impl.DocumentInternal' is an unknown class in WebappClassLoader
  context: /articleservices
  delegate: false
  repositories:
----------> Parent Classloader:
ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@3f611aec]
:
java.lang.ClassNotFoundException: com.manilapath.mppiservices.document.impl.DocumentInternal

我有点担心这会使日志膨胀或导致沿途出现一些问题。请注意,“DocumentInternal”类是我用来将数据传递给 Hessian 服务的类,它实际上被正确反序列化。我已经在互联网上闲逛了几天,正在寻找这个警告的线索,但我仍然无法追踪它,有没有人有任何提示我可以查看?

4

2 回答 2

0

This warning appears when a class included into the Hessian stub has a sub-class that is not included in the Hessian stub. At least that's how it is in my case. Removing unneeded extensions caused about by bad use of inheritance solved this problem.

于 2014-08-01T06:54:01.047 回答
-1

帮助我关闭此警告的是在 ${tomcat_home}/conf/loggin.properties 的末尾添加一行:

com.caucho.hessian.io.SerializerFactory.level = 严重

于 2013-10-28T16:42:51.790 回答