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 "Haneef Ali (JIRA)" <ji...@apache.org> on 2007/07/19 21:32:06 UTC

[jira] Created: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

WSDL port address is not correctly generated for machines having multiple network interfaces
--------------------------------------------------------------------------------------------

                 Key: AXIS2-2990
                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.2
         Environment: Windows
            Reporter: Haneef Ali


WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.

This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Haneef Ali (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515038 ] 

Haneef Ali commented on AXIS2-2990:
-----------------------------------

Though I haven't tested this, not sure how this will work. Consider the following scenario.

1) Weblogic with two servers running in host1 and host2.
2) If i have MyWebapp.war , single war can be deployed in both host1 and host2
3)  axis.war is now deployed in both host1 and host2. Hostname is part of axis.xml. Do you want me to hardcode the hostname. If it is hardcoded, then it breaks the concept of deploying single war in many servers.

Haneef



> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Dietmar Gaertner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594556#action_12594556 ] 

Dietmar Gaertner commented on AXIS2-2990:
-----------------------------------------

This issue is not resolved in Axis2 1.4. I have th eoriginal Axis2 1.4 axis2.war deployed in a vanilla Tomcat 6.
http://localhost:8080/axis2/services/Version?wsdl as well as http://myhost:8080/axis2/services/Version?wsdl
return:
...
<wsdl:service name="Version">
	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
<soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
</wsdl:port>
	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
<soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
</wsdl:port>
	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
<http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
</wsdl:port>
</wsdl:service>
...
Regards, Dietmar


> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Reopened: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reopened AXIS2-2990:
--------------------------------------


> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514861 ] 

Deepal Jayasinghe commented on AXIS2-2990:
------------------------------------------

Try to use hostname parameter , then you will be able to generate the wsdl with the corrcte host name , then no need to wory abt the IP addresses

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nandana Mihindukulasooriya resolved AXIS2-2990.
-----------------------------------------------

    Resolution: Duplicate

http://svn.apache.org/viewvc?view=rev&revision=686828

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>            Assignee: Sanka Samaranayake
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515042 ] 

Davanum Srinivas commented on AXIS2-2990:
-----------------------------------------

Haneef, 

Please Use Axis2 1.3 RC2, don't use hostname, the correct name is picked up from the http header "host1" or "host2"

thanks,
dims

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-2990:
-------------------------------------

    Assignee: Sanka Samaranayake

Hi Sanka,
Seems like this is a problem arise due to your recent changes  , so please have a look at and see whether you have a quick fix.

Thank you!
Deepal

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>            Assignee: Sanka Samaranayake
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-2990.
--------------------------------------

    Resolution: Fixed

seems like issues is fixed.

Thanks
Deepal

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2990) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Keith Godwin Chapman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594757#action_12594757 ] 

Keith Godwin Chapman commented on AXIS2-2990:
---------------------------------------------

No This was not introduces after Sankas change. I've had problems when running axis2 on machines with VMWare too (even before sankas change)

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Windows
>            Reporter: Haneef Ali
>            Assignee: Sanka Samaranayake
>
> WSDL portAddress is filled with machines IP address. The code to get the IP address org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() always takes the first available network interfaces ip address.
> This may not work in machine which has vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.  I believe that Correct way to do that it, is to  use the hostName and resolve it to ipAddress.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org