Hi,
I encountered the same problem as described here:
http://cxf.547215.n5.nabble.com/IllegalStateException-in-client-when-CXF-service-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.getBeanFactory(AbstractRefreshableApplitionContext.java:153)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)
at
org.apache.cxf.bus.spring.BusExtensionPostProcessor$1.findExtension(BusExtensionPostProcessor.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(AbstractHTTPTransportFactory.java:157)
at
org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:144)
at
org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:78)
at
org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:61)
at
org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:743)
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)
--
View this message in context:
http://cxf.547215.n5.nabble.com/IllegalStateException-in-client-when-CXF-application-is-redeployed-tp2801856p2801856.html
Sent from the cxf-user mailing list archive at Nabble.com.