Sure I fixed it - thanks for spotting it.
I believe you need to send ICLA to Apache and then, once it has been accepted, let Dan know your preferred user id, to have a write access

Sergey
On 26/08/16 07:36, J. Fiala wrote:
Hi,

So the attribtue to be used is value-ref instead of ref - this should be
corrected in the docs:
http://cxf.apache.org/docs/jaxrs-services-configuration.html

CURRENT:

|<||cxf:bus||>|
|||<||cxf:properties||>|
|||<||entry| |key||=||"javax.ws.rs.ext.ExceptionMapper"|
|ref||=||"exceptionMapper"||/>|
|||</||cxf:properties||>|
|||</||cxf:bus

CORRECTED:
|
||<||cxf:bus||>||
|||<||cxf:properties||>|
|||<||entry| |key||=||"javax.ws.rs.ext.ExceptionMapper"|
|value-ref||=||"exceptionMapper"||/>|
|||</||cxf:properties||>|
|||</||cxf:bus>

Is it possible to contribute to the docs using a PR?

best regards,
Johannes
|
|

|
Am 25.08.2016 um 23:14 schrieb Sergey Beryozkin:
Hi

See
https://github.com/apache/cxf/blob/master/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/oauth2/filters/filters-serverJwt.xml#L36


Sergey
On 25/08/16 18:23, J. Fiala wrote:
Hi,

I tried to use an exceptionMapper in the cxf:bus
(http://cxf.apache.org/docs/jaxrs-services-configuration.html):

CXF-version 3.1.6

|<||cxf:bus||>|

|||<||cxf:properties||>|
|||<||entry| |key||=||"javax.ws.rs.ext.ExceptionMapper"|
|ref||=||"exceptionMapper"||/>|
|||</||cxf:properties||>|
|||</||cxf:bus|

However, during startup, I get the following error:

Caused by: org.xml.sax.SAXParseException; lineNumber: 78; columnNumber:
81; cvc-complex-type.3.2.2: Attribute 'ref' is not allowed to appear in
element 'entry'.

        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)


        at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)


        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)


        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)


        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)


        at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:446)


        at
org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3271)


        at
org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2756)


        at
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2136)


        at
org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:744)


        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:275)


        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentS


cannerImpl.java:1653)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)


        at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)


        at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)


        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)


        at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)

[spri
ng-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429


) [spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j


ava:391) [spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
        ... 46 more

Any ideas what could be wrong here?

Best regards,
Johannes








--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to