cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r888568 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Date Tue, 08 Dec 2009 21:00:38 GMT
Author: dkulp
Date: Tue Dec  8 21:00:38 2009
New Revision: 888568

URL: http://svn.apache.org/viewvc?rev=888568&view=rev
Log:
[CXF-2549] Get DynamicClient to work in Weblogic
Patch from Dennis Kieselhorst  applied.  Thanks!

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java?rev=888568&r1=888567&r2=888568&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Tue Dec  8 21:00:38 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) {



Mime
View raw message