Author: klape
Date: 2014-05-09 20:59:38 -0400 (Fri, 09 May 2014)
New Revision: 18632
Modified:
stack/native/branches/jbossws-native-3.1.2.SP11_JBPAPP-11150/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
Log:
[JBPAPP-11150] Checking endpoint impl CL for loading param types
Modified:
stack/native/branches/jbossws-native-3.1.2.SP11_JBPAPP-11150/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2.SP11_JBPAPP-11150/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2014-05-10
00:58:33 UTC (rev 18631)
+++
stack/native/branches/jbossws-native-3.1.2.SP11_JBPAPP-11150/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2014-05-10
00:59:38 UTC (rev 18632)
@@ -385,7 +385,17 @@
if (JavaUtils.isPrimitive(paramType) == false)
{
String paramTypeName = paramType.getName();
- paramType = JavaUtils.loadJavaType(paramTypeName);
+ try
+ {
+ paramType = JavaUtils.loadJavaType(paramTypeName);
+ }
+ catch(Exception e)
+ {
+ if(log.isDebugEnabled())
+ log.debug("Failed to load param type from TCCL", e);
+ //Maybe the impl class is somehow using a different CL...
+ paramType = JavaUtils.loadJavaType(paramTypeName,
implClass.getClassLoader());
+ }
paramTypes[i] = paramType;
}
}