geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r664055 - /geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSToolsCLI.java
Date Fri, 06 Jun 2008 17:42:59 GMT
Author: linsun
Date: Fri Jun  6 10:42:59 2008
New Revision: 664055

URL: http://svn.apache.org/viewvc?rev=664055&view=rev
Log:
G4100 - Allow users to use jaxws-tools.bat/sh when SUN SAAJ impl is not provided in the assembly

Modified:
    geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSToolsCLI.java

Modified: geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSToolsCLI.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSToolsCLI.java?rev=664055&r1=664054&r2=664055&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSToolsCLI.java
(original)
+++ geronimo/server/trunk/plugins/jaxws/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSToolsCLI.java
Fri Jun  6 10:42:59 2008
@@ -72,7 +72,15 @@
         tools.setUseSunSAAJ();
         tools.setOverrideContextClassLoader(true);
         
-        File [] jars = tools.getClasspath(repositories);            
+        File [] jars;
+        try {
+            jars = tools.getClasspath(repositories);
+        } catch (Exception e) {
+            //if we cannot find SUN's SAAJ impl, try Axis2's. 
+            tools.setUseAxis2SAAJ();
+            jars = tools.getClasspath(repositories);
+        }
+                 
         URL[] jarUrls = JAXWSTools.toURL(jars);
                 
         String javaClassPath = System.getProperty("java.class.path");



Mime
View raw message