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
3
votes
1 answer

How to represent question mark '?' in Apache mod_jk JkMount?

I have a question regarding mod_jk of Apache. I am writing a JkMount sentence which redirect a URL that contains a question mark to a worker. The syntax is something like: JkMount /jmx-console/?configuration …
Kevin
  • 5,972
  • 17
  • 63
  • 87
3
votes
2 answers

Use custom error page for Tomcat's 404 Page when using mod_jk and Apache httpd

We have setup like this: httpd <-> mod_jk (Tomcat) httpd is configured to forward all request to URL /app* to mod_jk. httpd is configured with custom error pages for HTTP errors 404, 500 etc. If user enters URL, http://hostname/non-existing-page…
Wand Maker
  • 18,476
  • 8
  • 53
  • 87
3
votes
2 answers

Application successfully deployed on Tomcat, but 404 error

I've deployed, after some struggle, a web-app on a (remote) Tomcat 5.5 server (Turnkey Linux comes with that). It is a GoogleWebToolkit web-app with a Java backend. Observing the logs everything went fine. The /manager app also shows 'running=true'…
Marten Sytema
  • 1,906
  • 3
  • 21
  • 29
3
votes
1 answer

Mod_jk workers - ipv4 / ipv6 /fqdn

I just set up our first machine with Ubuntu 16 LTS and Tomcat 8.5.11 + Apache/2.4.18, mod_jk/1.2.41. I was quiet familiar with Ubuntu 14 LTS, Tomcat 7.0.70 and Apache/2.4.7 mod_jk/1.2.37. Deploying my servlet seemed fine, no errors in tomcat or app…
insideAC
  • 41
  • 3
3
votes
2 answers

Apache httpd 2.2.x + mod_jk 1.2.30 + tomcat 6 Error: Could not find worker with name 'XXXXX' in uri map post processing

I am getting the following error while setting up the load balancer with two Tomcat instances: [info] mod_jk.c (3189): mod_jk/1.2.30 initialized [error] jk_uri_worker_map.c (506): Could not find worker with name 'loadmanager' in uri map post…
PushkarT
  • 157
  • 1
  • 3
  • 12
3
votes
2 answers

Failed to load resource: net::ERR_CONNECTION_RESET with Apache 2.4 and Chrome

I use an application behind a reverse proxy using Apache 2.4 (mod_jk). When I request some page, it takes forever to load, and won't eventually load at all. After investigation, I discovered some subtle JavaScript errors that are absent when…
3
votes
1 answer

apache2 tomcat7 with mod_jk dont work after system reboot

I have configured tomcat to run on port 80 with apache2 and mod_jk and this work well. If i reboot the system then the site will be the standart site from apache2. If i restart apache2 (/etc/init.d/apache2 restart) the site will come from tomcat.…
d3rbastl3r
  • 463
  • 1
  • 6
  • 16
3
votes
6 answers

"You must specify a valid --with-apxs path" when building mod_jk on ubuntu

I'm trying to build mod_jk for Apache on ubuntu, but when I issue: ./configure --with-apxs=/usr/local/apache/bin/apxs I got the following error: checking build system type... x86_64-unknown-linux-gnu checking host system type...…
bachr
  • 5,780
  • 12
  • 57
  • 92
3
votes
1 answer

mod_jk status page not working

I am doing clustering in Tomcat 7 with Apache server. It is working fine too. However I have the following issues: 1) I am trying to monitor the mod_jk status page; but it is giving 404 error. 2) in Log following error is shown - [Tue Dec 17…
Kumar
  • 955
  • 5
  • 20
  • 50
3
votes
1 answer

configuring tomat's server.xml file with auto generating mod_jk.conf

I am using apache (2.2.15) and tomcat6 (6.0.24) on CentOS 6.4 and would like to use the feature with tomcat server that generates the mod_jk.conf file automatically by adding:
GoinOff
  • 1,792
  • 1
  • 18
  • 37
3
votes
2 answers

HTTP response header not coming with apache-tomcat connection using mod_jk

I am using mod_jk and apache http server to forward my request to two tomcats and which are up and running just fine. I am using Chrome Browser plugin (Advanced Rest Client) to test this. When I make direct request to tomcat (port 8080), I get…
user578219
  • 597
  • 2
  • 9
  • 32
3
votes
2 answers

Linking Apache to Tomcat with multiple domains

Okay, so I've been working for a while on this, and have been searching, but so far I have not found any answers that actually answer what I want to know. I'm a little bit at the end of my rope with this one, but I'm hoping I can figure this out…
Royce Thigpen
  • 31
  • 1
  • 2
3
votes
1 answer

No principal in request after Apache basic authentication (basic-auth) with mod_jk

Environment Apache 2.2.13 connect to Tomcat 5.5 with mod_jk (ajp13). Apache requires basic-auth for "/" i.e. for all URLs it serves. Problem Once the request arrives at my app in Tomcat (it's a Servlet filter) request.getUserPrincipal() returns…
Marcel Stör
  • 22,695
  • 19
  • 92
  • 198
3
votes
2 answers

Mod_jk mounting all requests to tomcat except of two sites

I'm using mod_jk to make a java web application accessible through an apache webserver. My vhost.conf looks like this: JkMount /web/* worker1 JkMount /group/* worker1 JkMount /home/* worker1 JkMount /contact/* worker1 JkMount /customers/*…
user1879086
  • 53
  • 1
  • 5
3
votes
3 answers

Apache, mod_jk and JBoss Load Balancing issue

OK, I have been whacking my head in vain since the last three days over this, so time to take it up with the gurus! Background I'm trying to get an apparently simple setup working -- I have a CentOS box, on which I want to set-up two JBoss nodes…
pugmarx
  • 7,323
  • 3
  • 30
  • 40