`

Could not find valid implementation for: 2.0

阅读更多
Could not find valid implementation for: 2.0
 使用MyEclipse、Spring 2.0、XFire和tomcat 5或6开发WebService 时,初始化Spring对象时抛出以下异常:
 
Error initializing XFireServlet.
 java.lang.IllegalStateException: Could not find valid implementation for: 2.0
  at org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:48)
  at org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:74)
  at org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)
  at org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)
  at org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)
  at org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)
  at javax.servlet.GenericServlet.init(GenericServlet.java:212)
  at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
  at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
 
 
 
 问题的原因是因为xfire不支持spring2.0的新特性,需要修改service.xml文件,将beans元素的命名空间放到services元素上,修改后的xml如下:
 
<beans>
 
 <services xmlns="http://xfire.codehaus.org/config/1.0">
 
 </services>
 
</beans>
 
另外,由于我使用了MyEclipse的Spring Capailities和WebService Capailities(使用xfire),由于后者自带了Spring1.2.6的包,造成了和2.0版本的冲突,所以必须作以下工作:
 
    删除<MyEclise_Home>/eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.9.100\data\1.2\lib目录的Spring1.2.6包
 
    删除Tomcat/Webapps/<项目目录>/WEB-INF/lib目录下的Spring1.2.6包(好像重新部署不能删除已经存在的包)
 
    重新启动MyEclipse
分享到:
评论

相关推荐

    8-07-14_MegaCLI for linux_windows

    LSIP200232921 (DFCT) MegaCLI displays version for PD in unclear format and the data is not aligned correctly LSIP200232954 (DFCT) Need to Support all the MFC default values in the command AdpSettings...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Do not forget that a -inl.h file requires a #define guard just like any other header file. Function Parameter Ordering link ▶When defining a function, parameter order is: inputs, then outputs. ...

    a project model for the FreeBSD Project.7z

    This project model is not meant to be a tool to justify creating impositions for developers, but as a tool to facilitate coordination. It is meant as a description of the project, with an overview of...

    VclZip pro v3.10.1

    VCLZip supplies a default implementation of this method so for most purposes you won't need your own. - method DefaultFileNameForSplitPart - VCLZip calls this internally if you don't define your own...

    Java邮件开发Fundamentals of the JavaMail API

    take advantage of protocols for which Sun does not provide out-of-the-box support. You'll find support for NNTP (Network News Transport Protocol) [newsgroups], S/MIME (Secure Multipurpose Internet ...

    Bochs - The cross platform IA-32 (x86) emulator

    - Added support for VGA graphics mode with 400 lines (partial fix for SF bug #2948724) - NE2K: Fixed "send buffer" command issue on big endian hosts - USB - converted common USB code plus devices ...

    Sakemail

    He also send me a nice patch, so the bug is fixed.- Craig Manley added a ExtraHeaders property, please, use with care, it‘s just not valid to put inside it whatever thing.- The CC header was not ...

    cisco_ios_access_lists.pdf

    access lists are used for a whole range of policies, not just for security concerns. I envision this book as a guide and reference for implementing network policies with access lists on Cisco ...

    VB编程资源大全(英文源码 网络)

    This could be used for what i used it for in the past for a news program&lt;END&gt;&lt;br&gt;28 , url.zip Worldwide list of URL extensions by country&lt;END&gt;&lt;br&gt;29 , EmailChk.zip This Application checks for ...

    曲线拟合工具CurveExpert 1.0

    + QuickCalc has been expanded to find the x-value, given the y-value. + Optimizations have been applied to many routines, making the user interface more responsive and the algorithms quicker. ...

    数位板压力测试

    This specification was developed in response to a perceived need for a standardized programming inter-face to digitizing tablets, three dimensional position sensors, and other pointing devices by a ...

    ViewPager 放大缩小左右移动

    * Simple implementation of the {@link OnPageChangeListener} interface with * stub implementations of each method. Extend this if you do not intend to * override every method of {@link ...

Global site tag (gtag.js) - Google Analytics