Tomcat 4  +  Apache 1.3.2  + mod_jk.dll?

Ok, I've installed Apache and Tomcat both, and I'm able to get them running separately fine, Now i'm trying to get them to run together.
My problem lies in that Tomcat 4 doesn't generate the .conf files that you generally modify and include in apache's .conf file in order to get them to run together.
I'm running on windows 98, but any help from anyone on how to get these 3 working together would be appreciated.

I found this in the server.xml file in tomcat:
The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. This is built by following these steps:
- cd {TOMCAT-SRC-HOME}/connectors
- make
- (Edit "Makedefs" as needed for your installation)
- make
- su root
- cp connectors/apache-1.3/mod_webapp.so {APACHE_HOME}/libexec
- exit
To configure the Apache side, you must ensure that you have a
"ServerName" directive defined in "httpd.conf". Then, lines like
these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppMount examples warpConnection /examples/
Finally, modify the "defaultHost" attribute in the "Engine" directive
below to match the "ServerName" setting defined in "https.conf". The
next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppMount" directives can be accessed through Apache.
Here's the problem.. there is no /connectors directory, and I can't find a precompiled version of mod_webapp.so either (plus It doesn't tell me how to compile in windows..)
Anyway, if anyone has a precompiled mod_webapp.so file (if that will work) I guess that's all I need? I'm still lost as to how mod_jk.dll fits in though. I thought I read in a few places that tomcat4 used this instead of jserv.
Anyone able to help me out more?

Similar Messages

  • Help: Apache 2.0.36 / Tomcat 4.0.3 / mod_jk.dll

    I've been trying unsuccessfully to get Apache and Tomcat to work together on Windows 2000. I've seen various different sets of instructions for accomplishing this, but none of them have worked for me. I always end up unable to start Apache due to its inability to load the mod_jk module (even though it correctly states the full path to the module).
    1. Can anyone point me to a recent and/or correct set of instructions to set this up?
    2. Some instructions claim that Tomcat can generate a mod_jk configuration file, but I haven't found how to do that. How do you generate it?
    3. Any gotchas I should look out for?
    Thanks,
    Vince

    I had already tried that set of instructions and it didn't work for me either.
    But I did find out the source of the problem. It's a bug in Apache 2.0.x (up to the current 2.0.39). It has a problem parsing the path of the include (or add module) and can't find the mod_jk.dll.
    So I reverted back to Apache 1.3.26 and it's working. I'll keep checking for the next production-ready build of Apache 2 and try again.
    Thanks,
    Vince

  • Help! difficulties in using mod_jk.so to combine tomcat with apache

    apache 1.3.19 in rh7.1;
    tomcat 3.2.1;
    i do not know whether i need to complier a mod_jk.so before i configurate both tomcat and apache, right now i only put the mod_jk.so,which download from jakarta.com, into libexec directory. then configurate the server.xml for connector in port 8009 with Ajp13Connector; then edit workers.properties for every items; include the mod_jk.conf-auto in place of tomat-apache-conf-auto
    however, once the apache apachectl start after tomcat boot up; error logged in tomcat.logs.mod_jk.log and apache.logs.error_log both:
    error_log:
    no such fire or directory :error while opening the workers
    (but workers.properties is actually available in the path which set in mod_jk.conf-auto);
    mod_jk.log:
    jk_worker.c :wc_create_worker NULL factory for ajp13*ajp13;
    jk_worker.c(229): build_workder_map failed to crtete workerajp13;
    what is the problem, could you help me?
    frederick

    resovle by edit in mod_jk.conf by manuel.

  • Tomcat 4/Apache 2: Are spaces in include path a problem?

    Hi,
    Like so many before me, I am trying to make TOMCAT 4.0.4 and Apache 2.0.39 play together on Windows 2000, and am failing miserably. I followd several different approaches with no success. When I place the include directive in httpd.conf, Apache won't start.
    All of my paths to TOMCAT have spaces in them ("Program Files/Apche..."). Is this an issue? Other than that, I have no idea why it isn't working.
    Here is what I have done:
    -Downloaded mod_jk.dll and placed it in Apache/modules directory
    -Created a workers.properties file
    -Created a mod_jk.conf file
    Any help appreciated!
    - j

    If you are having difficulty with the Tomcat portion of the set-up try this guide;
    http://www.moreservlets.com/Using-Tomcat-4.html

  • Connecting tomcat to apache.

    Hello, I seek help in connecting apache to tomcat.
    I followed this guide
    http://johnturner.com/howto/winxp-howto.html
    I have
    WinXP SP2 fully updated
    Apache 2.0.55
    jakarta-tomcat-4.1.31
    j2sdk-1_4_2_11-windows-i586-p
    mod_jk-2.0.55.so
    everything I think is installed correctly, my Problem is, tomcat will not auto generate a mod_jk.conf as it is supose to.
    Anyone have any advice?
    thank you.

    harsh884 wrote:
    but the service block called by the servlet container to allow the servlet to respond to a request.And this method is only called after the servlet's init() method has completed successfully and this is what the documentation says.....
    so any idea why it was causing the problem... Already answered. service() is supposed to invoke doGet() or doPost() or doPut() etc etc depending on the request. You overrode that to not do that anymore, so you had broken it completely.
    Normally the only times anyone overrides service() is if they put ALL of the logic that would have otherwise been in doGet()/doPost()/doPut() etc etc inside service() instead. Even then, I would generally consider it bad practice to ever override this method.

  • Configuring tomcat and apache on the same system

    i need to configure tomcat and apache on the same system.
    first i have configured apache and it is working well.
    Next is have configured tomcat and it is working well.
    i need to interlink tomcat and apache. so i downloaded jk connector and i have configured it.
    i gave an entry in the httpd.conf as
    Include /tomcat/conf/auto/mod_jk.conf
    i have copied the file mod_jk.so to /usr/local/apache/libexec/
    went i start apache after the entry is given it gives the error like this
    cannot load /usr/local/apache/libexec/mod_jk.so into server: ld_so.1. /usr/local/apache/bin/httpd: fatal : libgcc_s.so.1 : openfailed : no such file or directory in linux
    please help to configure this.
    i have done every thing as it is in apache.org documentation. please give the complete configuration. some say that tomcat is not compiled according to apache1.3. but i configure jk connector as --with-apxs=/usr/local/apache/bin/apxs
    send me the reply
    thankqs in advance

    Hi,
    I'm working in a linux machine and choose to use also two different users. Of course I'm using two different ORACLE_HOME directories.I think that the best approach.Just a question ,are you keeping the "GROUP" same or different?
    Anand

  • Problem in configuring tomcat and apache

    I am using mod_jk to configure tomcat and apache. In the server.xml file in /TOMCAT_HOME/conf, I have added this line:
    <Listener className="org.apache.jk.config.ApacheConfig" modJk="/TOMCAT_HOME/mod_jk/mod_jk.so" />
    And when I restart the tomcat, I get this error:
    Caused by: java.lang.RuntimeException: Unable to create path to config file :
    /usr/local/tomcat/apache-tomcat-5.5.15/conf/auto/mod_jk.conf
    What this error is and how it will be removed. Any suggestion?
    Joseph

    Seems like a filesystem user rights problem. Perhaps tomcat is running as a seperate user and this user has no rights to write to one of the subdirectories?

  • Tomcat and Apache via JK2

    Hello,
    Has anybody ever gotten tomcat and apache working properly? I'm having a hell of a time with it. I have them working independently, and have JK2 installed (made a package for it). I used the tomcat 4.1 package from incoming...
    I can post configs and such if anybody thinks they can help. Right now, this is just a probe to see if anyone thinks they can help.   I need a break from it, been scrapping with it for three hours now.
    Once I get this working, I'll post a howto to the Wiki, I promise. :-D
    Thanks for any info,
    Dusty

    Thanks for the info so far, it's still not working though... here's what I'm getting:
    chane wrote:I might be able to help a bit.  I have apache 2.x and Tomact 4.1.29 running with JK2.
    I've got apache 2.0.48, tomcat 4.1.27, and jk2 2.0.2. Tomcat is from incoming, I built jk2 from ABS myself; It puts mod_jk2.so in /usr/lib/apache.
    in httpd.conf added a module:
    LoadModule jk2_module   lib/apache/rh72-2.0.2-mod_jk2.so
    I've got:
    LoadModule jk2_module           lib/apache/mod_jk2.so
    I think that's right; it seems to be loading the module (see error messages below)
    in the same directory (as httpd.conf) there is the workers2.properties file:
    I've tried various versions of that file. I just tried it with the one you gave copy-pasted into place, same problems.
    In the tomcat server.conf there is a connector for Coyote/JK2 AJP 1.3, make sure this is not commented and is on port 8009.
    I think I've got that set up properly. Isn't there some command I can use to test if there is a service running on port 8009?
    Anyway, when I go to http://localhost:8080/examples/jsp, for example, it works with tomcat. But if I go to http://localhost/examples/jsp I get a 404 not found; apache isn't forwarding the request to tomcat, for whatever reason.
    In /var/log/httpd/error_log, I've got this info:
    [Wed Mar 10 10:44:18 2004] [error] config.update(): Can't find config file /usr/conf/workers2.properties
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] jk2_init() Can't find child 452 in scoreboard
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] mod_jk child init 1 -2
    [Wed Mar 10 10:44:18 2004] [error] jk2_init() Can't find child 453 in scoreboard
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] mod_jk child init 1 -2
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] jk2_init() Can't find child 456 in scoreboard
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] mod_jk child init 1 -2
    [Wed Mar 10 10:44:18 2004] [notice] Apache configured -- resuming normal operations
    [Wed Mar 10 10:44:28 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:28 2004] [error] [client 127.0.0.1] File does not exist: /home/httpd/html/examples
    I can't tell if it isn't finding workers2.properties in the right place (why look in /usr/conf), or if its looking in two places and then not finding the shm file??
    Do you have anything in ${TOMCAT_HOME}/conf/jk2.properties? All the stuff I've seen online wants me to add stuff to that file, but its never the same stuff.
    Thanks very much,
    Dusty

  • Tomcat 4 - apache - mod_webapp problem

    hi,
    I know this is no tomcat forum, but i don't know where to post this message.
    I'm unable to connect apache with my tomcat server.
    I've installed apache(1.3.x) and tomcat(4.0 final) as stand-alone. they work fine.
    I've added the mod_webapp.so and the following to my configuration:
    --- httpd.conf ---------------------------------------
    # WARP Connection to Tomcat 4
    LoadModule webapp_module /usr/lib/apache/mod_webapp.so
    AddModule mod_webapp.c
    WebAppConnection warpConnection warp localhost:8008
    WebAppDeploy examples warpConnection /examples/
    --- server.xml ---------------------------------------
    <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="10" debug="0"/>
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
    name="Apache" debug="0" appBase="webapps">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="apache_log." suffix=".txt"
    timestamp="true"/>
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    </Engine>
    </Service>
    If I call http://localhost/examples
    apache should forward this request to tomcat,
    but apache says: "Not Found"
    Can anybody help me, please?
    ciao Markus

    Try
    http://localhost/examples/
    Why?
    Apache doesn't automaticaly add the slash sign at the end if it is not configured to.
    Hint:
    Install webapp-info also. Can be usefull sometimes...

  • Tomcat vs APache

    I have a few questions I've looked for in the apache and tomcat documentations. The moer I read the more I get confused
    1) Can tomcat be used as a stand alone server?
    2) Why should anyone integrate tomcat with apache?

    1) Yes you can.
    2) If my knoledge about tomcat is correct it is not properly optimized for static content. So normally you put tomcat behind an apache server and set the apache handle the ststic content. and tomcat to handle dynamic content.
    That way you can also get some load off from the tomcat too
    Also tomcat can be intigrated to already existing apache servers to enable servlet/jsps in the server.
    Someware I saw an artical about tomcat being intigrated with IIS to allow servlets in it.

  • Why integrate Tomcat with Apache?

    What's the reason to integrate Tomcat with Apache? What are the benefits?

    Apache is way faster and more scaleable than Tomcat.
    So if your website provides also static content (pages, pictures) etc this would be the reason.
    Additionally if you have other technology to include, that Tomcat cannot handle (PHP for example) you would do this with Apache, too.

  • Tomcat or Apache?

    I'm developing a Web Application using java and Tomcat. But, when I finish my application should be in Tomcat or Apache.
    Or is it the same between both thecnologies?

    You wont have any luck running anything in java with apache alone.
    Tomcat is a servlet engine made specifically for java. you can
    connect the two so that all static pages are vended by apache and
    all java related requests are sent onto tomcat, but its hard to
    configure. I suggest you run tomcat as a standalone.
    to answer you question, your webapp needs to reside in tomcat.

  • Upgrade the default Tomcat and Apache

    Hi
    Is there a working and correct way to upgrade and run a Tomcat and Apache server of your pick instead of the pre installed versions in OSX 10.4.8 server.
    Meaning that i want to start and admin them throught Server Admin interface, and making Jboss notice the new Tomcat aswell.
    Mikael

    If you're asking here, the answer is probably no.
    It is possible to build and install later versions of all the Mac OS X Server-bundled apps, including Apache, Tomcat, postfix, bind, etc., etc., but in most cases once you do you lose the ability to drive them via Server Admin.
    Server Admin knows what it knows - more importantly it doesn't know any of the features of later versions of the apps (it may work with point released (e.g. Apache 1.3.20 -> 1.3.30, but it won't work with major versions like 1.3 -> 2.0).
    So if you go that way you're on your own as far as configuring and maintaining the service is concerned.
    Leopard (10.5) will include later versions of these apps if you're prepared to wait.

  • Tomcat and Apache/Tomcat is the same?

    Hello,
    I�m new to jsp and somedays ago I asked here a question and the solution was about installing Apache or Apache/Tomcat.
    Now, my question is the following.
    When I started to learn jsp , what I did were to install Tomcat. After reading some questions in these forums I do not know what is the difference between the installation of Tomcat and the installation of Apache/Tomcat.
    What I have done for the moment is to have a server with Apache and another server for my jsp pages with Tomcat....
    Does it means that it is possible to integrate two installations in only one server and to run all the pages in the same server? Where can I find information about that?
    Thanks a lot and regards,
    Patty

    Tomcat has an HTTP listener built in, so you don't necessarily need Apache to run Tomcat and serve up HTML, JSP, and servlets.
    But if you want to have Apache handle static HTML and forward servlet/JSP requests to Tomcat, there are docs at the Tomcat site to tell you how to bolt Tomcat onto Apache.
    The Wrox book "Professional Apache Tomcat" has good instructions, too. I've done it successfully many times. - MOD

  • Tomcat or apache ?? HELP !!

    I'm learning jsp.
    Should i install tomcat or apache, as a server ?
    What is the difference ??!!
    1000 thanks; Kiss from Paris !!

    Bonjour,
    D'abord, vous avez besoin d'installer jsdkv1.3 sur votre machine, ensuit vous entrez dans le site http://jakata.apache.org/
    Cliquez: download -> binaire -> Tomcat4.0 -> jakata-tomcat-4.0.exe,
    telechargez et installez sur votre poste
    lancez IE et tapez http://localhost:8080, vous voyez la page index.html.

Maybe you are looking for