Apache Axis ConfigurationException

Craig H picture Craig H · Sep 15, 2008 · Viewed 28.4k times · Source

I am using Apache Axis to connect my Java app to a web server. I used wsdl2java to create the stubs for me, but when I try to use the stubs, I get the following exception:

org.apache.axis.ConfigurationException: No service named <web service name> is available

any idea?

Answer

kldavis4 picture kldavis4 · Jul 31, 2013

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