1 Reply Latest reply on Dec 28, 2011 8:53 PM by Freeman(Yue) Fang

    Cannot locate WstxOutputFactory on Application context refresh

    Carlos Morales Newbie



      I have successfully created a small OSGi Bundle that contains a Web Service proxy and performs some basic transformations required by the target service and the calling clients. I am able to deploy the bundle without problem and it works fine. However, after some days of use, the Application Context is 'refreshed' and the bundle stops working. This is the error I see in the logs:


      09:45:57,809 | ERROR | ExtenderThread-1 | ContextLoaderListener            | ?                                   ? | 85 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=my-test-bundle, config=osgibundle:/META-INF/spring/\*.xml))

      org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL \[bundle://245.0:0/META-INF/spring/endpoint-beans.xml\]; nested exception is javax.xml.stream.FactoryConfigurationError: Requested factory com.ctc.wstx.stax.WstxOutputFactory cannot be located.  Classloader =BundleDelegatingClassLoader for



      I am using using the CXF endpoints with dataFormat=MESSAGE and some simple Velocity and XSLT transformations to implement the functionality.


      Bundle is deployed in Fuse ESB 4.4.0-fuse-00-43 on CentOS release 5.6 (Final).


      Attached to this message, you can fin the bundle headers and the full stacktrace of the error.


      I hope someone can shed some light on what might be causing this weird error.


      Edited by: ytsejammer on Dec 28, 2011 7:23 PM


      Edited by: ytsejammer on Dec 28, 2011 7:25 PM