Tomcat with Apache

Hi,
I have followed the tutorial on this website to configure tomcat to connect with Apache.
I am on a CENTOS 5 system.
Apache was already installed and serving three web sites without problems.
I wanted to add the ability to work with .jsp files and others.
I loaded Tomcat with incident and it is running.
I also loaded mod_jk to connect the two as directed by the tutorial.
However, I cannot access a .jsp file unless I add the port number 8080 in the location bar along with the url.
Can someone point me to a good guide for getting this up and running? Or maybe provide some insight in what I might be doing wrong.
Thank You,
Mike

On this website? Which tutorial are you talking about? Apache is in no way related to Sun.
At least you should read the documentation which come along with the Tomcat Connector: [http://tomcat.apache.org/connectors-doc/].

Similar Messages

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

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

  • Integrate Tomcat with apache

    I need a procedure to check my installation of Tomcat 4.0.3 and it¹s
              integration with apache. I was told I need mod_jk, but I can¹t find it even
              in the source files of tomcat. Any word on where I can find it?
              Any procedures and insights would be greatly appreciated, thank you!
              Tim Best
              [att1.html]
              

    I am ttrying integrate tomcat/aoache on my local machine.But i can able to run html files only.No jsp,servlets.can you tell me how did u configure that.

  • Hello Friends...About integrating tomcat with apache

    Hello Friends...
    I want to integrate apache with tomcat. using JK connector.
    It is working for red hat 7.3 n 9.
    But it is not working for Red Hat Enterprise ES (Red Hat 3.2.3-47)
    I search for jk connector for Red Hat Enterprise ES.
    Cannot get help..
    Plz. help me
    Isparks

    Hi Alan.
    I've discovered the exact same problem.... 0.0.0.0 instead of 127.0.0.1
    You've obviously not had any replys here, but di you end up working it out on your own?

  • Integrating Tomcat with Apache

    Hi there,
    I'm really stuck here. I'm trying to integrate Apache with Tomcate. Not having much luck. I have a number of things that aren't quite right. For whatever reason the connector (mod_jk2) between Apache and Tomcat isn't doing its thing. First things first however. I'm not so sure about the log from Tomcat:
    17-Jan-2005 3:56:07 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 6517 ms
    17-Jan-2005 3:56:08 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    17-Jan-2005 3:56:08 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
    17-Jan-2005 3:56:08 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    17-Jan-2005 3:56:14 PM org.apache.catalina.core.ApplicationContext log
    INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    17-Jan-2005 3:56:16 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    17-Jan-2005 3:56:16 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    17-Jan-2005 3:56:17 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    17-Jan-2005 3:56:17 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    17-Jan-2005 3:56:21 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    17-Jan-2005 3:56:21 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/632 config=null
    17-Jan-2005 3:56:22 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 14657 ms
    Shouldn't this line: INFO: JK2: ajp13 listening on /0.0.0.0:8009
    read like this: INFO: JK2: ajp13 listening on /127.0.0.1:8009
    or: INFO: JK2: ajp13 listening on /localhost:8009
    If I'm right, then how do I make it listen on the localhost address 127.0.0.1?
    Please help,
    Alan
    My configuration files under tomcat are like so:
    # file://usr/local/tomcat/conf/jk2.properties
    ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
    ## WHEN YOU EDIT THE FILE.
    ## COMMENTS WILL BE LOST
    ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
    # Set the desired handler list
    # handler.list=apr,request,channelJni
    # Override the default port for the socketChannel
    # channelSocket.port=8019
    # Default:
    # channelUnix.file=${jkHome}/work/jk2.socket
    # Just to check if the the config is working
    # shm.file=${jkHome}/work/jk2.shm
    # In order to enable jni use any channelJni directive
    # channelJni.disabled = 0
    # And one of the following directives:
    # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
    # If set to inprocess the mod_jk2 will Register natives itself
    # This will enable the starting of the Tomcat from mod_jk2
    # apr.jniModeSo=inprocess
    # Socket Configuration
    channelSocket.port=8009
    channelSocket.address=127.0.0.1
    channelSocket.maxPort=port+10
    # file://usr/local/tomcat/conf/workers.properties
    #------ DEFAULT worket list ------------------------------------------
    # The workers that your plugins should create and work with
    # Add 'inprocess' if you want JNI connector
    worker.list=ajp13
    # , inprocess
    #------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
    # Defining a worker named ajp13 and of type ajp13
    # Note that the name and the type do not have to match.
    worker.ajp13.port=8009
    worker.ajp13.host=127.0.0.1
    worker.ajp13.type=ajp13
    # Specifies the load balance factor when used with
    # a load balancing worker.
    # Note:
    # ----> lbfactor must be > 0
    # ----> Low lbfactor means less work done by the worker.
    worker.ajp13.lbfactor=50
    # Specify the size of the open connection cache.
    worker.ajp13.cachesize=10
    # file://usr/local/tomcat/conf/workers2.properties
    [channel.socket:localhost:8009]
    info=Ajp13 forwarding over socket
    debug=0
    tomcatId=localhost:8009
    ...

    Hi Alan.
    I've discovered the exact same problem.... 0.0.0.0 instead of 127.0.0.1
    You've obviously not had any replys here, but di you end up working it out on your own?

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

  • Right problem with apache and tomcat

    Bonjour;
    I use a user login "apache" to stop/start Apache and tomcat. Because never launching apache et tomcat as root.
    But I have the following problem with apache (file error.log) :
    [Tue May  6 17:26:22 2003] [error] Connection "warpConnection" cannot connect
    [Tue May  6 17:26:22 2003] [error] Cannot open connection "warpConnection"
    [Tue May  6 17:27:01 2003] [error] Re-Trying to deploy connections
    As root the error msg does'nt exists (lost)
    Best regards;
    A+;

    Run it from the shell to see whats wrong:
    # httpd

  • Integrating tomcat 5.0.28 with apache web server 2.2

    hi all
    i tried a lot on net but could not get the steps for
    connctivity between tomcat 5.0.28 with apache web server 2.2.
    any one pzl do help me in finding the solution
    pzl do tel me the step by step process for this connectivity
    sus

    hi :-)
    you need jk modules ;-)
    i havent try the integrating the version of apache web
    and tomcat you specify but you can refer to the links below :-)
    gudluck :-)
    http://www.serverwatch.com/tutorials/article.php/2203891
    http://www.onjava.com/lpt/a/2826
    http://raibledesigns.com/tomcat/
    regards,

  • Servlet mapping with Apache + Tomcat

    I'm trying to set up my servlet with apache + Tomcat(3.2.3), and i'm using mod_jk as the Tomcat-Apache plug-in.
    The HelloWorld servlet that comes with the examples app worked fine at: http://localhost/examples/servlet/HelloWorldExample,
    but how do I change the configurations, so that it can be invoked at:
    http://localhost/examples/HelloWorldExample ?
    It appears to me that '/servlet/' is the default prefix for Tomcat's RequestInterceptor, there is no way to get around that.
    Any insights will be greatly appreciated, thanks!
    Elaine

    hi
    Try this:
    add below code in web.xml file in examples/WEB-INF
    F directory
    <servlet-mapping>
    <servlet-name>
    HelloWorldExample
    </servlet-name>
    <url-pattern>
    /HelloWorldExample
    </url-pattern>
    </servlet-mapping>
    Thanks for the reply, the web.xml is already set up this way, in fact, I'm able to invoke the servlet through tomcat(running on port 8080): http://localhost:8080/examples/HelloWorldExample,
    tomcat reads the web.xml without any problems.
    The problem comes from Apache(port 80), http://localhost:80/examples/HelloWorldExample wouldn't work, only http://localhost:80/examples/servlet/HelloWorldExample works.
    It appears to me that when requests are relayed from Apache to tomcat, you need to tell tomcat that you intend to invoke a servlet by prefixing '/servlet/', if you look in the server.xml, it has
    <RequestInterceptor
    className="org.apache.tomcat.request.InvokerInterceptor"
    debug="0" prefix="/servlet/" />
    I've tried to change this to something else, it didn't seem to make any difference.

  • Client authentication with apache+mod_ssl+tomcat

    Hello.
    My question is a little bit off topic.
    I try to read client certificates with request.getAttribute("javax.servlet.request.X509Certificate"), but the result is always null.
    Probably it's null because I have nothing on the session. So my tomcat does not have the certificate. I use apache + mod_ssl + mod_jk + tomcat.
    And here is my question: how did you configured apache and tomcat so that tomcat has the client cert ?
    Thanks.

    usually u generate a keystore for client, and mention that in ur SSL connector of tomcat
    in apache, we need to configure things in ssl.conf

  • The tab is bad with apache web server and tomcat

    the tab not run with apache web server + tomcat.
    It is very bad..

    Fijate que solo he estado experimentando con JSC, no he tenido oportunidad de poner nada en producci�n usando la combinaci�n Apache Web Server y Tomcat JSP container y no cuento en �ste momento con �sta configuraci�n para probar.
    Nosotros (en donde trabajo) usamos IBM Web Server (basado en Apache Web Server 2), IBM Websphere 6 y las aplicaciones JSF en producci�n est�n hechas con Rational Web Developer.
    Ahora he estado muy ocupado con un proyecto urgente, si tengo alg�n tiempo libre la semana entrante tratar� de probar tu combinaci�n (no te prometo nada) pero para ello necesito que me digas las versiones que est�s usando de Apache Web Server y de Tomcat, como est�s enlazando entre ambos con un m�dulo o con ProxyPass y mejor si me mandas el httpd.conf.
    Saludos.

  • Mod_jk load error with Apache on OS X

    Hello -
    I have been running CF9 on OS X with a MacPorts install of Apache 2.2.21 with no issues as a "standalone" server installation. To get ready for CF10 I have ben trying to get CF10 configured with Apache. The specefic error I am getting when launching Apache is:
    Cannot load /Applications/ColdFusion10/config/wsconfig/1/mod_jk.so into server: dlopen( /Applications/ColdFusion10/config/wsconfig/1/mod_jk.so, 10): Symbol not found: _apr_stat$INODE64\n Referenced from: /Applications/ColdFusion10/config/wsconfig/1/mod_jk.so\n Expected in flat namespace\n /Applications/ColdFusion10/config/wsconfig/1/mod_jk.so
    I have done the following:
    1. Recompiled Apache and forced a 64-bit compile
    2. Uninstalled CF9
    3. Uninstalld and reinsalled CF10
    4. apxs is installed in /opt/local/apache2/bin (listed asa requirement in one of the documentation PDFs)
    5. This is a Lion 10.7.3 with Xcode 4.2.1 currently installed
    The error listed above is only a warning. Apache starts and still servers html files. I am a bit stumped and have no experience with Tomcat. Any help in finding a solution to this problem will be appreciated.
    Thank you
    Richard

    Made progress -
    Setting the max_packet_size seemed to start the 1st time CF10 admin process, just like it did with CF9 the 1st time we access the administrator. Then, it just went to a blank white screen.
    mod_jk.log reports:
    [error] ajp_process_callback::jk_ajp_common.c (1825): Unknow ajp protocol code: 0F
    [error] ajp_process_callback::jk_ajp_common.c (2426): (cfusion) connecting to tomcat failed
    Now: here is something interesting:
    Look at the end of the URL when it 1st attempts to access administrator: It is index.cfm?configServer=true or index.cfm?serverConfig=true
    By removing this it allows me to simply click on the "continue" option and low and behold the CF admin comes up.
    I also have an issue with topnav.cfm reporting a 400 (Bad Request)
    Quiting the browser and comming back to CF Admin displays the login page but after enter username and password I land on index.cfm and it goes no further.
    Refreshing the page starts to rope in various admin componets.
    Also, it will not process any simple cfm template reporting an internal server error.
    Hopefully this has to do with this being a beta.

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

  • 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

  • Proxy abending

    I have an Nw 65sp6 server with Bm38sp5 and the server is abending on proxy.nlm. Any thoughts?? Novell Open Enterprise Server, NetWare 6.5 PVER: 6.50.06 Server SERVER5 halted Monday, December 8, 2008 1:56:15.137 pm Abend 1 on P00: Server-5.70.06: Page

  • Photoshop elements 6 - some effects stopped working - Mac

    Photoshop Elements 6 - Mac - some of the effects that have always worked have stopped working.  i get a message that "command ..... is not currently available" This program was purchased online ... I have no discs to install it. From these forums, I

  • Scheduling without using SQL Server Agent

    Can I have a scheduling job that run a group of packages on SSIS in a specific time? I can't use SQL Agent Job...

  • How can I boot Cisco1841 with USB Drive instead of CF?

    Hello I need to boot Cisco1841 with USB Drive instead of Compact Flash but I don't know what should I do. I heard I need to format USB Drive with FAT and need to save IOS on the USB Drive. Before boot, Need to set config register ? I am not sure whic

  • Flash Player 9 Deployment, Mac OS X

    I'm trying to find out if there's a fast way I can upgrade my Macintosh computers to the newest version of Flash Player (currently 9) without having to visit each computer. I do have a copy of Apple Remote Desktop, and could push the software with AR