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.
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. -
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/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,
PattyTomcat 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 -
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
RichardMade 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.
Maybe you are looking for
-
How do you know what kind of ssd your macbook pro has?
I have an older macbook pro (the one with a intel core 2 duo) but I don't know which kind of ssd it has. I checked system profiler but I did not see it. I have not upgraded it so I am assuming this is the default ssd. I want to also upgrade the ssd,
-
I have multiple iPhoto libraries made with older vs. of iPhoto. I cannot open any now with either iPhoto or iPhoto Manager, just get a spinning icon.
-
Actions are broken in Illustrator CC!
Since upgrading to Illustrator CC, my actions haven't been working right. All the details from certain steps are completely gone. For example, if a step involved rotating the selection by 90°, the "Rotate" step will still be there, but there is no lo
-
I want to group my photos within Events. So for example I want to create an Events sorted by year of activity and then within that Event group the photos by "sub Event" like "Holiday to Somewhere". So when I search I can find all photos from 2015 in
-
Connecting AP 1130ag to 2112 port
I have been through the guides but cannot figure out this one. I have an 1130ag AP (LWAPP) connected into port 7 (Poe) and trying to get it to associate with the WLC 2112. It never does. Do I need to configure that port to allow the APs to access the