3 Replies Latest reply on May 8, 2013 2:37 AM by ANAND KUMAR GEORGE PREM KUMAR

    Jboss AS 7.1.3 - Unable to access Web Context

    ANAND KUMAR GEORGE PREM KUMAR Newbie

      I am in the process of doing Migration from  Jboss 4.3.GA to Jboss AS 7.1.3. Below is the log snippets and the deployment descriptors. I dont find any error in the server logs. But unable to access the web application using the url  http://<Server-ip-addres>:9990/mmadmin

       

      Console log snippets:

       

      11:26:08,266 INFO  [stdout] (MSC service thread 1-8) @@@@@@@@@@@@@@@@@@@ Inside doGt Home Methoed@@@@@@@@@@@@@@@@@@ mappedHomeJNDINamejava:app/MobilematrixCX_ejb-1.0.0-SNAPSHOT/com.cassis.cx.asi.production.PIserviceInvoker!com.cassis.cx.asi.ServiceInvoker_Home

      11:26:08,269 INFO  [org.jboss.web] (MSC service thread 1-8) JBAS018210: Registering web context: /mmadmin

      11:26:08,288 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) JBAS018559: Deployed "CMS.ear"

      11:26:08,600 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://0.0.0.0:9990/management

      11:26:08,601 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://0.0.0.0:9990

      11:26:08,601 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.0.1.GA (AS 7.1.3.Final-redhat-4) started in 20528ms - Started 1749 of 1848 services (93 services are passive or on-demand)

       

      jboss-web.xml :

       

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web>

      <context-root>/mmadmin</context-root>

      </jboss-web>

       

       

      application.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">

        <display-name>CmsEAR</display-name>

        <initialize-in-order>true</initialize-in-order>

       

      <module>

          <ejb>MobilematrixCX_ejb-1.0.0-SNAPSHOT.jar</ejb>

        </module>

       

        <module>

          <web>

            <web-uri>MobileMatrixWEB-1.0.0-SNAPSHOT.war</web-uri>

            <context-root>/mmadmin</context-root>

          </web>

        </module>

       

       

        <library-directory>lib</library-directory>

       

       

      </application>

        • 1. Re: Jboss AS 7.1.3 - Unable to access Web Context
          jaikiran pai Master

          http://<Server-ip-addres>:9990/mmadmin

          The HTTP port is 8080 not 9990.

          • 2. Re: Jboss AS 7.1.3 - Unable to access Web Context
            ANAND KUMAR GEORGE PREM KUMAR Newbie

            I got it !

             

            Just noticed the below configuration in the standalone-full.xml .  So 9990 is the http port for management console, whereas for webapplications, the default http port is 8080. But still i could not access my web application using the url http://<Server-ip-address>:8080/mmadmin

             

             

            <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

                    <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>

                    <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>

                    <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>

                    <socket-binding name="ajp" port="8009"/>

                    <socket-binding name="http" port="8080"/>

                    <socket-binding name="https" port="8443"/>

                    <socket-binding name="jacorb" interface="unsecure" port="3528"/>

                    <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>

                    <socket-binding name="messaging" port="5445"/>

                    <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:9876}"/>

                    <socket-binding name="messaging-throughput" port="5455"/>

                    <socket-binding name="osgi-http" interface="management" port="8090"/>

                    <socket-binding name="remoting" port="4447"/>

                    <socket-binding name="txn-recovery-environment" port="4712"/>

                    <socket-binding name="txn-status-manager" port="4713"/>

                    <socket-binding name="jndi" port="1099" fixed-port="false" multicast-port="1098"/>

                    <outbound-socket-binding name="mail-smtp">

                        <remote-destination host="localhost" port="25"/>

                    </outbound-socket-binding>

                </socket-binding-group>

            • 3. Re: Jboss AS 7.1.3 - Unable to access Web Context
              ANAND KUMAR GEORGE PREM KUMAR Newbie

              Thanks Jaikiran,

               

              I managed to make it by changing the jboss bind address from 127.0.0.1 to 0.0.0.0 as below , since it is a web admin portal intended to be accessed outside of the hosted jboss server as well.

               

               

              <interfaces>

                      <interface name="management">

                          <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>

                      </interface>

                      <interface name="public">

                          <inet-address value="${jboss.bind.address:0.0.0.0}"/>

                      </interface>

                      <interface name="unsecure">

                          <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

                      </interface>

                  </interfaces>