Getting runtime exception "Provider com.ctc.wstx.stax.WstxInputFactory not found

KiranK December 30, 2013

I have written the Restful plugin and added the code related to the soap webservice client code.

I am trying to invoking from the rest service

However the soap webservice calls working in the standlone.

Please advice any other approaches to invoke the soap web service calls from plugin?


  • message
    : "Provider com.ctc.wstx.stax.WstxInputFactory not found",
  • status-code: 500,
  • stack-trace: "javax.xml.stream.FactoryFinder$ConfigurationError: Provider com.ctc.wstx.stax.WstxInputFactory not found at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:162) at javax.xml.stream.FactoryFinder.findJarServiceProvider(FactoryFinder.java:316) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:241) at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:123) at org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:504) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axiom.om.util.StAXUtils.newXMLInputFactory(StAXUtils.java:494) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory_perClassLoader(StAXUtils.java:565) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:171) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:136) at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:223) at org.apache.axiom.om.impl.llom.factory.AbstractOMMetaFactory.createXMLStreamReader(AbstractOMMetaFactory.java:53) at org.apache.axiom.om.impl.llom.factory.AbstractOMMetaFactory.createOMBuilder(AbstractOMMetaFactory.java:95) at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:153) at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:133) at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:104) at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:590) at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575) at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210) at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151) at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144) at org.wso2.www.php.QMetryWSStub.<init>(QMetryWSStub.java:1303) at org.wso2.www.php.QMetryWSStub.<init>(QMetryWSStub.java:1289) at org.wso2.www.php.QMetryWSStub.<init>(QMetryWSStub.java:1335) at org.wso2.www.php.QMetryWSStub.<init>(QMetryWSStub.java:1327) at com.dt.jira.plugin.rest.TestCaseExecutionStatus.getMessage(TestCaseExecutionStatus.java:82) 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 com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:100) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:132) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:230) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) at

1 answer

1 vote
Kevin Lange May 11, 2015

I had an similar Problem.

The simple solution for me was that the Factory must be added as an component in the atlassian-plugin.xml

&lt;component
		key="wstxInputFactory"
		class="com.ctc.wstx.stax.WstxInputFactory" /&gt;

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events