Author: isurues
Date: Sat May 21 14:08:53 2011
New Revision: 1125705
URL: http://svn.apache.org/viewvc?rev=1125705&view=rev
Log:
Fixing the incorrect Error message. JAX-WS service deployment can fail due to
many reasons. There can be situations where the service is annotated with
@WebService annotation, but something else has gone wrong. In such situations
existing error message is misleading. Fixed it with a generic error message.
Modified:
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
Modified:
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java?rev=1125705&r1=1125704&r2=1125705&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
(original)
+++
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
Sat May 21 14:08:53 2011
@@ -167,9 +167,9 @@ public class JAXWSDeployer extends Abstr
AxisServiceGroup serviceGroup = deployClasses(groupName,
location, classLoader, classList);
if(serviceGroup == null) {
- String msg = "Error:\n No @WebService annotated service
implementations found in the jar: " +
+ String msg = "Error while deploying JAX-WS jar: " +
location.toString() +
- ". Service deployment failed.";
+ ". JAX-WS Service deployment failed.";
log.error(msg);
axisConfig.getFaultyServices().
put(deploymentFileData.getFile().getAbsolutePath(), msg);