Questions tagged [mod-jk]

mod_jk is the connector used to connect the Tomcat servlet container with web servers using AJP protocol.

mod_jk, the Apache Tomcat Connector, is a replacement to the elderly mod_jserv. It is a completely new Tomcat-Apache plug-in that handles the communication between Tomcat and Apache.

422 questions
2
votes
0 answers

Apache 2.2 with mod_jk / Tomcat 6.0 / Removing context paths with 2 wars

I'm currently using a unique server to host 2 Java EE applications. The server is a Linux Debian 6, with Apache 2 and Tomcat 6. I'm using mod_jk in order to remove port from url. Until now, those applications are available on url…
2
votes
0 answers

what causes 504 Gateway Time-out in mod_jk with tomcat7 & apache2?

I'm running tomcat 7 with apache 2.2 & mod_jk 1.2.26 on a debian-lenny x64 server with 2GB of RAM, 8GB of swap & an Intel Xeon CPU X3330. I've a GWT application which uses connection pooling to interact with backend mysql database. this application…
Ehsan Khodarahmi
  • 4,772
  • 10
  • 60
  • 87
2
votes
2 answers

tomcat 2 minute timeout for some ajax post requests

I get an intermittent timeout processing some AJAX POST request. Setup: Apache 2.2.17 -> mod_jk 1.2.26 -> JBoss 4.3 CP01 (with Tomcat 6.0). Application is built with JSF 1.2_11, Seam 2.1, RichFaces 3.3.1. It usually happens with IE browsers (7,8,9).…
JavaMonkey123
  • 51
  • 1
  • 4
2
votes
2 answers

Enable compression/gzip on the ajp-connector in jBoss

I have a Apache load balancer and a jBoss cluster serving it. Now I would like to add compression/gzip to the responses but so far I've only found how to enable it on the load balancer or on the http-connector in jBoss. Nothing about enabling it on…
Andreas Wederbrand
  • 38,065
  • 11
  • 68
  • 78
2
votes
2 answers

mod_jk utf-8 character set setup

I am running httpd + mod_jk + 2 tomcat servers in Ubuntu. When I submit a form in a non-Latin language I get garbage in the DB. If I submit the same form through Tomcat directly bypassing httpd everything looks good. following is my…
Meir Winston
  • 87
  • 2
  • 7
2
votes
2 answers

CF10 mod_jk.so won't load with RHEL 5.6 and Apache httpd 2.2.3

Does anyone have a solution to this... Running RHEL 5.6, with Apache httpd 2.2.3-65.el5_8 and get this error when trying to start the webserver: httpd: Syntax error on line 445 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of…
2
votes
1 answer

apache tomcat redirection error: worker1 connecting to backend failed

Getting the below logs when try to run servlet using apache tomcat integertaion. It says unable to connect to tomcat. Dont know why? Moreover, its trying to connect to 0.0.0.0:0 when I have
anujin
  • 773
  • 7
  • 24
  • 36
2
votes
1 answer

Setting up SSL at Apache for mod_jk to JBoss As

I have configured Apache to act as the load balancer to send http request to the JBoss. However trying to add https is proving difficult. I believe I need to use virtual host .I have the cert and key file needed , if anybody knows how to do…
Nohsib
  • 3,614
  • 14
  • 51
  • 63
1
vote
0 answers

Glassfish 3.1.1 cluster load balancing apache mod_jk windows 7 x64

I am using the following configuration: Glassfish 3.1.1 (zip version), apache 2.2.22, mod_jk 1.2.32 and Windows 7 x64. I've got 2 physical machines. On the 1st machine there is DAS, instance 1 of Glassfish, apache with mod_jk. On the second machine…
Nurjan
  • 5,889
  • 5
  • 34
  • 54
1
vote
1 answer

find out own public address from within tomcat

I have tomcat application (war file) which people can deploy as they wish. For example by using http/https connectors in Coyote, or using mod_jk/mod_proxy to let Apache handle incoming http/https. A problem that I am having is that I need to figure…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
1
vote
2 answers

REMOTE_USER not being set by Apache2?

I am working on a project using Netbeans with Glassfish 3.1 and am trying to implement LDAP authorization. To do so, I also have an LDAP-enabled Apache2 server using mod_jk. The gist is, when an user visits any page on the site in the /sng/…
ssell
  • 6,429
  • 2
  • 34
  • 49
1
vote
0 answers

How to implement communication between Java EE applications in the same way Apache HTTPD talks to Tomcat/JBoss using AJP?

I've been working on access management solution for an application (Java EE). Here is what I have currently: In the application I have a filter that checks whether specific HTTP headers are set and authenticates the user based on these values. The…
Tomasz Błachowicz
  • 5,731
  • 9
  • 41
  • 47
1
vote
0 answers

Apache DirectoryIndex, mod_jk, and trailing slashes

I appreciate any help with this Apache mod_jk configuration (not my area of expertise). I have setup mod_jk to front-end a tomcat service (kdxwiki), and that's working fine. However, I'm unable to get the JkUnMount directive to fully bypass an…
MikeW
  • 11
  • 1
1
vote
0 answers

how to deploying the war into (Apache + Glassfish)

I gonna use Glassfish behind the Apache Http Server, my question is how should I deploy my war into these servers? deploy on Apache? or seprate the contents of war to static and servlets/JPS(java) and deploy statics on Apache and other dynamic java…
Nav
  • 4,450
  • 10
  • 53
  • 84
1
vote
1 answer

Apache mod_jk and virtual hosts

I have configured apache with mod_jk, to redirect the /taste context to my application server. Now I would like to create a virtual host, so that my domain name redirects to this context. I tried the following configuration in httpd.conf…
kgautron
  • 7,915
  • 9
  • 39
  • 60