<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks Neven.<br>
    <br>
    <meta http-equiv="CONTENT-TYPE" content="text/html;
      charset=ISO-8859-1">
    <title></title>
    <meta name="GENERATOR" content="OpenOffice.org 3.4 (Unix)">
    <style>
                <!-- 
                BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Arial"; font-size:x-small }
                 -->
        </style>I just run standalone.sh to start as7, all the socket bindings
    are defaults.<br>
    <br>
    JBoss Admin Command-line Interface<br>
    JBOSS_HOME: /Users/cfang/711<br>
    JBoss AS release: 7.1.1.Final "Brontes"<br>
    JAVA_HOME:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home<br>
    java.version: 1.6.0_35<br>
    java.vm.vendor: Apple Inc.<br>
    java.vm.version: 20.10-b01-428<br>
    os.name: Mac OS X<br>
    os.version: 10.8.1<br>
    <br>
    What's interesting is, it seems random which appserver has the port
    8080 when both are running.&nbsp; My firefox displays as7 welcome page on
    localhost:8080, while safari shows GlassFish welcome page.<br>
    <br>
    I would expect some binding errors but I couldn't see any.&nbsp; I tried
    on both 7.1.1 and 7.2 alpha1 with the same behavior.<br>
    <br>
    Cheng<br>
    <br>
    <div class="moz-cite-prefix">On 9/11/12 11:22 AM, Neven Cvetkovic
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHjMPQxb7EpfNyFt8WnRJa+7h-amQ76gsSNq_zsF0eqV9Keovw@mail.gmail.com"
      type="cite">Hey Chang,
      <div><br>
      </div>
      <div>That's very strange. How are you starting your JBoss AS7?
        What does it say for http connector? What port is it bound to?
        What IP does it bind to?</div>
      <div><br>
      </div>
      <div>Anyhow, you should see something like this in the log
        files/console - if the port is already bound by some other
        process (on that IP, e.g. 127.0.0.1):</div>
      <div><br>
      </div>
      <div>
        <div><font face="courier new, monospace">11:15:31,595 ERROR
            [org.apache.coyote.http11.Http11Protocol] (MSC service
            thread 1-10) Error initializing endpoint:<font
              color="#ff0000"> java.net.BindException: Address already
              in use /<a moz-do-not-send="true"
                href="http://127.0.0.1:8080">127.0.0.1:8080</a></font></font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:983)
            [jbossweb-7.0.13.Final.jar:]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:190)
            [jbossweb-7.0.13.Final.jar:]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.apache.catalina.connector.Connector.init(Connector.java:983)
            [jbossweb-7.0.13.Final.jar:]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)
            [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
            [jboss-msc-1.0.2.GA.jar:<a moz-do-not-send="true"
              href="http://1.0.2.GA">1.0.2.GA</a>]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
            [jboss-msc-1.0.2.GA.jar:<a moz-do-not-send="true"
              href="http://1.0.2.GA">1.0.2.GA</a>]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            [classes.jar:1.6.0_33]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            [classes.jar:1.6.0_33]</font></div>
        <div>
          <font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]</font></div>
        <div><font face="courier new, monospace"><br>
          </font></div>
        <div><font face="courier new, monospace">11:15:31,820 ERROR
            [org.jboss.msc.service.fail] (MSC service thread 1-10)
            MSC00001: Failed to start service jboss.web.connector.http:
            org.jboss.msc.service.StartException in service
            jboss.web.connector.http: JBAS018007: Error starting web
            connector</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:271)</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
            [jboss-msc-1.0.2.GA.jar:<a moz-do-not-send="true"
              href="http://1.0.2.GA">1.0.2.GA</a>]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
            [jboss-msc-1.0.2.GA.jar:<a moz-do-not-send="true"
              href="http://1.0.2.GA">1.0.2.GA</a>]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            [classes.jar:1.6.0_33]</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            [classes.jar:1.6.0_33]</font></div>
        <div>
          <font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
            java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]</font></div>
        <div><font face="courier new, monospace">Caused by:
            LifecycleException: &nbsp;Protocol handler initialization failed:
            <font color="#ff0000">java.net.BindException: Address
              already in use /<a moz-do-not-send="true"
                href="http://127.0.0.1:8080">127.0.0.1:8080</a></font></font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
org.apache.catalina.connector.Connector.init(Connector.java:985)</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>at
org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)</font></div>
        <div><font face="courier new, monospace"><span
              class="Apple-tab-span" style="white-space:pre"> </span>...
            5 more</font></div>
        <div><font face="courier new, monospace">....</font></div>
        <div>
          <div><font face="courier new, monospace">11:15:33,950 INFO
              &nbsp;[org.jboss.as.controller] (Controller Boot Thread)
              JBAS014774: Service status report</font></div>
          <div><font face="courier new, monospace">JBAS014777: &nbsp;
              Services which failed to start: &nbsp; &nbsp; &nbsp;service
              jboss.web.connector.http:
              org.jboss.msc.service.StartException in service
              jboss.web.connector.http: JBAS018007: Error starting web
              connector</font></div>
        </div>
        <div><font face="courier new, monospace">...</font></div>
        <div>
          <div><font face="courier new, monospace">11:15:35,487 INFO &nbsp;[<a
                moz-do-not-send="true" href="http://org.jboss.as">org.jboss.as</a>]
              (MSC service thread 1-10) JBAS015951: Admin console
              listening on <a moz-do-not-send="true"
                href="http://127.0.0.1:9990">http://127.0.0.1:9990</a></font></div>
          <div><font face="courier new, monospace">11:15:35,487 ERROR [<a
                moz-do-not-send="true" href="http://org.jboss.as">org.jboss.as</a>]
              (MSC service thread 1-10) JBAS015875: JBoss AS 7.1.1.Final
              "Brontes" started (with errors) in 31877ms - Started 173
              of 251 services (<font color="#ff0000">1 services failed</font>
              or missing dependencies, 76 services are passive or
              on-demand)</font></div>
        </div>
        <div><font face="courier new, monospace">...</font></div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>If you don't have any errors, you should see something like
          this:</div>
        <div><font face="courier new, monospace">...</font></div>
        <div>
          <div><font face="courier new, monospace">11:18:55,607 INFO
              &nbsp;[org.apache.coyote.http11.Http11Protocol] (MSC service
              thread 1-13) Starting Coyote HTTP/1.1 on <font
                color="#006600">http--127.0.0.1-8080</font></font></div>
        </div>
        <div><font face="courier new, monospace">...</font></div>
        <div>
          <div><font face="courier new, monospace">11:18:56,356 INFO &nbsp;[<a
                moz-do-not-send="true" href="http://org.jboss.as">org.jboss.as</a>]
              (Controller Boot Thread) JBAS015951: Admin console
              listening on <a moz-do-not-send="true"
                href="http://127.0.0.1:9990">http://127.0.0.1:9990</a></font></div>
          <div><font face="courier new, monospace">11:18:56,357 INFO &nbsp;[<a
                moz-do-not-send="true" href="http://org.jboss.as">org.jboss.as</a>]
              (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final
              "Brontes" started in 4052ms - Started 133 of 208 services
              (74 services are passive or on-demand)</font></div>
        </div>
        <div><font face="courier new, monospace">...</font></div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Hope that helps.</div>
        <div><br>
        </div>
        <div>Cheers!</div>
        <div>Neven</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <br>
        <div class="gmail_quote">
          On Tue, Sep 11, 2012 at 11:12 AM, Cheng Fang <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:cfang@redhat.com"
              target="_blank">cfang@redhat.com</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            I don't see any either on console or server.log. &nbsp;The other
            servers are<br>
            Tomcat or GlassFish, both run on 8080 by default.<br>
            <span class="HOEnZb"><font color="#888888"><br>
                Cheng<br>
              </font></span>
            <div class="HOEnZb">
              <div class="h5"><br>
                On 9/11/12 10:49 AM, Brian Stansberry wrote:<br>
                &gt; There were no complaints in the logs?<br>
                &gt;<br>
                &gt; On 9/11/12 9:37 AM, Cheng Fang wrote:<br>
                &gt;&gt; I already have other servers running on port
                8080, and then forgetfully<br>
                &gt;&gt; starting AS7 standalone server, and it started
                successfully without any<br>
                &gt;&gt; complaints. &nbsp;The main root page localhost:8080
                stills displays the<br>
                &gt;&gt; content from the other server, but
                localhost:9990 does display as7<br>
                &gt;&gt; management console.<br>
                &gt;&gt;<br>
                &gt;&gt; Is there a port conflict detection, or is it
                designed this way? &nbsp;I think<br>
                &gt;&gt; it would be helpful to fail fast once a port
                conflict is detected.<br>
                &gt;&gt;<br>
                &gt;&gt; Cheng<br>
                &gt;&gt; _______________________________________________<br>
                &gt;&gt; jboss-as7-dev mailing list<br>
                &gt;&gt; <a moz-do-not-send="true"
                  href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
                &gt;&gt; <a moz-do-not-send="true"
                  href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev"
                  target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
                &gt;&gt;<br>
                &gt;<br>
                <br>
                _______________________________________________<br>
                jboss-as7-dev mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
                <a moz-do-not-send="true"
                  href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev"
                  target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>