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.

Similar Messages

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

  • 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

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

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

  • 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 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 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 vs Apache with Tomcat connectors (mod/jk)

    Is there any advantage (security, performance etc.) of running a Java web application on Apache HTTP Server with Tomcat Connectors (mod/jk) rather than directly running it on Tomcat.

    This question is already answered, see here:
    http://tomcat.apache.org/faq/connectors.html
    Also for Tomcat/ Apache related questions, post them to the relevant mailing lists.

  • Connecting tomcat and apache

    hi,
    i am having problem connecting Apache and Tomcat with mod_jk connector. i am not getting any exceptions. the problem is when i am trying to access .jsp pages from apache ... its showing me code ....
    i have used this just below the <server port=8080> in server.xml :
    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="/usr/local/apache2/modules/mod_jk.so" />
    in the same server.xml file i have used this line in the host tag :
    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" forwardAll="false" modJk="/usr/local/apache2/modules/mod_jk.so" />
    and i have used the "Include <path>/mod_jk.conf " in httpd.conf
    is there nething i am missing ...
    thanx in advance ...
    psr

    Here are my particular settings that work. There's only this file you need to alter. Usually it's called httpd.conf
    <IfModule mod_jk.c>
        JkWorkersFile conf/workers.properties
        JkLogFile logs/mod_jk.log
        JkLogLevel error
        JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
        JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
        JkRequestLogFormat "%w %V %T"   
      JkMount /Market/* example  
      JkMount /Market example 
        JkMount /Market/*.do example
         JkMount /Market/*.jsp example
          JkMount /se/* example  
      JkMount /se example 
        JkMount /se/*.do example
         JkMount /se/*.jsp example
    </IfModule>

  • Web Service client running on Tomcat behind Apache-ModJk

    Hi all.
    I've realized a web service, which have been deployed on a Tomcat 5.5 instance running behind a firewall.
    The Web Service is published through an Apache 2.0 Web Server, which is in the DMZ and which is connected to Tomcat via modjk.
    Everything is working fine (as apache forwards to tomcat clients' calls), except from one thing: one of the web-methods needs to connect to a remote server to validate some data... that is, this web-method implements a "web service client" piece of code, by which a remote validating method must be called.
    So, the problem is that this remote method must be accessed from something running behind the firewall...
    One way could be to open a hole in the firewall, allowing only calls to that remote address, but I'd rather avoid this.
    Do someone have other suggestions?
    Is there perhaps any way to use mod_jk also for "exiting" and not only for "entering"?
    Any help will be very appreciated!!

    Could you not use a proxy server. The web service client would go through the proxy server to the internet

  • 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

Maybe you are looking for

  • Mass order Confirmation

    Hi all, During multiple order confirmation using CO1V , how can I post goods movements also. I tried clicking on the goods movement button and enter all the details, but when I try to save the save button is greyed out. So I hit the back button and c

  • Error at the time of creation of PSA

    Hi I m creating a PA for US i am getting an error message saying "Communication error with the external tax system (VERTEX_MS0018)" Please suggest. Thanks Veer

  • Selections in Infopackage

    Hi All, I need to put selections in infopackage for "Material no." for multiple single values. (2700 materials) please suggest a way to do this kind of selection. Many thanks Tanu

  • How to make FCE have mono audio output?

    How would I sent the final cit express so there is mono audio out? Thanks, Zack.

  • Restricting 'Delete Row' in Documentation tabs of Projects

    Hello, Is it possible to restrict the Authorization to 'Delete Row' option in the Project documentation/ General documentation ? We tried Authorization trace and no Authorization object checks are hit during the 'Delete Row' action. Has anybody achie