Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 61521 invoked from network); 7 Apr 2011 21:39:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2011 21:39:51 -0000 Received: (qmail 35337 invoked by uid 500); 7 Apr 2011 21:39:51 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 35289 invoked by uid 500); 7 Apr 2011 21:39:51 -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 35282 invoked by uid 99); 7 Apr 2011 21:39:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 21:39:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED 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; Thu, 07 Apr 2011 21:39:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F046B23889E2; Thu, 7 Apr 2011 21:39:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1090033 - /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/service.vm Date: Thu, 07 Apr 2011 21:39:29 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110407213929.F046B23889E2@eris.apache.org> Author: dkulp Date: Thu Apr 7 21:39:29 2011 New Revision: 1090033 URL: http://svn.apache.org/viewvc?rev=1090033&view=rev Log: [CXF-3265] Change to using fully qualified j.u.l Logger to log issue about unresolvable wsdl URL which should allow the user to at least direct it someplace other than System.err Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/service.vm Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/service.vm URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/service.vm?rev=1090033&r1=1090032&r2=1090033&view=diff ============================================================================== --- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/service.vm (original) +++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/service.vm Thu Apr 7 21:39:29 2011 @@ -76,17 +76,20 @@ public class ${service.Name} extends ${s public final static QName $port.Name = new QName("$service.Namespace", "$port.PortName"); #end static { -#if ($wsdlLocation != "") +#if ($wsdlLocation == "") + WSDL_LOCATION = null; +#elseif ($wsdlLocation == "null") + WSDL_LOCATION = null; +#else URL url = null; try { url = new URL("$wsdlLocation"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from $wsdlLocation"); - // e.printStackTrace(); + java.util.logging.Logger.getLogger(${service.Name}.class.getName()) + .log(java.util.logging.Level.INFO, + "Can not initialize the default wsdl from {0}", "$wsdlLocation"); } WSDL_LOCATION = url; -#else - WSDL_LOCATION = null; #end }