You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2013/08/08 21:11:48 UTC
svn commit: r1511960 -
/cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java
Author: dkulp
Date: Thu Aug 8 19:11:48 2013
New Revision: 1511960
URL: http://svn.apache.org/r1511960
Log:
Merged revisions 1511294 via git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk
........
r1511294 | dkulp | 2013-08-07 09:05:15 -0400 (Wed, 07 Aug 2013) | 2 lines
Also catch the NoClassDefFound error
........
Modified:
cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java
Modified: cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java?rev=1511960&r1=1511959&r2=1511960&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java (original)
+++ cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/osgi/CXFExtensionBundleListener.java Thu Aug 8 19:11:48 2013
@@ -126,9 +126,11 @@ public class CXFExtensionBundleListener
protected Class<?> tryClass(String name, ClassLoader cl) {
Class<?> c = null;
- ClassNotFoundException origExc = null;
+ Throwable origExc = null;
try {
c = bundle.loadClass(className);
+ } catch (NoClassDefFoundError e) {
+ origExc = e;
} catch (ClassNotFoundException e) {
origExc = e;
}