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.
Similar Messages
-
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.
-
Steps to integrate ClickStream with Apache
Hi All,
Could anyone please share information on:
Steps to integrate ClickStream with Apache
Thanks for your time!
Regards,Hi User;
Please follow below and see its helpful for your issue:
http://download.oracle.com/docs/cd/B10570_07/relnotes.902/a97272.pdf,
[Link 1|http://hy.gzntax.gov.cn/k/2002-1/679843.html]
Oracle9iAS Clickstream Intelligence 9.0.2 [ID 232015.1]
Regard
Helios -
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?
frederickresovle by edit in mod_jk.conf by manuel.
-
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,
MikeOn 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/]. -
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
IsparksHi 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? -
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
sushi :-)
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!
Elainehi
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. -
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 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 MarkusTry
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...
Maybe you are looking for
-
VMware Fusion suddenly hogging resources and fan running constantly
I have had my MacBook for about a year now and until 2 weeks ago had no problems with this issue before. Now suddenly, if I launch VMware Fusion (even not running any programs) the MacBook fan comes on and stays on. When I launch the Mac "Activity Mo
-
Hi, I have an older version of imovie and I need to record a short audition directly from my built in camera in imovie and edit it and then send it because my flipshare camera software isn't responding to mailing at all. Do I need the new imovie ver
-
Has anyone figured out how to fix pixellating display issues Mavericks
Hi everyone, I have been getting pixellated blocks, corrupted dialog boxes, 'snow' icons etc after upgrading to Mavericks... I have a mid 2010 27" iMac and have recently been getting the glitching graphics... looking at other posts, they seem to focu
-
Data Modeler goes to Oracle Database Repository ?
Hi Philip, Thank you very much for your quick answer. Hope that this forum is the correct one right now. To us it seems to be inpossible to use the data modeller v3.1 with SVN. The recent designer-toolbox hasn't been updated by Oracle since 2007. Tha
-
I need to have a Flex form communicate with the LC database. I see 4 ways to make this happen. Have Flex use a RemoteObject call to a custom written process that actually invokes a JDBC operation Have Flex use a RemoteObject call to a custom written