From commits-return-10540-apmail-cxf-commits-archive=cxf.apache.org@cxf.apache.org Tue Dec 08 22:17:21 2009 Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 40346 invoked from network); 8 Dec 2009 22:17:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 22:17:20 -0000 Received: (qmail 92190 invoked by uid 500); 8 Dec 2009 22:17:20 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 92099 invoked by uid 500); 8 Dec 2009 22:17:20 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 92086 invoked by uid 99); 8 Dec 2009 22:17:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 22:17:20 +0000 X-ASF-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 22:17:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DCA4223889BB; Tue, 8 Dec 2009 22:16:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091208221657.DCA4223889BB@eris.apache.org> 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) {