CXF报错Error creating bean with name 'org.apache.cxf.buslifecycle.BusLifeCycleManager'
来源:互联网 发布:淘宝卖盗版书被下架了 编辑:程序博客网 时间:2024/06/06 08:57
[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。
@WebServicepublic interface ItestDAO {public CustomerBasicInfo test(HashMap<String,String> mapCon);}
0 0
- CXF报错Error creating bean with name 'org.apache.cxf.buslifecycle.BusLifeCycleManager'
- spring+cxf发布服务报错Error creating bean with name 'org.apache.cxf.jaxws.spring.NamespaceHandler$SpringSe
- CXF异常:Error creating bean with name 'org.apache.cxf.jaxws.EndpointImpl---86262394
- Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource
- Error creating bean with name 'org.apache.cxf.binding.soap.customEditorConfigurer'
- Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]
- Spring Aop 报错error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator
- 报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PPTServic
- java报错-->Error creating bean with name 'org.springframework.web.servlet.resource.ResourceHttpRequest
- Spring Aop 报错error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator
- 项目启动报错: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sys
- mybatis报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sq
- weblogic9 不兼容 cxf 程序的解决方法 (Error creating bean with name 'xxxWebService')
- jbpm报错:Error creating bean with name 'processEngine'
- Spring 报错:Error creating bean with name的解决方法
- Spring 报错:Error creating bean with name
- ssh整合——运行tomcat报错:严重: action: null...Error creating bean with name 'sessionFactory' .....org.apache.commons.collections.Sequence
- org.apache.catalina.core.StandardContext listenerStart(Error creating bean with name 'sessionFactory
- POJ 2718 Smallest Difference(DFS+全排列函数)
- 云计算设计模式(六)——命令和查询职责分离(CQRS)模式
- 【Mockplus教程】复制/克隆
- 关机时windows发的消息WM_QUERYENDSESSION
- Linux系统函数open和close(01)
- CXF报错Error creating bean with name 'org.apache.cxf.buslifecycle.BusLifeCycleManager'
- Mongodb怎样删除重复记录
- 【Mockplus教程】删除
- scrapy爬虫防止被禁止 User Agent切换
- 实现微信tab颜色渐变效果
- Java POI 导出Excel
- TWebBrower 动态改变大小
- RedHat Linux网络配置过程笔记
- sublime text3自定义快捷键