Author: klape
Date: 2014-05-09 17:52:14 -0400 (Fri, 09 May 2014)
New Revision: 18630
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
Log:
[JBPAPP-11149] Try using ws impl's CL to load param types
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2014-05-09
08:56:49 UTC (rev 18629)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2014-05-09
21:52:14 UTC (rev 18630)
@@ -400,7 +400,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;
}
}
Show replies by date