axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r554306 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Date Sun, 08 Jul 2007 02:57:45 GMT
Author: dims
Date: Sat Jul  7 19:57:44 2007
New Revision: 554306

URL: http://svn.apache.org/viewvc?view=rev&rev=554306
Log:
If the temp directory is not writable, we fail right now. add try catch to switch to alternate
mechanism

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?view=diff&rev=554306&r1=554305&r2=554306
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Sat Jul  7 19:57:44 2007
@@ -601,11 +601,15 @@
     public static ClassLoader createClassLoader(URL[] urls, ClassLoader serviceClassLoader,
                                                 boolean extractJars, File tmpDir) {
         if (extractJars) {
-            URL[] urls1 = Utils.getURLsForAllJars(urls[0], tmpDir);
-            return new DeploymentClassLoader(urls1, null, serviceClassLoader);
-        } else {
-            List embedded_jars = Utils.findLibJars(urls[0]);
-            return new DeploymentClassLoader(urls, embedded_jars, serviceClassLoader);
+            try {
+                URL[] urls1 = Utils.getURLsForAllJars(urls[0], tmpDir);
+                return new DeploymentClassLoader(urls1, null, serviceClassLoader);
+            } catch (Exception e){
+                log.warn("Exception extracting jars into temporary directory : " + e.getMessage()
+ " : switching to alternate class loading mechanism");
+                log.debug(e.getMessage(), e);
+            }
         }
+        List embedded_jars = Utils.findLibJars(urls[0]);
+        return new DeploymentClassLoader(urls, embedded_jars, serviceClassLoader);
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message