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
}