camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Shaw <>
Subject camel-example-cxf-osgi
Date Wed, 23 Aug 2017 23:51:51 GMT

I'm trying to run the camel-example-cxf-osgi example in karaf 4.1.1, and the service is successfully
deployed through the bundle. However when trying to view the wsdl I'm getting the following
exception, any ideas? Provider for class
cannot be created
        at org.apache.cxf.staxutils.StaxUtils.getXMLOutputFactory(
        at org.apache.cxf.staxutils.StaxUtils.createXMLStreamWriter(
        at org.apache.cxf.interceptor.StaxOutInterceptor.handleMessage(
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
        at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
        at org.apache.cxf.phase.PhaseInterceptorChain.doInterceptStartingAt(
        at org.apache.cxf.frontend.WSDLGetInterceptor.handleMessage(
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
        at org.apache.cxf.transport.servlet.ServletController.invoke(
        at org.apache.cxf.transport.servlet.ServletController.invoke(
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(
        at org.eclipse.jetty.servlet.ServletHolder.handle(
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(
        at org.eclipse.jetty.servlet.ServletHandler.doScope(
        at org.eclipse.jetty.server.session.SessionHandler.doScope(
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
        at org.eclipse.jetty.server.Server.handle(
        at org.eclipse.jetty.server.HttpChannel.handle(
        at org.eclipse.jetty.server.HttpConnection.onFillable(
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
Caused by: java.lang.RuntimeException: Provider for class
cannot be created
        ... 48 more
Caused by: java.util.ServiceConfigurationError: Provider
com.ctc.wstx.stax.WstxOutputFactory not found
        at java.util.ServiceLoader.access$300(
        at java.util.ServiceLoader$LazyIterator.nextService(
        at java.util.ServiceLoader$
        at java.util.ServiceLoader$
        at Method)
        ... 48 more

I've installed additionally the camel-stax feature but problem still exists. Looks to me like
a thread based class loading issue.
This email, including any attachments sent with it, is confidential and for the sole use of
the intended recipient(s). This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/received in error.

Any unauthorised use, alteration, disclosure, distribution or review of this email is strictly
prohibited. The information contained in this email, including any attachment sent with it,
may be subject to a statutory duty of confidentiality if it relates to health service matters.

If you are not the intended recipient(s), or if you have received this email in error, you
are asked to immediately notify the sender. You should also delete this email, and any copies,
from your computer system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy, distribute or take any action(s)
that relies on it; any form of disclosure, modification, distribution and/or publication of
this email is also prohibited.

Although the Queensland Ambulance Service takes all reasonable steps to ensure this email
does not contain malicious software, the Queensland Ambulance Service does not accept responsibility
for the consequences if any person's computer inadvertently suffers any disruption to services,
loss of information, harm or is infected with a virus, other malicious computer programme
or code that may occur as a consequence of receiving this email.

Unless stated otherwise, this email represents only the views of the sender and not the views
of the Queensland Government.


The content presented in this publication is distributed by the Queensland Government as an
information source only. The State of Queensland makes no statements, representations or warranties
about the accuracy, completeness or reliability of any information contained in this publication.
The State of Queensland disclaims all responsibility and all liability (including without
limitation for liability in negligence) for all expenses, losses, damages and costs you might
incur as a result of the information being inaccurate or incomplete in any way, and for any
reason reliance was placed on such information.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message