[jbossws-commits] JBossWS SVN: r2469 - branches/jbossws-1.2.0/jbossws-core/src/main/java/javax/xml/ws.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Feb 26 08:14:12 EST 2007


Author: thomas.diesler at jboss.com
Date: 2007-02-26 08:14:12 -0500 (Mon, 26 Feb 2007)
New Revision: 2469

Modified:
   branches/jbossws-1.2.0/jbossws-core/src/main/java/javax/xml/ws/Service.java
Log:
Avoid CCE Service.create failure

Modified: branches/jbossws-1.2.0/jbossws-core/src/main/java/javax/xml/ws/Service.java
===================================================================
--- branches/jbossws-1.2.0/jbossws-core/src/main/java/javax/xml/ws/Service.java	2007-02-26 13:04:19 UTC (rev 2468)
+++ branches/jbossws-1.2.0/jbossws-core/src/main/java/javax/xml/ws/Service.java	2007-02-26 13:14:12 UTC (rev 2469)
@@ -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)
       {




More information about the jbossws-commits mailing list