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...

Similar Messages

  • 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?

  • 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 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

  • 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

  • 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.

  • Tomcat, Apache, mod_webapp and reloadable

    Hi, I'm not sure if this is the best spot to post this, if you know of another group that might be more helpful I'd appreciate the link...
    We are currently running Apache and using mod_webapp to connect Tomcat4 to it. We are defining a few applications in mod_webapp.conf, like so:
    WebAppConnection conn warp localhost:8008
    WebAppDeploy appname conn /appname
    Then in the server.xml we define the connector like this:
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="/dirname"
    acceptCount="10" debug="0"/>
    The problem is that new class files are not picked up by Tomcat. There does not seem to be a good place to set the customary "reloadable=true" flag for our development application. Does anybody know how I could accomplish this with our setup?
    Thanks!
    -Eric

    Did you create a context for the webapp in the tomcat
    conf/server.xml
    <Context path="/myApp" docBase="myApp"
    reloadable="true" debug="0">
    </Context>No, we are just using the "appBase" attribute of the Connector element in the server.xml file to reference each application. It seems to me that we should be defining a Context for each application also, though I'm not sure how we would then use those with the WarpConnector to attach to Apache.
    In case it will help, here are the server.xml and mod_webapp.conf contents:
    ===========
    server.xml
    ===========
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="/app03/pactsecm"
    acceptCount="10" debug="0"/>
    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
    name="Apache" debug="0">
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="apache_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    </Engine>
    </Service>
    </server>
    ============
    mod_webapp.conf
    ============
    <IfModule mod_webapp.c>
    # Define the connection to Tomcat
    WebAppConnection conn warp localhost:8008
    WebAppDeploy     app     conn     /app
    WebAppInfo /stronghold/webapp-info
    </IfModule>

  • Tomcat and apache mod_jk or mod_webapp

    Hello,I am using linux and I am running a apache web server and I also use tomcat.
    I have upgraded from tomcat 4.0 to 4.1.24 and I am now wanting to use servlets and jsp with apache.I have messed around with servlet etc for awhile now but I wish to use them on my server,which is apache.My question is,do you know of a good website that explains how I can use the mod_jk,mod_jk2 or mod_webapp with apache 2.0 so I can use servlet with apache.I have looked but have not came up with nothing good and the stuff I have found is for older version and I am not sure if I need to use the mod_jk ,mod_jk2 or mod_webapp with the version of apache and tomcat I have.Ps,A good tut page on this would be nice.
    Thank you for your time.
    "Note" the new tomcat is a pain in the %$# to set up cause you have to uncomment the servlet invoker in the conf/xml file.Older version you did not have to do this cause it was already done for you.So this note is for people that has ever had trouble with setting up the new tomcats cause it was a pain in my @$$ figuring out why the hell the servlet was not working.
    Regards,
    D.W.A

    "Note",I cross posted this thread see
    http://forum.java.sun.com/thread.jsp?forum=54&thread=396478

  • Tomcat 6 - apache problem

    Hello,
    this is my first post, and I hop that someone here can help me.
    I want to create ajp connection.
    server.xml:
    <Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />
    httpd.conf:
    LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
    JkWorkersFile /etc/libapache2-mod-jk/workers.properties
    JkLogFile /var/log/apache2/mod_jk.log
    JkLogLevel info
    JkMount /test/. test_worker
    JkMount /test/* test_worker
    JkMount /test test_worker
    JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories -ForwardLocalAddress
    JkRequestLogFormat "%w %V %T"
    workers.properties:
    workers.tomcat_home=/etc/apache-tomcat-6.0.24
    workers.java_home=/home/sloba/jdk1.6.0_18/jre/
    ps=/
    worker.list=test_worker
    worker.test_worker.port=8010
    worker.test_worker.host=localhost
    worker.test_worker.type=ajp13
    worker.test_worker.lbfactor=1
    worker.loadbalancer.type=lb
    worker.loadbalancer.balance_workers=test_worker
    problem is that I have servlet jAjax, and I cannot get to him thru apache
    I can manage this
    localhost:8081/test
    localhost:8081/test/jAjax
    localhost/test
    I cannot manage this
    localhost/test/jAjax
    tomcat 6.0.24
    apache 2.0
    ubuntu 9.10
    if you need more info just ask,
    ps. sorry for my poor English.

    Thanks for replay.
    I found problem.
    I use ajax with jsp, and problem is that I need to change path of servlet in my request method
    from
    localhost:8081/test/jAjaxto
    localhost/test/jAjaxThank you.
    Best regards ..

  • Apache 2, Tomcat 5, mod_jk2 configuration problem

    I am setting up a Web Server on a RedHat Enterprise Linux box. I installed the RedHat Application Server that installs Apache 2, Tomcat 5 and Mod_JK2. I can't get the mod_jk2 configured properly. I've searched the internet and haven't found any documentation that will work with this.
    I need to know how to configure the mod_jk2 with Apache2 and Tomcat 5.
    PLEASE HELP!!! Nothing I've tried from the Internet has helped. The best site that I've found is ::
    http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
    but its for tomcat 4 so it doesn't work for me.
    Has anyone does this before that can help me????
    Thanks in advance.

    Ended up downloading and installing the mod_jk instead of the mod_jk2 that came with RedHat Application Server.

Maybe you are looking for

  • Can't drag files into itunes from computer folder.

    Im running windows 7 64bit, with the newest version of itunes:10.2.2.14.  I can't drag files from my "music folder" which is in my documents into itunes anymore.  I used to be able to do this with my old computer running windows 7 32bit, and even on

  • FTP directory from part of PDF file name

    Hi, I have a requirement to FTP a pdf file to a server directory according to fist 10 char of the file name. I am able to get the file name using variable substitution method but how can i chop the 1st 10 char of file name as my directory? As the fil

  • Iphoto updating images from Mac to iPad

    Hi When I have edited photos on my mac in iPhoto, I then plug in my iPad to sync the new edited photos into the same event, but the updated images that I have edited will not update on the iPad? It used to do this but not anymore, not sure if I have

  • Phone Link Update app. not found

    My TX sez to use Phone Link Update Application in my Palm folder (desktop). Not found Does this file have a cryptic name or something? Palm website (support) doesn't show anything in Search Thanks Post relates to: Palm TX

  • TPT2 will not load Windows 8, stuck on boot menu

    Hello all, It's my first post on this forum, and I'm having issues with a Thinkpad Tablet 2.  I can power on the device but then it goes to the boot menu, which is empty.  From here I don't know what else to do, as I cannot find any way to access Win