axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntha...@apache.org
Subject svn commit: r552957 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/ArtifactProcessor.java
Date Tue, 03 Jul 2007 19:27:23 GMT
Author: nthaker
Date: Tue Jul  3 12:27:21 2007
New Revision: 552957

URL: http://svn.apache.org/viewvc?view=rev&rev=552957
Log:
Axis2-2896

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/ArtifactProcessor.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/ArtifactProcessor.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/ArtifactProcessor.java?view=diff&rev=552957&r1=552956&r2=552957
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/ArtifactProcessor.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/ArtifactProcessor.java
Tue Jul  3 12:27:21 2007
@@ -343,11 +343,21 @@
                     new PrivilegedExceptionAction() {
                         public Object run() throws ClassNotFoundException {
                             // Class.forName does not support primitives
-                            Class cls = ClassUtils.getPrimitiveClass(className);
-                            if (cls == null) {
-                                cls = Class.forName(className, initialize, classloader);
-                            }
-                            return cls;
+                        	Class cls = ClassUtils.getPrimitiveClass(className);
+                        	try{
+                        		if (cls == null) {
+                        			cls = Class.forName(className, initialize, classloader);
+                        		}
+                        		return cls;
+                        		//Lets catch NoClassDefFoundError as its part of Throwable
+                        		//Any Exception that extends Exception will be handled by doPriv
method.    
+                        	} catch (NoClassDefFoundError e) {
+                        		// TODO Should the exception be swallowed ?
+                        		if (log.isDebugEnabled()) {
+                        			log.debug("ArtifactProcessor cannot load the following class NoClassDefFoundError:"
+ className);
+                        		}
+                        	}
+                        	return cls;
                         }
                     }
             );



---------------------------------------------------------------------
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