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
1
vote
1 answer

Apache+Tomcat+jk: serving static resources in a Java EE web app

I recently installed Apache w/s + Tomcat and using jk was able to route requests from apache to t/c. The examples on the net are usually of the form: JkMount /*.jsp myTC We have several Java EE applications running on a single instance of tomcat…
kmansoor
  • 4,265
  • 9
  • 52
  • 95
1
vote
2 answers

Measuring Request processing time at JBoss server using Mod_JK

My web application architecture is: Apache 2 (as load balancer) + JBoss 3.2.3 + MySQL 5.0.19. I want to: measure the request processing time (for every individual request) spent on the JBoss server only (i.e., excluding time spent on Web and…
1
vote
1 answer

Glassfish Httpd error bad gateway

I have deployed Apache Roller 5 on glassfishv3 which httpd as front end. Roller have running works fine, but it's often like bad gateway when i accessed it. i this case, configuration on woker properties like…
troya_adromeda
  • 647
  • 4
  • 15
  • 33
1
vote
0 answers

Apache/Tomcat/mod_jk. How to make several urls to point to different tomcat instances?

My case: I have several webapps running on my tomcat server like this: demo.myserver.com/application1 demo.myserver.com/application2 demo.myserver.com/application3 This is what I want: Application1.mydomain.com to point to…
Xela
  • 11
  • 1
1
vote
2 answers

How do I compile Tomcat mod_jk on a MacBook Pro M1 chip?

I have Homebrew Apache installed and trying to connect Coldfusion Server 2016 with Tomcat mod_jk. I downloaded the source code from https://tomcat.apache.org/download-connectors.cgi I followed the directions to compile it, tried few different ways,…
felix822
  • 15
  • 5
1
vote
1 answer

the relationship between connection_pool_size and tp-processor?

apache2 workers.properties: worker.node223.connection_pool_size=100 worker.node223.connection_pool_minsize=50 tomcat server.xml:
norbert
  • 152
  • 2
  • 12
1
vote
1 answer

How can I make a rewrite-condition dependent on the result of a servlet/jsp?

We have Apache on top of JBoss serving either web or mobile app. We are currently using Apache mod-rewrite to decide where to forward the user to web or mobile (and mod-jk to mount to JBoss), based on regular expressions matching of user-agent, but…
Hagai Cibulski
  • 4,421
  • 3
  • 20
  • 23
1
vote
1 answer

apache/Tomcat: Tomcats on backend cannot be reached by apache using mod_jk

Trying to configure Tomcat8.5 as backend and Apache2.4 for receiving requests to redirect it to tomcat via ajp port on Linux/CentOS. The tomcats can be reached directly via Port. 8181, 8282, 8383 and apache works as well fine. However, I cannot…
ng-User
  • 243
  • 1
  • 6
  • 18
1
vote
1 answer

Mod_jk and Tomcat stuck at Sending Reply

Currently, the server at work is underperforming and the way it's set up is not ideal either. For this reason I'm trying to find a new way to do things that will hopefully help with both, performance and deployment. The approach I decided for is to…
Jetto Martínez
  • 917
  • 7
  • 17
1
vote
0 answers

Unable to setup mod_jk Tomcat

Server version: Apache Tomcat/8.5.54 OS= CentOS Plesk Onyx 17.* How I configured: Installed Java & Tomcat from this LINK Compiled mod_jk successfully workers.properties vi /etc/httpd/conf/workers.properties worker.list=worker1 #define…
1
vote
1 answer

mod_jk not able to connect Apache and tomcat

I am not able to connect my Apache to tomcat servers. Below are the version details. mod_jk/1.2.39 Apache-2.4.41 tomcat-9.0.31 I have created Workers.properties file and mentioned my hostname and AJP port i.e. 8009 and also enabled Ajp connectors…
Anshu
  • 69
  • 2
  • 18
1
vote
1 answer

Issue while compiling the Mod_JK 1.2.46

I have compiled for the first time Mod_jk 1.2.46 version and patched my project files. There are no errors but the following info looks like a possible issue: [info] ajp_process_callback::jk_ajp_common.c (2074): (ajp13) Writing to client aborted or…
pesubbia
  • 11
  • 4
1
vote
2 answers

Tomcat is probably not started or is listening on the wrong port (errno=13)

I have created two tomcat instances and changed the AJP port as below. Then I have edited the worker.properties and add this port as…
Java-Seekar
  • 1,720
  • 5
  • 30
  • 52
1
vote
0 answers

unable to start apache httpd server with jk_module

My apache httpd server version is 2.4. I am unable to start after I place mod_jk module in the modules folder. I want to try load balancing tomcat instances with the mod_jk connector and for this purpose I have installed and set an apache httpd…
JayD
  • 748
  • 1
  • 13
  • 38
1
vote
1 answer

Apache HTTP / mod_jk only working when one worker is active

I added the following mod-jk.conf file and include it in httpd.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" JkOptions…