在je里有许多关于Hessian的讨论文章,看了两篇就跟着动手写Spring对Hessian的集成使用。
工程里使用的是Spring的2.5.6版本,开始用Hessian的3.2.1版本。
启动服务器,总是有异常:com.caucho.hessian.io.HessianProtocolException: expected string at 0x6d 百度来google去,发现是版本的不兼容问题。在Spring论坛说明了这个问题的原因:http://forum.springsource.org/showthread.php?t=66876
其中一句是:Nevertheless, I found that the problem comes from hessian 3.2.1. In that version, Hessian2Input does not understand hessian 1 input!
后来,把Hessian的版本改为3.1.5版本。就可以了。
之前的另一个问题是,Spring的2.5.6版本缺少org.springframework.web.servlet.DispatcherServlet类支持,
所以另加了个org.springframework.web.servlet-3.0.0.M2.jar文件。
整个工程跑了起来不容易啊,前后折腾了2个小时,java初学者,摸索中。。。
工程里使用的是Spring的2.5.6版本,开始用Hessian的3.2.1版本。
启动服务器,总是有异常:com.caucho.hessian.io.HessianProtocolException: expected string at 0x6d 百度来google去,发现是版本的不兼容问题。在Spring论坛说明了这个问题的原因:http://forum.springsource.org/showthread.php?t=66876
其中一句是:Nevertheless, I found that the problem comes from hessian 3.2.1. In that version, Hessian2Input does not understand hessian 1 input!
后来,把Hessian的版本改为3.1.5版本。就可以了。
之前的另一个问题是,Spring的2.5.6版本缺少org.springframework.web.servlet.DispatcherServlet类支持,
所以另加了个org.springframework.web.servlet-3.0.0.M2.jar文件。
整个工程跑了起来不容易啊,前后折腾了2个小时,java初学者,摸索中。。。