7 Replies Latest reply on Feb 15, 2004 5:58 PM by acoliver

    The same old question: How Can I Integrate JBoss with Apache

      Hi,

      I know, this question has been defintely asked 100's of times.
      I have read at least dozens of those posts and "articles" elsewhere, BUT
      none of them explain clearly how to do it.

      On this forum I constantly read comments telling:
      "check this URL or that"

      and they either don't work or just don't handle the matter.


      So please, to all who have done it and are just bored to hear about such a simple issue:

      "do you know of a good HowTo, which explains, how one can keep his Apache 2.x and all the current configurations and integrate JBoss 3.2.3 with it?".

      (I need infos for both RedHat & Windows XP development desktops)


      I have already a "Apache 1.3.27/Tomcat 4.1.27/mod_jk1.2 integration and works fine.

      The integrated Tomcat in Jboss 3.2.3 is a different matter.

      Using the Apache/Tomcat method and with the available documentation from Apache or Tomcat
      JBoss seems not to work.

      I am just starting with JBoss, so there might be an obvious place on this site where I could get the answer I am looking for.
      But after hours on this site and most of yesterday on google,
      I haven't gotten the help I need.


      Please somebody help! Thanks.

      code007

        • 1. Re: The same old question: How Can I Integrate JBoss with Ap
          acoliver
          • 2. Re: The same old question: How Can I Integrate JBoss with Ap

             

            "acoliver" wrote:
            Lets write one together: http://jboss.org/wiki/Wiki.jsp?page=JBossOnPort80


            This is a good idea. Let's do it!

            code007

            • 3. Re: The same old question: How Can I Integrate JBoss with Ap
              acoliver

              Great, you'll find I've put some stuff on how to use mod_proxy, port forwarding. I've linked the most comon reference on using mod_jk. You'll find that in JBoss tomcat is under deploy/jboss-web-tomcatxxxx.sar/META-INF/jboss-service.xml (server.xml is embedded). Walk through doing this, ask specific questions and document it as you go. I'll fill in anything you can't.

              • 4. Re: The same old question: How Can I Integrate JBoss with Ap
                acoliver

                I answered your question.

                • 5. Re: The same old question: How Can I Integrate JBoss with Ap

                  fine. I also added a few infos.

                  I actually had edited the jboss-service.xml.

                  This is what I have entered there, in analogy to what I have done while integrating Tomcat with APache.
                  (In the case of Tomcat the file edited was obviously serer.xml.)

                  --------------

                  ---------------


                  My workers.propertie looks like this:


                  # Setting Tomcat & Java Home
                  #workers.tomcat_home=/usr/local/tomcat
                  workers.tomcat_home=/usr/local/jboss-3.2.3/server/default/deploy/jbossweb-tomcat41.sar


                  workers.java_home=/usr/local/java/java
                  ps=/
                  worker.list=worker1
                  worker.worker1.port=8009
                  worker.worker1..host=jango
                  worker.worker1.type=ajp13



                  My httpd.conf includes a .conf file which looks like this:

                  # My ENtries for tomcat-jk-connector


                  # Load mod_jk
                  #
                  LoadModule jk_module libexec/mod_jk.so

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


                  # Configure mod_jk
                  #

                  JkWorkersFile /usr/local/jboss-3.2.3/server/default/deploy/jbossweb-tomcat41.sar/META-INF/workers.properties
                  JkLogFile /usr/local/jboss-3.2.3/server/default/deploy/jbossweb-tomcat41.sar/META-INF/mod_jk_JBOSS_NEW_15_02_2004.log



                  JkLogLevel debug



                  JkMount /examples/* worker1
                  JkMount /examples/jsp/*.jsp worker1
                  JkMount /examples/servlet/* worker1

                  # ##############################
                  JkMount /* worker1

                  JkMount /*.jsp worker1
                  JkMount /*/*.jsp worker1
                  JkMount /*/servlet/* worker1

                  <location "/examples/web-inf/">
                  AllowOverride None
                  deny from all



                  code007

                  • 6. Re: The same old question: How Can I Integrate JBoss with Ap

                    I just found out that my current configuration
                    DOES work.
                    -------------------------

                    While sending you the details I found out a few errors.
                    Most of them typos in directory names & context mapping issues, since JBoss deals a bit different than Tomcat.


                    It is getting really late here; I have been sitting here for the last 15 hours, on a sunday!

                    So I need to go to sleep.
                    Later I will try with your help to write down a detailed description, specially about the gotchas one encounters here.
                    After all you have a bunch of packages & technologies thrown together, which is not always transparent, specially from the perspective of a developer.


                    code007

                    • 7. Re: The same old question: How Can I Integrate JBoss with Ap
                      acoliver

                      Cool. I was about to reply with the typos that jumped out at me. I look forward to your assistence in documenting this important issue. Thanks for contributing.