Author: barrettj
Date: Thu Aug 19 19:59:44 2010
New Revision: 987287

URL: http://svn.apache.org/viewvc?rev=987287&view=rev
Log:
Cleanup a couple log.warn messages and add related log.debug to log exception 
with stack traceback

Modified:
    
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
    
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
    
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
    
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties

Modified: 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?rev=987287&r1=987286&r2=987287&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
 Thu Aug 19 19:59:44 2010
@@ -393,12 +393,12 @@ public class WSDL11ToAxisServiceBuilder 
 
         } catch (WSDLException e) {
             if(log.isDebugEnabled()){
-                log.error(e.getMessage(), e);
+                log.debug(e.getMessage(), e);
             }
             throw AxisFault.makeFault(e);
         } catch (Exception e) {
             if(log.isDebugEnabled()){
-                log.error(e.getMessage(), e);
+                log.debug(e.getMessage(), e);
             }
             throw AxisFault.makeFault(e);
         }

Modified: 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java?rev=987287&r1=987286&r2=987287&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
 Thu Aug 19 19:59:44 2010
@@ -451,9 +451,7 @@ public class EndpointDescriptionImpl
 
         } else if (composite.getWsdlDefinition() == null) {
             //This is a SOAP12 binding that does not contain a WSDL 
definition, log a WARNING
-            log.warn("This implementation does not contain a WSDL definition 
and is not a SOAP 1.1 based binding. "
-                    + "Per JAXWS spec. - a WSDL definition cannot be generated 
for this implementation. Name: "
-                    + composite.getClassName());
+            log.warn(Messages.getMessage("generateWSDLNonSoap11", 
composite.getClassName()));
         }
 
         if (isSOAP11){
@@ -1006,7 +1004,10 @@ public class EndpointDescriptionImpl
             String wsdlLocation = 
(getServiceDescriptionImpl().getWSDLLocation() != null) ?
                     getServiceDescriptionImpl().getWSDLLocation().toString() : 
null;
             String implClassName = composite.getClassName();
-            
log.warn(Messages.getMessage("bldAxisSrvcFromWSDLErr",implClassName,wsdlLocation),e);
+            log.warn(Messages.getMessage("bldAxisSrvcFromWSDLErr", 
implClassName, wsdlLocation, e.getMessage()));
+            if (log.isDebugEnabled()) {
+                log.debug("Exception processing WSDL file.  Impl class: " + 
implClassName + "; WSDL Location: "+ wsdlLocation, e);
+            }
 
             isBuiltFromWSDL = false;
         }

Modified: 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java?rev=987287&r1=987286&r2=987287&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
 Thu Aug 19 19:59:44 2010
@@ -2353,7 +2353,10 @@ class OperationDescriptionImpl
             try {
                 theAxisOperation.addParameter(headerQNParameter);
             } catch (AxisFault e) {
-                
log.warn(Messages.getMessage("regMUHeadersErr",theAxisOperation.getClass().getName()),
 e);
+                log.warn(Messages.getMessage("regMUHeadersErr", 
theAxisOperation.getClass().getName(), e.getMessage()));
+                if (log.isDebugEnabled()) {
+                    log.debug("Unable to add Parameter for header QNames to 
AxisOperation: " + theAxisOperation.getClass().getName(), e);
+                }
             }
         }
     }

Modified: 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties?rev=987287&r1=987286&r2=987287&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
 (original)
+++ 
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
 Thu Aug 19 19:59:44 2010
@@ -212,7 +212,7 @@ updateWithSEIErr2=EndpointDescription.up
 setupAxisServiceErr1=Unable to create AxisService for {0}
 setupAxisServiceErr2=Exception when adding service parameters.
 setupAxisServiceErr3=Exception when generating WSDL to create AxisService
-bldAxisSrvcFromWSDLErr=The WSDL file could not be used due to an exception.  
The WSDL will be ignored and annotations will be used.  Implementation class: 
{0}; WSDL Location: {1}
+bldAxisSrvcFromWSDLErr=The WSDL file could not be used due to an exception.  
The WSDL will be ignored and annotations will be used.  Implementation class: 
{0}; WSDL Location: {1}; Exception Message: {2}
 serviceDescErr3=WSDL Port not found for port {0}
 generateWSDLErr=EndpointDescriptionImpl: WSDLException thrown when attempting 
to instantiate WSDL4JWrapper
 handlerChainsTypeErr=EndpointDescriptionImpl.getHandlerChain: fileName: {0}; 
className: {1}
@@ -225,7 +225,7 @@ createAxisOprErr1=Could not setup Doc/Li
 createAxisOprErr2=Could not setup Doc/Lit/Bare operation because part 
namespace is empty.
 createAxisOprErr3=Could not setup Doc/Lit/Bare operation because name is empty.
 seiMethodErr=Can not set an SEI method once it has been set.
-regMUHeadersErr=Unable to add Parameter for header QNames to AxisOperation {0}
+regMUHeadersErr=Unable to add Parameter for header QNames to AxisOperation {0} 
due to AxisFault {1}
 genParamTypesErr=OperationDescriptionImpl.getParameterActualGenericType not 
supported for DBC.
 updateEPDescrErr1=ServiceDescription.updateEndpointDescription: Cannot do a 
getPort on a port added via addPort().  PortQN: {0}
 updateEPDescrErr2=ServiceDescription.updateEndpointDescription: Cannot do a 
getPort with a null SEI.  PortQN: {0}
@@ -353,4 +353,5 @@ axisEndpointReferenceFactoryErr=Cannot c
 axisEndpointReferenceFactoryErr2=Cannot create an endpoint reference because 
the address, service name, and/or port name are null.
 dispatchInvalidTypeWithMode=Unsupported Dispatch Type: Dispatch type 
javax.xml.soap.SOAPMessage cannot be used with messages in Payload mode.
 serviceDelegateConstruct2=An attempt was made to construct the ServiceDelegate 
object with the {0} service and with WebServicesFeatures, but there are no 
standard features defined for service creation in the current specification.
-MethodRetrieverWarning1=Public method {0} will be exposed as a Web Service 
operation per JAX-WS 2.2 tooling rules. If you intend to expose only operations 
that have @WebMethod annotation, set the manifest property 'LegacyWebmethod: 
true' or set a JVM property 'jaxws.runtime.legacyWebMethod=true'. 
\ No newline at end of file
+MethodRetrieverWarning1=Public method {0} will be exposed as a Web Service 
operation per JAX-WS 2.2 tooling rules. If you intend to expose only operations 
that have @WebMethod annotation, set the manifest property 'LegacyWebmethod: 
true' or set a JVM property 'jaxws.runtime.legacyWebMethod=true'. 
+generateWSDLNonSoap11=This implementation does not contain a WSDL definition 
and is not a SOAP 1.1 based binding. Per the JAXWS specification, a WSDL 
definition cannot be generated for this implementation.  The implementation 
class name is {0} 
\ No newline at end of file


Reply via email to