CXF报错Error creating bean with name 'org.apache.cxf.buslifecycle.BusLifeCycleManager'
2015-09-18 14:10
696 查看
[DisposableBeanAdapter] ERROR Couldn't invoke destroy method 'shutdown' of bean with name 'cxf' org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.apache.cxf.buslifecycle.BusLifeCycleManager': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
引起报错可能有两种情况:
1、webservice类中引用了其他对象,而且其他对象中有set/get方法。
解决办法:删除多余的set/get方法。
public class CustomerBasicInfo implements Persistentable { /** * 声名变量 */ private PartyMAI partyMAI = new PartyMAIImp(); /*public PartyMAI getPartyMAI() { return partyMAI; } public void setPartyMAI(PartyMAI partyMAI) { this.partyMAI = partyMAI; }*/
2、webservice类中包含Map或List。
解决办法:不使用接口声明,用具体类声明。如:Map改为HashMap、List改为ArrayList。
@WebService public interface ItestDAO { public CustomerBasicInfo test(HashMap<String,String> mapCon); }
相关文章推荐
- Apache 负载均衡 session
- apache URL 区别大小写
- 第一次玩linux,Apache安装
- Apache多站点配置
- APACHE日志参数说明
- MetaException(message:Got exception: org.apache.hadoop.ipc.RemoteException Cannot create directory /
- Centos7安装WordPress(一)安装Apache, PHP And MySQL(LAMP)
- ubuntu apache2 error.log日志数据的具体解释
- 安装nagios后,通过Apache访问nagios不能正常访问,总是下载index.php
- apache软件包下载地址
- apache的工作模式
- Win10下 PHP+Apache+MySQL 详细配置(非集成)
- 使用Apache Commons CLI开发命令行工具
- SQOOP解决class org.apache.sqoop.Sqoop
- apache2 ubuntu log 的地址
- ubuntu apache2 版本号
- django1.6 apache 项目部署.
- ubuntu下配置django+apache+mysql+mod_python+Python
- Apache Camel读取配置文件
- SpringMVC + Apache POI 实现WEB中Excel下载功能