fire自带的包下有个spring1.2.6的jar包,而工程的jar包是2.0的。

解决方案:

1.将原配置文件的头schema方式换为DOCTYPE方式,原配置文件如下(非maven)

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans
  3. xmlns="http://www.springframework.org/schema/beans"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
  6. <bean id="helloWS" class="com.HelloWorld"/>
  7. <bean id="addressingHandler" class="org.codehaus.xfire.addressing.AddressingInHandler"/>
  8. <bean name="helloService" class="org.codehaus.xfire.spring.ServiceBean">
  9. <property name="serviceBean" ref="helloWS"/>
  10. <property name="serviceClass" value="com.IHelloWorld"/>
  11. <property name="inHandlers"><list><ref bean="addressingHandler"/></list></property>
  12. </bean>
  13. </beans>

改成:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
  3. <beans>
  4. <bean id="helloWS" class="com.HelloWorld"/>
  5. <bean id="addressingHandler" class="org.codehaus.xfire.addressing.AddressingInHandler"/>
  6. <bean name="helloService" class="org.codehaus.xfire.spring.ServiceBean">
  7. <property name="serviceBean" ref="helloWS"/>
  8. <property name="serviceClass" value="com.IHelloWorld"/>
  9. <property name="inHandlers"><list><ref bean="addressingHandler"/></list></property>
  10. </bean>
  11. </beans>

2.maven环境下建pom.xml的xfire调整以下:

<!-- xfire 1.2.6 -->
<dependency>
<groupId>org.codehaus.xfire</groupId>
<artifactId>xfire-spring</artifactId>
<version>1.2.6</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
</exclusions>
</dependency>

重新发布即可

最新文章

  1. HttpRequestUtil
  2. Sharepoint2013:日期控件报错
  3. python脚本实现集群检测和管理
  4. hdu5441(2015长春赛区网络赛1005)类最小生成树、并查集
  5. Android中ListView滚动时上下边界的那一抹色彩
  6. bzoj 4006 [JLOI2015]管道连接(斯坦纳树+状压DP)
  7. BZOJ 1927: [Sdoi2010]星际竞速 费用流
  8. sql server varchar(10)和 nvarchar(10)存储数据长度
  9. 它们的定义actionbar 并删除留空
  10. http请求连接
  11. EJB基础知识
  12. docker swarm的常用操作
  13. MongoDB的客户端管理工具--nosqlbooster 连接MongoDB服务器
  14. vs 2015 编译cocos2d-x-3.9
  15. 使用gulp压缩js详细步骤笔记
  16. 微信小程序开发语言的选择
  17. Mininet安装
  18. 聊聊javascript的null和undefined
  19. VC++6.0中碰到Cannot access the ClassView information file.ClassView information will not be avaible.的解决方法
  20. 1.ideal常用快捷键

热门文章

  1. day5-logging模块
  2. [转载]Java操作Excel文件的两种方案
  3. shiro:10个过滤器;10个jsp标签;5个@注解
  4. Quartz 框架 教程(中文版)2.2.x
  5. linux FTP 操作
  6. 为eclipse EE(汉化版) 配置Tomcat服务器
  7. poj1273&amp;&amp;hdu1532
  8. hdu2426
  9. LeetCode OJ:Word Pattern(单词模式)
  10. LeetCode OJ:Rotate List(旋转链表)