Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Axis ConfigurationException

Tags:

java

apache

axis

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?

like image 309
Craig H Avatar asked Sep 15 '08 18:09

Craig H


2 Answers

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
like image 182
kldavis4 Avatar answered Sep 18 '22 10:09

kldavis4


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 new ConfigurationException("No service named" + serviceName + " is available");
like image 45
KC Baltz Avatar answered Sep 20 '22 10:09

KC Baltz