What version of CXF? I thought we had fixed these a while ago. If it's not the latest version, please try again with 2.2.10. If it is 2.2.10, can you produce a test case?
Thanks! Dan On Friday 03 September 2010 4:04:37 am antechrestos wrote: > Hi, > > I encountered the same problem as described here: > http://cxf.547215.n5.nabble.com/IllegalStateException-in-client-when-CXF-se > rvice-is-hot-deployed-td552225.html#a552226 I have an application that both > offers some webservices and is a client of remote webservices. If I deploy > my application in my server that has just been started, everything works > fine. > However, if I try to undeploy and redeploy my application without > restarting the server, I get the folowing stack when I build the client. > I assume that it is a CFX problem but a misuse I may have done. I was just > wandering if there was a way to clear the cache/bean factory used by CFX? > Or maybe a way of prevent this trouble? > > Here is the stack: > java.lang.IllegalStateException: BeanFactory not initialized or already > closed - call 'refresh' before accessing ans via the ApplicationContext > at > org.springframework.context.support.AbstractRefreshableApplicationContext.g > etBeanFactory(AbstractRefreshableApplitionContext.java:153) at > org.springframework.context.support.AbstractApplicationContext.getBean(Abst > ractApplicationContext.java:884) at > org.apache.cxf.bus.spring.BusExtensionPostProcessor$1.findExtension(BusExte > nsionPostProcessor.java:70) at > org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:94) at > org.apache.cxf.transport.http.HTTPConduit.initializeConfig(HTTPConduit.java > :333) at > org.apache.cxf.transport.http.HTTPConduit.<init>(HTTPConduit.java:303) > at > org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(Abstr > actHTTPTransportFactory.java:157) at > org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(Abstr > actHTTPTransportFactory.java:144) at > org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(Abstract > ConduitSelector.java:78) at > org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelect > or.java:61) at > org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:7 > 43) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265) at > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) > at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124) -- Daniel Kulp [email protected] http://dankulp.com/blog
