1 java 版本号的不同问题
Caused by: java.lang.UnsupportedClassVersionError: com/apache/MyProductService :
Unsupported major.minor version 51.0 (unable to load class com.apache.MyProductService)这个切换版本就好了
2 maven 报错
File not found: xxx\xxx\target\pom.properties.
xxx_workspace\order\target\classes\META-INF\maven\xxx\pom.properties (系统找不到指定的路径。) 两个办法<1> \target\classes\META-INF\MANIFEST.MF (系统找不到指定的路径。)
选择出错误的项目,右键选择Run As -》Maven clean ,问题解决。<2> 找到eclipse的project菜单选择clean...选项
选择Clean all projects 或者 Clean projects selectd blow(选择此项必须勾选出错的项目)
3 这个问题是 我项目运行 之前用的都是 使用 jetty 插件来运行项目 ,但是这里报错 ,用tomcat 插件也不行
,后来只好使用 tomcat 来运行 maven 的 hessian 服务 ,可以使用 ,我猜是 插件不能加载 hessian 那样bean
bean如下
<bean id="innerService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean"> <property name="serviceUrl" value="${new.product}"/> <property name="serviceInterface" value="com.apache.MyProductService"/> <property name="overloadEnabled" value="true"/> </bean>
可以hessian 配置的没有问题 ,
如果有大神 给指出 具体原因 ,感谢 。