You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/04/05 23:23:05 UTC
svn commit: r525963 -
/webservices/axis2/branches/java/1_2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
Author: dims
Date: Thu Apr 5 14:23:04 2007
New Revision: 525963
URL: http://svn.apache.org/viewvc?view=rev&rev=525963
Log:
Fix for AXIS2-2232 - Class.forName does not use AxisService class loader
Modified:
webservices/axis2/branches/java/1_2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
Modified: webservices/axis2/branches/java/1_2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java?view=diff&rev=525963&r1=525962&r2=525963
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java (original)
+++ webservices/axis2/branches/java/1_2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java Thu Apr 5 14:23:04 2007
@@ -483,9 +483,18 @@
// does not extend Exception, so lets catch everything that extends Throwable
// rather than just Exception.
} catch (Throwable e) {
- // TODO: Throwing wrong exception
- e.printStackTrace();
- throw new UnsupportedOperationException("Can't create SEI class: " + e);
+ // FIXME: We should be trying the AxisService Class loader first and then fall back
+ // Am doing it the other way round for now.
+ try {
+ seiClass = forName(seiClassName, false,
+ axisService.getClassLoader());
+ } catch (Throwable ex) {
+ log.debug(e);
+ }
+ if(seiClass == null){
+ log.debug(e);
+ throw new UnsupportedOperationException("Can't create SEI class: " + e);
+ }
}
}
endpointInterfaceDescription = new EndpointInterfaceDescriptionImpl(seiClass, this);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org