0 0

org.apache.axis.ConfigurationException: No service named is available5

根据wsdl文件自动生成axis客户端,在使用上完成正常,能正确发送请求并取得结果;但是每次都报
"2010-09-03 16:24:48 DEBUG (org.apache.axis.ConfigurationException.logException(ConfigurationException.java:110)) -> Exception:
org.apache.axis.ConfigurationException: No service named recharge.server is available
org.apache.axis.ConfigurationException: No service named recharge.server is available
at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
at org.apache.axis.client.Call.invoke(Call.java:2708)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)".

是什么原因呢?
2010年9月06日 10:23

1个答案 按时间排序 按投票排序

0 0

有个办法可治标不治本,解决该问题的办法是,将这个异常的日志级别提高到INFO,在自己的LOG4J配置文件中添加如下配置:log4j.xml
<logger name="org.apache.axis.ConfigurationException">
<level value="INFO" />
</logger>

log4j.properties
log4j.logger.org.apache.axis.ConfigurationException = INFO

2012年9月04日 12:18

相关推荐

Global site tag (gtag.js) - Google Analytics