summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/binding-sca-axis2-runtime/src/main/java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-10-13 10:07:27 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-10-13 10:07:27 +0000
commit13df2ee346208d6bbc30389f7261995826061117 (patch)
tree8c3bfcab4162c5f2f6ccd28e423189b21b261c82 /java/sca/modules/binding-sca-axis2-runtime/src/main/java
parenta651c79584465c4f0dc7cd5181a73dd0826e37e6 (diff)
Change to use the IP address instead of the host name so it works for unknown host names
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@824658 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-sca-axis2-runtime/src/main/java')
-rw-r--r--java/sca/modules/binding-sca-axis2-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAServiceBindingProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/sca/modules/binding-sca-axis2-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAServiceBindingProvider.java b/java/sca/modules/binding-sca-axis2-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAServiceBindingProvider.java
index 673b9a15b4..b6b98b6b5f 100644
--- a/java/sca/modules/binding-sca-axis2-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAServiceBindingProvider.java
+++ b/java/sca/modules/binding-sca-axis2-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAServiceBindingProvider.java
@@ -86,9 +86,10 @@ public class Axis2SCAServiceBindingProvider implements ServiceBindingProvider {
int port = 8085;
String host;
try {
- host = InetAddress.getLocalHost().getHostName();
+ host = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException e) {
host = "localhost";
+ logger.warning("unable to determine host address, using localhost");
}
ServerSocket socket;
try {