Tomcat Clustering With Apache-[warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy The 2019 Stack Overflow Developer Survey Results Are InWhich are the required modules in httpd.conf for a Dedicated Server?Apache redirection issue with httpsApache2 reverse proxy seems to intermittently freeze?proxy pass domain FROM default apache port 80 TO nginx on another portApache Memory Corruption in Strace“No protocol handler valid for the URL” with httpd mod_proxy_balancerApache mod_proxy with Tomcat 8.5 using http2Static Tomcat Cluster become unresponsive on a JDBC procedure callmod_proxy_http can not be enabledApache mod_proxy balancer config issue with POST request
Does duplicating a spell with Wish count as casting that spell?
Is there a name of the flying bionic bird?
The difference between dialogue marks
Geography at the pixel level
Output the Arecibo Message
Why do I get badly formatted numerical results when I use StringForm?
Access elements in std::string where positon of string is greater than its size
What does "rabbited" mean/imply in this sentence?
Is flight data recorder erased after every flight?
Deadlock Graph and Interpretation, solution to avoid
Could JWST stay at L2 "forever"?
Can't find the latex code for the ⍎ (down tack jot) symbol
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
What tool would a Roman-age civilization have to grind silver and other metals into dust?
Are USB sockets on wall outlets live all the time, even when the switch is off?
Why isn't airport relocation done gradually?
How to create dashed lines/arrows in Illustrator
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
Return to UK after being refused
Is an up-to-date browser secure on an out-of-date OS?
How long do I have to send my income tax payment to the IRS?
How come people say “Would of”?
How are circuits which use complex ICs normally simulated?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Tomcat Clustering With Apache-[warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy
The 2019 Stack Overflow Developer Survey Results Are InWhich are the required modules in httpd.conf for a Dedicated Server?Apache redirection issue with httpsApache2 reverse proxy seems to intermittently freeze?proxy pass domain FROM default apache port 80 TO nginx on another portApache Memory Corruption in Strace“No protocol handler valid for the URL” with httpd mod_proxy_balancerApache mod_proxy with Tomcat 8.5 using http2Static Tomcat Cluster become unresponsive on a JDBC procedure callmod_proxy_http can not be enabledApache mod_proxy balancer config issue with POST request
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am new to apache and tomcat, and trying to implement clustering with mod_proxy and able get run multiple tomcat instances but got stuck. Here is my config:
httpd.conf:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
</Proxy>
ProxyPass / balancer://testcluster/
When restarting apache its showing the following in error.log:
[Fri Feb 27 16:45:44 2015] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Fri Feb 27 16:46:48 2015] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
And also my server.xml of two instances has set to jvmRoute="server1" and jvmRoute="server1"....
apache-2.2 tomcat cluster mod-proxy proxypass
add a comment |
I am new to apache and tomcat, and trying to implement clustering with mod_proxy and able get run multiple tomcat instances but got stuck. Here is my config:
httpd.conf:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
</Proxy>
ProxyPass / balancer://testcluster/
When restarting apache its showing the following in error.log:
[Fri Feb 27 16:45:44 2015] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Fri Feb 27 16:46:48 2015] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
And also my server.xml of two instances has set to jvmRoute="server1" and jvmRoute="server1"....
apache-2.2 tomcat cluster mod-proxy proxypass
1
Did you enable required Apache modules ?a2enmod proxy
a2enmod proxy_http
?
– krisFR
Feb 27 '15 at 15:00
add a comment |
I am new to apache and tomcat, and trying to implement clustering with mod_proxy and able get run multiple tomcat instances but got stuck. Here is my config:
httpd.conf:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
</Proxy>
ProxyPass / balancer://testcluster/
When restarting apache its showing the following in error.log:
[Fri Feb 27 16:45:44 2015] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Fri Feb 27 16:46:48 2015] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
And also my server.xml of two instances has set to jvmRoute="server1" and jvmRoute="server1"....
apache-2.2 tomcat cluster mod-proxy proxypass
I am new to apache and tomcat, and trying to implement clustering with mod_proxy and able get run multiple tomcat instances but got stuck. Here is my config:
httpd.conf:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
</Proxy>
ProxyPass / balancer://testcluster/
When restarting apache its showing the following in error.log:
[Fri Feb 27 16:45:44 2015] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Fri Feb 27 16:46:48 2015] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
And also my server.xml of two instances has set to jvmRoute="server1" and jvmRoute="server1"....
apache-2.2 tomcat cluster mod-proxy proxypass
apache-2.2 tomcat cluster mod-proxy proxypass
edited Feb 27 '15 at 11:36
BE77Y
2,36031422
2,36031422
asked Feb 27 '15 at 11:30
goodyzaingoodyzain
1014
1014
1
Did you enable required Apache modules ?a2enmod proxy
a2enmod proxy_http
?
– krisFR
Feb 27 '15 at 15:00
add a comment |
1
Did you enable required Apache modules ?a2enmod proxy
a2enmod proxy_http
?
– krisFR
Feb 27 '15 at 15:00
1
1
Did you enable required Apache modules ?
a2enmod proxy
a2enmod proxy_http
?– krisFR
Feb 27 '15 at 15:00
Did you enable required Apache modules ?
a2enmod proxy
a2enmod proxy_http
?– krisFR
Feb 27 '15 at 15:00
add a comment |
2 Answers
2
active
oldest
votes
Not sure which OS you are using but it is customary to do the following:
- Enable the modules:
a2enmod proxy
a2enmod proxy_http
. - In your case, you want to use AJP so you probably have to install a thing or two (e.g.
a2enmod proxy_ajp
). - In your Virtual Host (you can do
http.conf
but it's not the most flexible way).
This is what you have copied from your question:
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/
This is how I do it (not much different):
<Proxy balancer://testcluster >
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/ stickysession=JSESSIONID
add a comment |
I know this is an old question, but maybe the answer is helpful to others.
The module names of the last two loaded modules are wrong. mod_proxy_ajp.so
is loaded as proxy_module
and mod_proxy_balancer.so
as proxy_http_module
.
wrong:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
right:
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f671857%2ftomcat-clustering-with-apache-warn-proxy-no-protocol-handler-was-valid-for-th%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Not sure which OS you are using but it is customary to do the following:
- Enable the modules:
a2enmod proxy
a2enmod proxy_http
. - In your case, you want to use AJP so you probably have to install a thing or two (e.g.
a2enmod proxy_ajp
). - In your Virtual Host (you can do
http.conf
but it's not the most flexible way).
This is what you have copied from your question:
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/
This is how I do it (not much different):
<Proxy balancer://testcluster >
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/ stickysession=JSESSIONID
add a comment |
Not sure which OS you are using but it is customary to do the following:
- Enable the modules:
a2enmod proxy
a2enmod proxy_http
. - In your case, you want to use AJP so you probably have to install a thing or two (e.g.
a2enmod proxy_ajp
). - In your Virtual Host (you can do
http.conf
but it's not the most flexible way).
This is what you have copied from your question:
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/
This is how I do it (not much different):
<Proxy balancer://testcluster >
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/ stickysession=JSESSIONID
add a comment |
Not sure which OS you are using but it is customary to do the following:
- Enable the modules:
a2enmod proxy
a2enmod proxy_http
. - In your case, you want to use AJP so you probably have to install a thing or two (e.g.
a2enmod proxy_ajp
). - In your Virtual Host (you can do
http.conf
but it's not the most flexible way).
This is what you have copied from your question:
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/
This is how I do it (not much different):
<Proxy balancer://testcluster >
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/ stickysession=JSESSIONID
Not sure which OS you are using but it is customary to do the following:
- Enable the modules:
a2enmod proxy
a2enmod proxy_http
. - In your case, you want to use AJP so you probably have to install a thing or two (e.g.
a2enmod proxy_ajp
). - In your Virtual Host (you can do
http.conf
but it's not the most flexible way).
This is what you have copied from your question:
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/
This is how I do it (not much different):
<Proxy balancer://testcluster >
BalancerMember ajp://localhost:8109 min=10 max=100 route=server1 loadfactor=1
BalancerMember ajp://localhost:8209 min=20 max=200 route=server2 loadfactor=1
<Proxy>
ProxyPass / balancer://testcluster/ stickysession=JSESSIONID
answered Feb 27 '15 at 23:53
ETLETL
5,52212044
5,52212044
add a comment |
add a comment |
I know this is an old question, but maybe the answer is helpful to others.
The module names of the last two loaded modules are wrong. mod_proxy_ajp.so
is loaded as proxy_module
and mod_proxy_balancer.so
as proxy_http_module
.
wrong:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
right:
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
add a comment |
I know this is an old question, but maybe the answer is helpful to others.
The module names of the last two loaded modules are wrong. mod_proxy_ajp.so
is loaded as proxy_module
and mod_proxy_balancer.so
as proxy_http_module
.
wrong:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
right:
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
add a comment |
I know this is an old question, but maybe the answer is helpful to others.
The module names of the last two loaded modules are wrong. mod_proxy_ajp.so
is loaded as proxy_module
and mod_proxy_balancer.so
as proxy_http_module
.
wrong:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
right:
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
I know this is an old question, but maybe the answer is helpful to others.
The module names of the last two loaded modules are wrong. mod_proxy_ajp.so
is loaded as proxy_module
and mod_proxy_balancer.so
as proxy_http_module
.
wrong:
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_balancer.so
right:
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
answered Mar 3 at 8:12
FreddyFreddy
72119
72119
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f671857%2ftomcat-clustering-with-apache-warn-proxy-no-protocol-handler-was-valid-for-th%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Did you enable required Apache modules ?
a2enmod proxy
a2enmod proxy_http
?– krisFR
Feb 27 '15 at 15:00