7 Replies Latest reply on Apr 18, 2002 1:30 PM by yasirsk

    Tomcat-Apache connection

    sthevoz

      Hello,

      I'm trying to connect Apache 2.0 with JBoss 2.4.4/Tomcat 4.0 on Windows 2000 and I have problems.

      In Apache configuration file I have added the line:
      LoadModule module_jk modules/mod_jk.dll

      But when I start Apache, an error message said:
      Cannot load C:/Apache/modules/mod_jk.dll into server: The specified module could not be found.

      Could you help me?

      Thank you
      Sylvain Thevoz

        • 1. Re: Tomcat-Apache connection
          jwkaltz

          > Cannot load C:/Apache/modules/mod_jk.dll into server:
          > The specified module could not be found.

          Does the file C:/Apache/modules/mod_jk.dll exist ?

          • 2. Re: Tomcat-Apache connection
            sthevoz

            yes, it exists and I have verified the path 100 times!

            Sylvain

            • 3. Re: Tomcat-Apache connection
              jwkaltz

              In Apache 1.3 under Unix you need two commands to load mod_jk as a shared object :

              LoadModule jk_module libexec/mod_jk.so
              AddModule mod_so.c

              In Windows I guess you have DLLs instead of shared objects. Also there might be some changes between Apache 1.3 and Apache 2.0

              Sorry, I can't help you more, I haven't yet tried out Apache 2.0

              • 4. Re: Tomcat-Apache connection
                pippopippo

                Tomcat 4 is different, no mod_jk, but mod_webapp instead!!!
                Check http://www.webmasterbase.com/article/305

                • 5. Re: Tomcat-Apache connection
                  yasirsk

                  I've tried to install and integrate apache 2 with jboss/tomcat but was getting the same error. I tried different tricks but did not work so went back to apach1.3.

                  There is a file named libapr.dll that comes with mod_webapp that is needed to load the drivers. If you have this file, it will work fine with apache 1.3. make sure that you get the mod_jk.dll for windows and .so for linux.

                  btw, apache2 didn't integrate in linux7.2 either :(

                  • 6. Re: Tomcat-Apache connection
                    sthevoz

                    Do you use mod_jk or mod_webapp with Apache 1.3??

                    The file libapr.dll is usefull for mod_jk or mod_webapp, Apache 1.3 or 2.0??

                    You said that it works with Apache 1.3, what do you use??

                    Thank you
                    Sylvain

                    • 7. Re: Tomcat-Apache connection
                      yasirsk

                      im using mod_jk with apache1.3. the libapr is used for apache1.3.

                      here is my configuration in httpd.conf

                      LoadModule jk_module modules/mod_jk.dll
                      AddModule mod_jk.c


                      JkWorkersFile c:\workers.properties

                      JkLogFile c:\mod_jk.log
                      JkLogLevel info
                      JkMount /www/* ajp13

                      you'll need to generate a workers.properties file and give that path. it doesn't work otherwise. you'll also have to edit the jboss.jcml file to make embedded tomcat start its ajp13 processor. there is another thread on this forum for that.

                      HTH

                      YSK

                      p.s. anyone get apache working with JBOSS3/catalina, please reply here