Well, I was chasing the wrong area. Turns out that I had the wrong XML structure.
So, assuming that I programmatically build my routes, how do I register a custom JAX-RS provider in to a CXFRS endpoint? Thanks, John On Wed, Aug 28, 2013 at 4:26 PM, John D. Ament <[email protected]> wrote: > Hi > > I'm trying to register a provider in my CXFRS runtime. Here's the stack > trace: > > tion] onto handler '/deleteJob.action' > 2013-08-28 16:17:39,168 | ERROR | rint Extender: 2 | > BlueprintContainerImpl | 10 - org.apache.aries.blueprint - > 0.3.2 | Unable to start blueprint container for bundl > e qis-ws > org.osgi.service.blueprint.container.ComponentDefinitionException: > Unable to validate xml > at > org.apache.aries.blueprint.container.Parser.validate(Parser.java:288)[10:org.apache.aries.blueprint:0.3.2] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:281)[10:org.apache.aries.blueprint:0.3.2] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[10:org.apache.aries.blueprint:0.3.2] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_09] > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_09] > at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_09] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_09] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_09] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_09] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_09] > at java.lang.Thread.run(Thread.java:722)[:1.7.0_09] > Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The > matching wildcard is strict, but no declaration can be found for > element 'jaxrs:providers'. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source)[:] > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source)[:] > at > org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown > Source)[:] > at > org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown > Source)[:] > at > org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown > Source)[:] > at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown > Source)[:] > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown > Source)[:] > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown > Source)[:] > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown > Source)[:] > at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown > Source)[:] > at javax.xml.validation.Validator.validate(Validator.java:94)[:] > at > org.apache.aries.blueprint.container.Parser.validate(Parser.java:285)[10:org.apache.aries.blueprint:0.3.2] > > THis is what I added to my blueprint.xml > > xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs" > > .. // schema location > http://cxf.apache.org/blueprint/jaxrs > http://cxf.apache.org/schemas/blueprint/jaxrs.xsd > > <jaxrs:providers> > <bean class="org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider"/> > </jaxrs:providers> > > Any ideas? > > Thanks, > > John
