天天看點

Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]

【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]

  •             不顯示删除回複
  •            顯示所有回複
  •             顯示星級回複
  •            顯示得分回複
  •             隻顯示樓主
  • Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    收藏
  • Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    關注
    pkanyue
    pkanyue
    本版等級:
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    結帖率:66.67%

    樓主 發表于: 2012-04-26 09:03:27 以下是報錯資訊:

    各位幫幫忙...

    04-26 08:32:55 [INFO ] factory.support.DefaultListableBeanFactory destroySingletons 422  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6ccf3e: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,hello,helloWorld,get,getmsg,getno,no]; root of factory hierarchy

    04-26 08:32:55 [INFO ] context.support.XmlWebApplicationContext doClose 1002  - Closing Root WebApplicationContext: startup date [Thu Apr 26 08:32:38 CST 2012]; root of context hierarchy

    04-26 08:32:55 [WARN ] context.support.XmlWebApplicationContext doClose 1010  - Exception thrown from ApplicationListener handling ContextClosedEvent

    org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'cxf': 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!)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:209)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)

    at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:148)

    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:86)

    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)

    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1007)

    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)

    at org.apache.cxf.bus.spring.SpringBus.destroyBeans(SpringBus.java:131)

    at org.apache.cxf.bus.CXFBusImpl.shutdown(CXFBusImpl.java:217)

    at org.apache.cxf.bus.CXFBusImpl.shutdown(CXFBusImpl.java:199)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:273)

    at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:199)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:487)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:463)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:431)

    at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1048)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:433)

    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)

    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)

    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)

    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)

    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)

    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)

    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

    at org.apache.catalina.core.StandardService.start(StandardService.java:451)

    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

    更多0 分享到: 相關知識庫:  CSS3  Hive  Objective-C  區塊鍊 width="728" height="90" frame marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" id="aswift_1" name="aswift_1" style="box-sizing: content-box; left: 0px; position: absolute; top: 0px;">

    • id="iframeu1636200_0" src="http://pos.baidu.com/xcgm?rdid=1636200&dc=2&di=u1636200&dri=0&dis=0&dai=2&ps=2518x309&dcb=BAIDU_SSP_define&dtm=HTML_POST&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1478247649627&ti=%E3%80%90%E6%B1%82%E5%8A%A9%E3%80%91CXF%E7%9A%84%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF%AF%EF%BC%8C%E6%8A%98%E8%85%BE%E4%B8%80%E5%A4%A9%E4%BA%86%E5%87%BA%E4%B8%8D%E6%9D%A5-CSDN%E8%AE%BA%E5%9D%9B-CSDN.NET-%E4%B8%AD%E5%9B%BD%E6%9C%80%E5%A4%A7%E7%9A%84IT%E6%8A%80%E6%9C%AF%E7%A4%BE%E5%8C%BA&ari=2&dbv=2&drs=3&pcs=1197x729&pss=1197x4875&cfv=0&cpl=5&chi=1&cce=true&cec=UTF-8&tlm=1478247649&rw=729&ltu=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F390023901&ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DYPz1UdZTkoOd_3sCRmhbzLUME0bslW2tFgSXQCOAK4rTtEV6EsHSzvxFz6lvWt87%26wd%3D%26eqid%3D8dfe1d6100023d4d00000005581c44d8&ecd=1&psr=1920x1080&par=1920x1040&pis=-1x-1&ccd=24&cja=false&cmi=7&col=zh-CN&cdo=-1&tcn=1478247650&qn=fc7f339791879b5e&tt=1478247649611.21.198.199" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frame allowtransparency="true" style="box-sizing: content-box; border-width: 0px; border-style: initial; vertical-align: bottom; margin: 0px;">  
    • id="iframeu1636201_0" src="http://pos.baidu.com/xcgm?rdid=1636201&dc=2&di=u1636201&dri=0&dis=0&dai=3&ps=2518x563&dcb=BAIDU_SSP_define&dtm=HTML_POST&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1478247649627&ti=%E3%80%90%E6%B1%82%E5%8A%A9%E3%80%91CXF%E7%9A%84%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF%AF%EF%BC%8C%E6%8A%98%E8%85%BE%E4%B8%80%E5%A4%A9%E4%BA%86%E5%87%BA%E4%B8%8D%E6%9D%A5-CSDN%E8%AE%BA%E5%9D%9B-CSDN.NET-%E4%B8%AD%E5%9B%BD%E6%9C%80%E5%A4%A7%E7%9A%84IT%E6%8A%80%E6%9C%AF%E7%A4%BE%E5%8C%BA&ari=2&dbv=2&drs=3&pcs=1197x729&pss=1197x4875&cfv=0&cpl=5&chi=1&cce=true&cec=UTF-8&tlm=1478247649&rw=729&ltu=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F390023901&ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DYPz1UdZTkoOd_3sCRmhbzLUME0bslW2tFgSXQCOAK4rTtEV6EsHSzvxFz6lvWt87%26wd%3D%26eqid%3D8dfe1d6100023d4d00000005581c44d8&ecd=1&psr=1920x1080&par=1920x1040&pis=-1x-1&ccd=24&cja=false&cmi=7&col=zh-CN&cdo=-1&tcn=1478247650&qn=875d6c619f46c2d3&tt=1478247649611.22.200.201" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frame allowtransparency="true" style="box-sizing: content-box; border-width: 0px; border-style: initial; vertical-align: bottom; margin: 0px;">  
    • id="iframeu1636204_0" src="http://pos.baidu.com/xcgm?rdid=1636204&dc=2&di=u1636204&dri=0&dis=0&dai=4&ps=2518x817&dcb=BAIDU_SSP_define&dtm=HTML_POST&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1478247649627&ti=%E3%80%90%E6%B1%82%E5%8A%A9%E3%80%91CXF%E7%9A%84%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF%AF%EF%BC%8C%E6%8A%98%E8%85%BE%E4%B8%80%E5%A4%A9%E4%BA%86%E5%87%BA%E4%B8%8D%E6%9D%A5-CSDN%E8%AE%BA%E5%9D%9B-CSDN.NET-%E4%B8%AD%E5%9B%BD%E6%9C%80%E5%A4%A7%E7%9A%84IT%E6%8A%80%E6%9C%AF%E7%A4%BE%E5%8C%BA&ari=2&dbv=2&drs=3&pcs=1197x729&pss=1197x4875&cfv=0&cpl=5&chi=1&cce=true&cec=UTF-8&tlm=1478247649&rw=729&ltu=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F390023901&ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DYPz1UdZTkoOd_3sCRmhbzLUME0bslW2tFgSXQCOAK4rTtEV6EsHSzvxFz6lvWt87%26wd%3D%26eqid%3D8dfe1d6100023d4d00000005581c44d8&ecd=1&psr=1920x1080&par=1920x1040&pis=-1x-1&ccd=24&cja=false&cmi=7&col=zh-CN&cdo=-1&tcn=1478247650&qn=6e654dd3d9efc192&tt=1478247649611.23.204.204" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frame allowtransparency="true" style="box-sizing: content-box; border-width: 0px; border-style: initial; vertical-align: bottom; margin: 0px;">
    對我有用[0]  丢個闆磚[0]  引用 |  舉報 |  管理 回複次數:5
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    關注
    gl74gs48
    阿甘1976
    本版等級:
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    #1 得分:40 回複于: 2012-04-26 09:24:23 單例的bean不允許被建立,除非單例工廠被銷毀。應該是你使用的這個單例bean,又被你重複建立執行個體啦
    對我有用[0]  丢個闆磚[0]  引用 |  舉報 |  管理
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    關注
    pkanyue
    pkanyue
    本版等級:
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    #2 得分:0 回複于: 2012-04-26 09:51:14 不知道怎麼回事了,做了3個前兩個都正常,這個就報錯
    對我有用[0]  丢個闆磚[0]  引用 |  舉報 |  管理
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    關注
    csy80
    csy80
    本版等級:
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    #3 得分:0 回複于: 2012-05-04 15:56:23 同求,樓主有沒有解決?共享下呗
    對我有用[0]  丢個闆磚[0]  引用 |  舉報 |  管理
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    關注
    csy80
    csy80
    本版等級:
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    #4 得分:0 回複于: 2012-05-04 16:23:22 引用 2 樓  的回複:
    不知道怎麼回事了,做了3個前兩個都正常,這個就報錯
    樓主,最後是怎麼解決的呢?
    對我有用[0]  丢個闆磚[0]  引用 |  舉報 |  管理
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    關注
    pkanyue
    pkanyue
    本版等級:
    Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not 【求助】CXF的一個錯誤,折騰一天了出不來 [問題點數:40分,結帖人pkanyue]
    #5 得分:0 回複于: 2012-05-04 17:52:39 引用 3 樓  的回複:
    同求,樓主有沒有解決?共享下呗

    看看你的接口實作類有沒有下面這句

    @WebService(endpointInter)

    我的錯誤很失敗很丢人,我接口的test.GetNo這個寫成小寫了test.getNo。

    還有你看看你的接口有沒有下句。

    @WebService