【解决】spring中集成hessian报异常,ClassNotFoundException:com.caucho.hessian.io.HessianDebugOutputStream
2012-09-13 16:33
2231 查看
环境:
spring 2.5.2
hessian 3.0.20
在启动服务器时,报出异常。
java.lang.classNotFoundException:com.caucho.hessian.io.HessianDebugOutputStream
字面意思为没有找到HessianDebugOutputStream类,打开hessian的jar包后果然没有找到这个类。
原因:
spring2.5.2 与 hessian3.0.20 不兼容。spring 中的 org.springframework.remoting.caucho.HessianExporter 在运行 prepare() 方法时需要HessianDebugOutputStream支持。
解决办法:
使用较高版本的 hessian (注意:是较高哦!不是最高!),比如 hessian3.1.6。
可以看到 hessian3.1.6是有HessianDebugOutputStream这个类的。
补充:
在 spring 中集成 hessian,hessian 的版本也不是越高越好。要看相应版本的 spring 的支持情况,参考下面的文章。
http://zhaoyan452310-163-com.iteye.com/blog/703002 http://java.chinaitlab.com/base/849773_4.html http://www.blogjava.net/virtual-function/articles/264787.html
spring 2.5.2
hessian 3.0.20
在启动服务器时,报出异常。
java.lang.classNotFoundException:com.caucho.hessian.io.HessianDebugOutputStream
字面意思为没有找到HessianDebugOutputStream类,打开hessian的jar包后果然没有找到这个类。
原因:
spring2.5.2 与 hessian3.0.20 不兼容。spring 中的 org.springframework.remoting.caucho.HessianExporter 在运行 prepare() 方法时需要HessianDebugOutputStream支持。
解决办法:
使用较高版本的 hessian (注意:是较高哦!不是最高!),比如 hessian3.1.6。
可以看到 hessian3.1.6是有HessianDebugOutputStream这个类的。
补充:
在 spring 中集成 hessian,hessian 的版本也不是越高越好。要看相应版本的 spring 的支持情况,参考下面的文章。
http://zhaoyan452310-163-com.iteye.com/blog/703002 http://java.chinaitlab.com/base/849773_4.html http://www.blogjava.net/virtual-function/articles/264787.html
相关文章推荐
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- spring集成quartz中java.lang.ClassNotFoundException: org.quartz.impl.JobDetailImpl异常解决方法
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- 异常解决 java.io.FileNotFoundException: class path resource [spring/springmvc.xml]
- 【Bug解决】Spring配置错误:java.io.FileNotFoundException: class path resource [cxd/entity/User.hbm.xml] canno
- 异常 java.lang.ClassNotFoundException com.mysql.jdbc.Driver 解决方法
- 出现 com.caucho.hessian.io.HessianServiceException: The service has no method named: XXX 异常的原因及解决方法
- spring hiberante 集成出现异常 java.lang.ClassNotFoundException: org.hibernate.engine.SessionFactoryImplementor
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 解决方法
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- class not found exception:com.mysql.jdbc.Driver解决方法
- 解决:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- mysql驱动配置:解决java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- 解决java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver问题
- maven项目启动报:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 错误解决方法-杜恩德
- resin-pro-4.0.53报错java.lang.Error: java.lang.ClassNotFoundException: com.caucho.loader.SystemClassLoader
- Java Web项目异常问题——java.lang.ClassNotFoundException: com.mysql.jdbc:Driver
- 关于java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication的解决
- 项目集成Maven后JUnit报ClassNotFoundException错误的分析及解决
- eclipse无法Debug,Debug 时候ClassNotFoundException的解决方法