海水正蓝

面朝大海,春暖花开
posts - 145, comments - 29, trackbacks - 0, articles - 1
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Spring mvc Webservice 不允许重载方法

Posted on 2013-01-09 10:10 小胡子 阅读(797) 评论(0)  编辑  收藏 所属分类: Spring
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ResourceService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: An operation with name [####] already exists in this service

可能是因为WebService 存在重载的方法,因此初始化时Spring无法找到对应的方法
使用的插件为:
javax.jws-1.0.0_JDK1.5_1.0.0.jar
cxf-bundle-2.5.2.jar
spring-webmvc-3.1.1.RELEASE.jar

只有注册用户登录后才能发表评论。


网站导航: