Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 22566 invoked from network); 14 May 2006 03:08:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 May 2006 03:08:53 -0000 Received: (qmail 49448 invoked by uid 500); 14 May 2006 03:08:43 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 49382 invoked by uid 500); 14 May 2006 03:08:43 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 49344 invoked by uid 99); 14 May 2006 03:08:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 May 2006 20:08:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 May 2006 20:08:42 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7CDFA71429E for ; Sun, 14 May 2006 03:08:18 +0000 (GMT) Message-ID: <3164772.1147576098505.JavaMail.jira@brutus> Date: Sun, 14 May 2006 03:08:18 +0000 (GMT+00:00) From: "Sanjiva Weerawarana (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-725) "Address already in use: JVM_Bind" exception while creating second SimpleHTTPServer instance In-Reply-To: <26551250.1147467848456.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-725?page=comments#action_12394627 ] Sanjiva Weerawarana commented on AXIS2-725: ------------------------------------------- You're absolutely right Jaliya .. and we have the capability thru ListenerManager (thru a static config context approach; that's how we solve the problem for the servlet case). It may be that we're not setting that for the SimpleAxisServer; so this is a bug which should not require a workaround. I mistakenly read the original issue as the user wanted to start two servers for some reason; my bad. In any case though, the code must loop thru to find an available port; its certainly possible port 6060 is taken by someone else. > "Address already in use: JVM_Bind" exception while creating second SimpleHTTPServer instance > -------------------------------------------------------------------------------------------- > > Key: AXIS2-725 > URL: http://issues.apache.org/jira/browse/AXIS2-725 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Versions: 1.0 > Environment: Win2K Pro and WinXP Pro, JDK 1.4, Tomcat 5.5 > Reporter: Ali Sadik Kumlali > > When I run two EchoNonBlockingDualClient sample at the same time, first one successfully starts SimpleHTTPServer on port 6060 and the second one gets an java.net.BindException: Address already in use: JVM_Bind" while trying to start the server. > Doesn't I have an option to listen all the responses for its dedicated port? For example 6060 for the first instance, 6061 for the second one, and so on. Or, should i assume Axis2 to use the same port for the responses of all the long running transactions? > Anyway, in either case, it should not throw such exception. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira