1 Reply Latest reply on Oct 13, 2009 4:24 PM by nicolas sa

    apache2 + jboss5 + ubuntu

    nicolas sa Newbie

      Hello, I configure apache to serve to jboss trough ajp, the configuration was:

      [jk.conf]

      # Where to find workers.properties
      JkWorkersFile /etc/libapache2-mod-jk/workers.properties
      
      # Where to put jk logs
      JkLogFile /var/log/apache2/mod_jk.log
      
      # Set the jk log level [debug/error/info]
      JkLogLevel error
      JkShmFile /var/log/apache2/jk-runtime-status
      
      # Select the log format
      JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
      
      # JkOptions indicate to send SSL KEY SIZE,
      JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
      
      # JkRequestLogFormat set the request format
      JkRequestLogFormat "%w %V %T"
      
      # Send servlet for context / jsp-examples to worker named worker1
      #JkMount /jsp-examples ajp13_worker
      
      # Send JSPs for context /jsp-examples/* to worker named worker1
      #JkMount /jsp-examples/* ajp13_worker
      #EJB-war
      #JkMount /EJB-war ajp13_worker
      #JkMount /EJB-war/* ajp13_worker
      #JkMount /* ajp13_worker
      #JkMount /*-war/ ajp13_worker
      #JkAutoAlias /home/nsanz/Apps/jboss-5.1.0.GA/server/default/deploy/
      JkAutoAlias /usr/local/jboss/server/default/deploy/
      JkMount /EJB-war/* ajp13_worker
      
      <Location /jkstatus>
      JkMount status
      Order deny,allow
      Allow from all
      </Location>
      


      [workers.properties]
      ps=/
      worker.list=ajp13_worker
      worker.ajp13_worker.port=8009
      worker.ajp13_worker.host=128.0.0.1
      worker.ajp13_worker.type=ajp13
      worker.ajp13_worker.lbfactor=1
      worker.loadbalancer.type=lb
      worker.loadbalancer.balance_workers=ajp13_worker
      


      [jbossweb.sar/server.xml]
      <Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"
       redirectPort="8443" />
      <Engine name="jboss.web" defaultHost="localhost" jvmRoute="ajp13_worker">
      





      the problem was wen I trie to enter http://serverip/EJB-war
      apache responde that the page is unavailable