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
2 answers

Load balancing with Apache and Tomcat combined with URL redirect

I now have one Apache server and two Tomcat servers. They are connected using mod_jk module. And the load balancing is configured. All request will be redirected to the loadbalancer, in httpd.conf: JKMount /* controller The controller is the…
platinor
  • 847
  • 1
  • 9
  • 15
3
votes
0 answers

Glassfish 3.1.2 Apache2 loadbalancing with mod_jk

We are using glassfish 3.1.2 which is loadbalanced by Apache with mod_jk however, when I turn on the ping_mode to C or A it does not work, it just says [Wed May 09 08:17:05 2012] [15033:140400029296384] [info]…
EpicOfChaos
  • 822
  • 11
  • 23
3
votes
2 answers

Apache subdomain redirect into Tomcat

I'm pretty new to Apache HTTP, and sysadmin-ing in general, so i have this question I have a domain (www.doamin.com) with an Apache listening to port 80, also I have an Apache Tomcat on the same domain configured to port 8080. Is there a way to…
Pavel 'PK' Kaminsky
  • 796
  • 1
  • 10
  • 22
2
votes
1 answer

how can I use sticky sessions with mod_jk when the sessionid is in a hidden form field?

I want to use load balancing with Apache mod_jk module. I have installed Apache 2.2 and coresponding mod_jk module. Additionally I'm running to Tomcat 7 instances. My application running on the Tomcat produces a session-id in a hidden form field…
Dirk66
  • 29
  • 1
  • 3
2
votes
2 answers

glassfish + jk + large file/strange response

I use a Glassfish-ApplicationServer for a Webapplication. The Glassfish is connected with mod_jk to a Apache2-Server. Now there is a really strange behavior: Some Parts of the received Files (html, css, js, ...) are missing and there are strange…
Knox
  • 233
  • 3
  • 9
2
votes
1 answer

Can Tomcat tell mod_jk's load balancer to use another worker when overloaded? If so, how?

Can Tomcat tell mod_jk's load balancer to use another worker when overloaded? If so, how? I use Kodo JDO for my persistence layer of a multi-tenant application and a big factor in memory usage is the schema information loaded per database. Every…
Alain O'Dea
  • 21,033
  • 1
  • 58
  • 84
2
votes
0 answers

Request entity too large 413 apache tomcat

Request entity too large The requested resource /some/url/path/on/server does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit. I get a corresponding error in my mod_jk.log file which…
ddjammin
  • 123
  • 3
  • 11
2
votes
1 answer

no-jk Equivalent in mod_proxy

I've always used Apache + Tomcat via mod_jk. To tell Apache not to forward /recources to Tomcat, you just put this in vhosts: SetEnvIf Request_URI "/resources/*" no-jk How do you do the same thing with mod_proxy. If it matters, I'm using the…
Brad Rhoads
  • 1,828
  • 3
  • 29
  • 52
2
votes
1 answer

Can jetty integrate with Apache similar to hot Tomcat does with mod_jk?

AS the question says "Can jetty integrate with Apache similar to hot Tomcat does with mod_jk?" We are really looking to leave Tomcat.
benstpierre
  • 32,833
  • 51
  • 177
  • 288
2
votes
1 answer

Should Tomcat 6 AJP keep its threads in keepalive state with mod_jk?

I've recently switched my Tomcat server to use AJP fronted by Apache. In the manager I'm seeing: Stage Time B Sent B Recv Client VHost Request K 15395557 ms ? ? 67.195.114.27 ? ? K 15859951 ms ? ? 119.63.196.73 ? …
Sarge
  • 2,367
  • 2
  • 23
  • 36
2
votes
2 answers

Losing Session Id Every Request in Spring 3 MVC Application with Proxy by Apache

I have a web application which I am setting up a shopping cart for; the application serves many different websites, each with it's own domain. Virtual Hosts are used to forward each domain to the Tomcat 6 server as well as set the path to that…
walnutmon
  • 5,873
  • 7
  • 42
  • 57
2
votes
1 answer

How to hide application context in its URL with Tomcat?

I have a number of applications running in Tomcat. Every one has its own context. I hooked them all to different domain names with Apache HTTP Server and mod_jk (see more details at this question: How to mount context-referenced Tomcat application…
yegor256
  • 102,010
  • 123
  • 446
  • 597
2
votes
2 answers

what does "possible SYN flooding on port 8009. Sending cookies" mean in /var/log/messages?

I have a web application setup apache+mod_jk+tomcat(connector for mod_jk on 8009 port). Recently my app started to hang few times a day and in /var/logs/messages there are entries like "possible SYN flooding on port 8009. Sending cookies" with 30-60…
taras
  • 2,223
  • 5
  • 36
  • 43
2
votes
1 answer

Unable to start Apache server (2.4) on Windows system (64 bit) using mod_jk connector

Downloaded Tomcat7 binaries for 64 bit Downloaded Apache server (2.4.X) binaries for 64 bit Downloaded mod_jk.so binaries for win64 and placed that into "D:/apache24/modules" folder Created "workers.properties" and "mod_jk.conf" files and copied…
bhaumik barad
  • 21
  • 1
  • 3
2
votes
1 answer

Mod_Jk Load balancing

I tried everything possible to make Mod_jk work with no success. I tried multiple Apache downloads, tried every recommendation I could find including checking for special characters... both Apache and Tomcat are working as anticipated but still no…
JoeThomas
  • 23
  • 3