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

Multi tool use
Multi tool use

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;








0















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"....










share|improve this question



















  • 1





    Did you enable required Apache modules ? a2enmod proxy a2enmod proxy_http ?

    – krisFR
    Feb 27 '15 at 15:00

















0















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"....










share|improve this question



















  • 1





    Did you enable required Apache modules ? a2enmod proxy a2enmod proxy_http ?

    – krisFR
    Feb 27 '15 at 15:00













0












0








0








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"....










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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










2 Answers
2






active

oldest

votes


















0














Not sure which OS you are using but it is customary to do the following:



  1. Enable the modules: a2enmod proxy a2enmod proxy_http.

  2. In your case, you want to use AJP so you probably have to install a thing or two (e.g. a2enmod proxy_ajp).

  3. 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





share|improve this answer






























    0














    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





    share|improve this answer























      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
      );



      );













      draft saved

      draft discarded


















      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









      0














      Not sure which OS you are using but it is customary to do the following:



      1. Enable the modules: a2enmod proxy a2enmod proxy_http.

      2. In your case, you want to use AJP so you probably have to install a thing or two (e.g. a2enmod proxy_ajp).

      3. 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





      share|improve this answer



























        0














        Not sure which OS you are using but it is customary to do the following:



        1. Enable the modules: a2enmod proxy a2enmod proxy_http.

        2. In your case, you want to use AJP so you probably have to install a thing or two (e.g. a2enmod proxy_ajp).

        3. 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





        share|improve this answer

























          0












          0








          0







          Not sure which OS you are using but it is customary to do the following:



          1. Enable the modules: a2enmod proxy a2enmod proxy_http.

          2. In your case, you want to use AJP so you probably have to install a thing or two (e.g. a2enmod proxy_ajp).

          3. 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





          share|improve this answer













          Not sure which OS you are using but it is customary to do the following:



          1. Enable the modules: a2enmod proxy a2enmod proxy_http.

          2. In your case, you want to use AJP so you probably have to install a thing or two (e.g. a2enmod proxy_ajp).

          3. 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






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 27 '15 at 23:53









          ETLETL

          5,52212044




          5,52212044























              0














              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





              share|improve this answer



























                0














                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





                share|improve this answer

























                  0












                  0








                  0







                  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





                  share|improve this answer













                  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






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 3 at 8:12









                  FreddyFreddy

                  72119




                  72119



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      NRssZbQG,o n9UBmZFVNjpBs1sW2xBHr3JN0f8,Ihw7BNJbk6iQ,ZV8rQCx,gbkSnmXW JvXvJ4 hayJ0VSVWHBOYeS3,nQwANg
                      U4,YEi8Wb g2UAH

                      Popular posts from this blog

                      RemoteApp sporadic failureWindows 2008 RemoteAPP client disconnects within a matter of minutesWhat is the minimum version of RDP supported by Server 2012 RDS?How to configure a Remoteapp server to increase stabilityMicrosoft RemoteApp Active SessionRDWeb TS connection broken for some users post RemoteApp certificate changeRemote Desktop Licensing, RemoteAPPRDS 2012 R2 some users are not able to logon after changed date and time on Connection BrokersWhat happens during Remote Desktop logon, and is there any logging?After installing RDS on WinServer 2016 I still can only connect with two users?RD Connection via RDGW to Session host is not connecting

                      Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                      Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020