`
niyigeren
  • 浏览: 3704 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

spring,webservice

阅读更多
一。[java.lang.IllegalStateException: Could not find valid implementation for: 2.0]  架包的问题,

      删除myeclipse 自带的库里面的spring1.2.6.jar

     使用spring可以将其他的版本的架包导入进去,注意架包的问题,因为不同的项目关联到得其他的架包版本都是有差异的,所以要多注意;

二。删除架包后要修改一下 service.xml 配置文件,修改成如下

     <?xml version="1.0" encoding="UTF-8"?>
<beans>
<service xmlns="http://xfire.codehaus.org/config/1.0"
     xmlns:s="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
  <name>HelloWebService</name>
  <serviceClass>com.service.IHelloWebService</serviceClass>
  <implementationClass>
   com.service.HelloWebServiceImpl
  </implementationClass>
  <style>wrapped</style>
  <use>literal</use>
  <scope>application</scope>
</service>
</beans>

三。环境:这是基于myeclipse6.5,jdk1.5,tomcat6.0下进行的
0
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics