Hi guys,
when I'm running this example without any changes from the scratch:
https://github.com/apache/tomee/blob/tomee-project-9.1.0/examples/simple-webservice/src/test/java/org/superbiz/calculator/ws/CalculatorTest.java
The test case will be run through and the result will be passed.
Taking a deeper look inside the logs excpetions will be thrown :
Jul 20, 2023 2:10:48 PM
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://superbiz.org/wsdl}CalculatorService from WSDL:
http://localhost:46763/simple-webservice/Calculator?wsdl
Jul 20, 2023 2:10:48 PM
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://superbiz.org/wsdl}CalculatorService from WSDL:
http://localhost:46763/simple-webservice/Calculator?wsdl
Jul 20, 2023 2:10:48 PM org.apache.cxf.common.jaxb.JAXBUtils setEscapeHandler
INFO: Failed to set MinumEscapeHandler to jaxb marshaller
jakarta.xml.bind.PropertyException: name:
com.sun.xml.bind.characterEscapeHandler value: null
at
jakarta.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:343)
at
org.glassfish.jaxb.runtime.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:499)
at
org.apache.cxf.common.jaxb.JAXBUtils.setEscapeHandler(JAXBUtils.java:1135)
at
org.apache.cxf.jaxb.io.DataWriterImpl.lambda$createMarshaller$0(DataWriterImpl.java:140)
at
org.apache.cxf.jaxb.JAXBDataBinding.applyEscapeHandler(JAXBDataBinding.java:277)
at
org.apache.cxf.jaxb.io.DataWriterImpl.createMarshaller(DataWriterImpl.java:140)
at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:239)
at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:118)
at
org.apache.cxf.wsdl.interceptors.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
[...]
The background of my question is that I see the excpetion in the catalina.out
in production too.
Can I avoid this logging?
Thanks,
Markus