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;








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







                      Popular posts from this blog

                      Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                      Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                      What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company