Author: ffang
Date: Wed May 11 02:14:59 2011
New Revision: 1101727
URL: http://svn.apache.org/viewvc?rev=1101727&view=rev
Log:
[CXF-3503]revert set TCCL on AbstractInvoker
Modified:
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
Modified:
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java?rev=1101727&r1=1101726&r2=1101727&view=diff
==============================================================================
---
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
(original)
+++
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
Wed May 11 02:14:59 2011
@@ -80,9 +80,7 @@ public abstract class AbstractInvoker im
protected Object invoke(Exchange exchange, final Object serviceObject,
Method m, List<Object> params) {
Object res;
- ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
try {
-
Thread.currentThread().setContextClassLoader(serviceObject.getClass().getClassLoader());
Object[] paramArray = new Object[]{};
if (params != null) {
paramArray = params.toArray();
@@ -133,9 +131,7 @@ public abstract class AbstractInvoker im
checkSuspendedInvocation(exchange, serviceObject, m, params, e);
exchange.getInMessage().put(FaultMode.class,
FaultMode.UNCHECKED_APPLICATION_FAULT);
throw createFault(e, m, params, false);
- } finally {
- Thread.currentThread().setContextClassLoader(oldCL);
- }
+ }
}
protected void checkSuspendedInvocation(Exchange exchange,