cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r888597 - in /cxf/branches/2.2.x-fixes: ./ rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Date Tue, 08 Dec 2009 22:16:57 GMT
Author: dkulp
Date: Tue Dec  8 22:16:57 2009
New Revision: 888597

URL: http://svn.apache.org/viewvc?rev=888597&view=rev
Log:
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.2.x-fixes/   (props changed)
    cxf/branches/2.2.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java

Propchange: cxf/branches/2.2.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.2.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java?rev=888597&r1=888596&r2=888597&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
(original)
+++ cxf/branches/2.2.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Tue Dec  8 22:16:57 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