How to suppress "No method was found for the WSDL operation .... " warnings

Question

When configuring tESBConsumer to call one operation of a web service, the following warnings are logged for each of the other operations defined in the WSDL:

[WARN ]: org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean - No method was found for the WSDL operation .... 

How can I suppress these warning so that they are not logged?

 

Answer

 

From Studio

 

Go to File > Edit Project properties > Log4j, and add the following element:

<logger name="org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean"> 
   <level value="error"/> 
</logger>

 

From Runtime version 6.4.1

 

Add to org.ops4j.pax.logging.cfg the following two lines:

log4j2.logger.reflectionservicefactorybean.name = org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean 
log4j2.logger.reflectionservicefactorybean.level = ERROR

 

From Runtime version 6.3.x and older versions

 

Add to org.ops4j.pax.logging.cfg the following line:

log4j.logger.org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean=ERROR
Version history
Revision #:
5 of 5
Last update:
‎12-06-2017 04:49 PM
Updated by:
 
Labels (2)
Contributors