首页 > 其他 > 详细

Axis和Log4j一起使用时,出现异常org.apache.axis.ConfigurationException

时间:2014-05-09 12:43:15      阅读:719      评论:0      收藏:0      [点我收藏+]
调用成功,但是出现异常出现异常:org.apache.axis.ConfigurationException: No service named  is available org.apache.axis.ConfigurationException: No service named  is available
 
 
Just a guess, but it looks like that error message is reporting that you‘ve left the service name blank. I imagine the code that generates that error message looks like this: 

throw
newConfigurationException("No service named"+ serviceName +" is available");
 
According to the documentation linked to by @arnonym, this exception is somewhat misleading. In the first attempt to find the service a ConfigurationException is thrown and caught. It is logged at DEBUG level by the ConfigurationException class. Then another attempt is made using a different method to find the service that may then succeed. The workaround for this is to just change the log level on the ConfigurationException class to INFO in your log4j.properties:
 
log4j.logger.org.apache.axis.ConfigurationException= INFO
 
我采用的第二种方法,加上之后没有再打印异常信息了。
 

Axis和Log4j一起使用时,出现异常org.apache.axis.ConfigurationException,布布扣,bubuko.com

Axis和Log4j一起使用时,出现异常org.apache.axis.ConfigurationException

原文:http://www.cnblogs.com/skyeyh/p/3708854.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!