1 2 3 4 5 Previous Next 63 Replies Latest reply on Mar 11, 2004 10:13 AM by czylcn Go to original post
      • 60. Re: May I integrate Apache + Tomcat + JBoss ?
        russellsimpkins

        I had no trouble integrating jboss-3.2.1_tomcat-4.1.24 with apache 1.3.27. The only problem I am having is deplowing a war... damn thing is doubling up the paths... this may be by design... I'm not sure just yet. If anyone else has this issue with jboss and tomcat, please advise. jar -cf x.war ap_path deploys fine, but resulting app path is ap_path/ap_path. Anyway, here is what I did to get Apache/Tomcat/Jboss to play nice together:

        jboss : DL/tar -zxf
        apache : RTFM/DL/configure/make/ make install


        mod_jk2: RTFM/DL/configure/make/make install

        http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

        server.conf is located: jboss-3.2.1_tomcat-4.1.24/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml

        The conf is no different then the tomcat original, except they took out all the commented out parts.

        I did this all on an old ass Mac G-3 running Yellowdog 3.0 using IBM's 1.3 jdk for the PPC.

        I did it just to see if it could be done.

        Overall, you have to RTFM if you want to accomplish these tasks, and BTW the connectors can be difficult at times, so don't loose hope. JBoss books are not the best ever written, but the issues in this configuration is NOT with JBoss. If you can make apache and tomcat work together, you only need modify the jboss-service.xml file to do the same with JBoss/tomcat

        If you need more info, drop me a line: russellsimpkins@funnygarbage.com

        • 61. Re: May I integrate Apache + Tomcat + JBoss ?
          leroyslater

          Do you have to go through building your own mod_jk2 or can you use the binary supplied at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/linux/i386/ ?

          • 62. Re: May I integrate Apache + Tomcat + JBoss ?
            jonlee

            You can use the supplied ones. These have only just been uploaded. For a very long time, you needed to build your own JK2 from the source distributions.

            • 63. Re: May I integrate Apache + Tomcat + JBoss ?
              czylcn

              Apache HTTP Server 2.0.48 +jboss-3.2.3 (include tomcat 4.1*)
              four files
              "httpd.conf"(Apache ),mod_jk.conf(created),workers.properties(created).
              i do the thing waste my much time.i share my file content.it's so easy!
              1、at the end of httpd.conf add the line:
              Include "D:/Apache/Apache2/conf/mod_jk.conf"
              2、see the mod_jk.conf content:

              ########## Auto generated on Thu Mar 11 18:10:43 CST 2004##########

              <IfModule !mod_jk.c>
              LoadModule jk_module D:/Apache/Apache2/modules/mod_jk.dll


              JkWorkersFile "D:/Apache/Apache2/conf/jk/workers.properties"
              JkLogFile "D:/Apache/Apache2/logs/jk.log"

              JkLogLevel emerg



              <VirtualHost llc>
              ServerName llc



              #################### localhost:/interface ####################

              # Static files
              # Alias /interface "D:/Apache/Tomcat4.1/webapps/interface"

              # <Directory "D:/Apache/Tomcat4.1/webapps/interface">
              # Options Indexes FollowSymLinks
              # DirectoryIndex index.html
              #


              # Deny direct access to WEB-INF and META-INF
              #
              # <Location "/interface/WEB-INF/*">
              # AllowOverride None
              # deny from all
              #

              # <Location "/interface/META-INF/*">
              # AllowOverride None
              # deny from all
              #
              #
              # Use Directory too. On Windows, Location doesn't work unless case matches
              #
              # <Directory "D:/Apache/Tomcat4.1/webapps/interface/WEB-INF/">
              # AllowOverride None
              # deny from all
              #

              # <Directory "D:/Apache/Tomcat4.1/webapps/interface/META-INF/">
              # AllowOverride None
              # deny from all
              #

              JkMount /interface/*.do ajp13
              JkMount /interface/*.jsp ajp13
              JkMount /interface/* ajp13



              3&#12289;the "workers.properties" file content:
              worker.list=ajp13
              worker.ajp13.port=8009
              worker.ajp13.host=localhost
              worker.ajp13.type=ajp13
              4&#12289;in the jboss config file "jboss-service.xml "add the line:

              deploy/,/d:/interface/cs/web/

              5&#12289;success.start your jboss,start your apache.
              6&#12289;of course,in this sample my app is "interface".maybe i said not clear.
              you can find me with my msn:czylcn@etang.com.




              1 2 3 4 5 Previous Next