xfire java.lang.IllegalStateException: Could not initialize Service
来源:互联网 发布:mysql数据库命令行 编辑:程序博客网 时间:2024/06/05 14:36
最近项目要调用webservice接口,新建一个项目测试的时候没问题,但是放到项目里面一直报service创建不成功的错误,后来发现项目中的cxf.jar和xfire-all.jar两个包的原因
解决方法:由于项目中用到xfire-all.jar包(有可能在tomcat的lib目录下),不能删,有两种解决方案
1.删掉xfire包和删掉cxf.jar里 jaxws 子包的javax.xml.ws.spi.Provider class文件,由于项目删掉后又报Provider找不到,此时用第二种方法(由于jdk版本1.7及以上导致第一种方法就不用了)
2.把xfire-all-1.2.6.jar和cxf.jar里META-INF/services 目录下的javax.xml.ws.spi.Provider
内容改成com.sun.xml.internal.ws.spi.ProviderImpl
重启服务就好了。
文章转载自:http://blog.csdn.net/b422761838/article/details/50833282
0 0
- xfire java.lang.IllegalStateException: Could not initialize Service
- xfire java.lang.IllegalStateException: Could not initialize Service
- xfire报错java.lang.IllegalStateException: Could not initialize Service.
- xfire+spring2.0整合出现[java.lang.IllegalStateException: Could not find valid implementation for: 2.0]
- java.lang.NoClassDefFoundError: Could not initialize class
- 关于在java6中使用XFire时碰到的一个问题Could not initialize Service
- 在java6中使用XFire时提示错误Could not initialize Service
- java.lang.NoClassDefFoundError: Could not initialize java.util.Currency
- java.lang.IllegalStateException: Could not execute method of the activity
- java.lang.IllegalStateException: Could not execute method of the activity
- java.lang.IllegalStateException: Could not find a method onStartSingleInstanceActivityClickLisenter(
- java.lang.IllegalStateException: Could not execute method of the activity
- java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWi
- java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWi
- java.lang.IllegalStateException: Could not auto-size column.
- java.lang.NoClassDefFoundError: Could not initialize class的场景
- Caused by: java.lang.NoClassDefFoundError: Could not initialize class
- java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurityManager
- 通过QT_DEBUG_PLUGINS调试连接PostgreSQL/MySQL时driver not loaded问题
- Android Studio提示错误:Error running app: Instant Run requires
- ROS简单的发布器节点和订阅器节点
- ORA-06502:PL/SQL :numberic or value error: character string buffer too small
- MDX查询
- xfire java.lang.IllegalStateException: Could not initialize Service
- springboot整合swagger
- ue4 创建c++工程失败解决方案
- JavaScript中set与get方法用法
- mysql 空间数据库中的各个方法函数
- javax.persistence.Table.indexes()异常原因
- UIImagePickerController调取系统相册图片
- WifiManager-Wifi Control App-Note
- java 获取Connection