1 2 Previous Next 20 Replies Latest reply on Mar 2, 2016 10:29 AM by jyoti gahan

    how to integrate apache web server and jboss 7

    Joseph Hwang Novice

      I'm trying to integrate apache web server to jboss 7.0.1.Final.

       

      First, I made mod_jk.conf , uriworkermap.properties and workers.properties files in <APACHE_HOME>/conf folder. File contents are like below,

       

      mod_jk.conf :

       

      LoadModule jk_module modules/mod_jk.so

      JkWorkersFile conf/workers.properties

      JKLogFile logs/mod_jk.log

      JkLogLevel debug

      JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

      JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories

      JkRequestLogFormat "%w %V %T"

      JkMountFile conf/uriworkermap.properties

      JkShmFile run/jk.shm

       

      uriworkermap.properties :

       

      /jmx-console/*=loadbalancer
      /jmx-console=loadbalancer

      /web-console/*=loadbalancer
      /web-console=loadbalancer

       

      workers.properties :

       

      worker.list=loadbalancer

      worker.node1.host=localhost
      worker.node1.port=8009
      worker.node1.type=ajp13
      worker.node1.lbfactor=1

      worker.loadbalancer.type=lb
      worker.loadbalancer.balance_workers=node1

       

      And I dowloaded tomcat connector mod_jk.so from apache homepage to <APACHE_HOME>/modules folder.

      Also I inserted a line in <APACHE_HOME>/conf/httpd.conf file like this

      ...

      Include conf/mod_jk.conf

      ....

       

      In Jboss 7 I typed a few lines in standalone.xml like below

      ....

      </extensions> 

       

      <system-properties>

         <property name="jvmRoute" value="node1"/>

         <property name="UseJK" value="true"/>

      </system-properties>

      ...

      <connector name="ajp13" protocol="AJP/1.3" socket-binding="ajp"/>

      ...

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

      .....

       

      Apache web server and JBoss 7 throw no exception during the execution.But integration is failed.

      I have no idea what is wrong in this configuration. Pls, kindly inform me of your advice. Thanks in advanced.

       

      Best Regards!

        1 2 Previous Next