Author: dkulp Date: Wed Dec 9 02:27:45 2009 New Revision: 888679 URL: http://svn.apache.org/viewvc?rev=888679&view=rev Log: Merged revisions 888597 via svnmerge from https://svn.apache.org/repos/asf/cxf/branches/2.2.x-fixes
................ r888597 | dkulp | 2009-12-08 17:16:57 -0500 (Tue, 08 Dec 2009) | 10 lines Merged revisions 888568 via svnmerge from https://svn.apache.org/repos/asf/cxf/trunk ........ r888568 | dkulp | 2009-12-08 16:00:38 -0500 (Tue, 08 Dec 2009) | 2 lines [CXF-2549] Get DynamicClient to work in Weblogic Patch from Dennis Kieselhorst applied. Thanks! ........ ................ Modified: cxf/branches/2.1.x-fixes/ (props changed) cxf/branches/2.1.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java Propchange: cxf/branches/2.1.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.1.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java?rev=888679&r1=888678&r2=888679&view=diff ============================================================================== --- cxf/branches/2.1.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java (original) +++ cxf/branches/2.1.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java Wed Dec 9 02:27:45 2009 @@ -22,6 +22,7 @@ import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; +import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; @@ -590,6 +591,16 @@ } } } + } else if (tcl.getClass().getName().contains("weblogic")) { + // CXF-2549: Wrong classpath for dynamic client compilation in Weblogic + try { + Method method = tcl.getClass().getMethod("getClassPath"); + Object weblogicClassPath = method.invoke(tcl); + classPath.append(weblogicClassPath) + .append(System.getProperty("path.separator")); + } catch (Exception e) { + LOG.log(Level.FINE, "unsuccessfully tried getClassPath method", e); + } } tcl = tcl.getParent(); if (null == tcl) {
