You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2007/06/26 02:02:20 UTC
svn commit: r550638 -
/webservices/axis2/trunk/java/modules/soapmonitor/src/org/apache/axis2/soapmonitor/servlet/SOAPMonitorService.java
Author: robertlazarski
Date: Mon Jun 25 17:02:18 2007
New Revision: 550638
URL: http://svn.apache.org/viewvc?view=rev&rev=550638
Log:
Adding ServletContext.log() for those without logging configured
Modified:
webservices/axis2/trunk/java/modules/soapmonitor/src/org/apache/axis2/soapmonitor/servlet/SOAPMonitorService.java
Modified: webservices/axis2/trunk/java/modules/soapmonitor/src/org/apache/axis2/soapmonitor/servlet/SOAPMonitorService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/soapmonitor/src/org/apache/axis2/soapmonitor/servlet/SOAPMonitorService.java?view=diff&rev=550638&r1=550637&r2=550638
==============================================================================
--- webservices/axis2/trunk/java/modules/soapmonitor/src/org/apache/axis2/soapmonitor/servlet/SOAPMonitorService.java (original)
+++ webservices/axis2/trunk/java/modules/soapmonitor/src/org/apache/axis2/soapmonitor/servlet/SOAPMonitorService.java Mon Jun 25 17:02:18 2007
@@ -102,9 +102,9 @@
ServletConfig config = super.getServletConfig();
String port = config.getInitParameter(SOAPMonitorConstants.SOAP_MONITOR_PORT);
if (port == null) {
- // No port defined, so let the system assign a port
+ log.error("SOAPMonitorService can't find ServletConfig init parameter 'port'");
port = "0";
- }
+ }
try {
// Try to open the server socket
server_socket = new ServerSocket(Integer.parseInt(port));
@@ -112,6 +112,8 @@
// Let someone know we could not open the socket
log.error("Unable to open server socket using port: " + port);
log.error(ex.getMessage(), ex);
+ // Fail as loudly as possible for those without logging configured
+ config.getServletContext().log("Unable to open server socket using port "+port+":", ex);
server_socket = null;
}
if (server_socket != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org