Author: thomas.diesler(a)jboss.com
Date: 2007-02-26 08:04:19 -0500 (Mon, 26 Feb 2007)
New Revision: 2468
Modified:
trunk/jbossws-core/src/main/java/javax/xml/ws/Service.java
Log:
Avoid CCE Service.create failure
Modified: trunk/jbossws-core/src/main/java/javax/xml/ws/Service.java
===================================================================
--- trunk/jbossws-core/src/main/java/javax/xml/ws/Service.java 2007-02-24 21:56:13 UTC
(rev 2467)
+++ trunk/jbossws-core/src/main/java/javax/xml/ws/Service.java 2007-02-26 13:04:19 UTC
(rev 2468)
@@ -722,13 +722,13 @@
try
{
Class extClass =
Class.forName("org.jboss.ws.core.jaxws.client.ServiceExt");
- Constructor ctor = extClass.getConstructor(new Class[]{URL.class,
QName.class});
- service = (Service)ctor.newInstance(new Object[]{wsdlLocation, serviceName});
+ Constructor ctor = extClass.getConstructor(new Class[] { URL.class, QName.class
});
+ service = (Service)ctor.newInstance(new Object[] { wsdlLocation, serviceName
});
}
catch (InvocationTargetException ex)
{
- RuntimeException rte = (RuntimeException)ex.getTargetException();
- throw rte;
+ Throwable target = ex.getTargetException();
+ throw new WebServiceException(target);
}
catch (Exception e)
{
Show replies by date