Apache Tomcat webapps have to use a proxy Announcing the arrival of Valued Associate #679:...

Is grep documentation wrong?

What does "lightly crushed" mean for cardamon pods?

Circuit to "zoom in" on mV fluctuations of a DC signal?

Using et al. for a last / senior author rather than for a first author

When the Haste spell ends on a creature, do attackers have advantage against that creature?

Is this homebrew Lady of Pain warlock patron balanced?

What do you call the main part of a joke?

How do pianists reach extremely loud dynamics?

What is the meaning of the simile “quick as silk”?

If my PI received research grants from a company to be able to pay my postdoc salary, did I have a potential conflict interest too?

Most bit efficient text communication method?

What causes the direction of lightning flashes?

Wu formula for manifolds with boundary

Why wasn't DOSKEY integrated with COMMAND.COM?

Is there a kind of relay only consumes power when switching?

Maximum summed powersets with non-adjacent items

What are the out-of-universe reasons for the references to Toby Maguire-era Spider-Man in ITSV

What's the meaning of "fortified infraction restraint"?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Is it fair for a professor to grade us on the possession of past papers?

Is the Standard Deduction better than Itemized when both are the same amount?

Why are both D and D# fitting into my E minor key?

Did MS DOS itself ever use blinking text?

How could we fake a moon landing now?



Apache Tomcat webapps have to use a proxy



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Running Apache and Tomcat together on different subdomains?Can't complete dropbox installation from behind proxygnome-shell Doesn't read the system-wide proxy configuration when installing extensionsApache tomcat clusterHow to fix very slow network access through proxy after upgrading to 12.04Having some trouble authenticating via proxy in order to use apt-get successfully on a corporate networkERROR Tomcat: Apache - Java - Tomcat - CatalinaGit error: unable to connect to “…”Apache Tomcat 8.5.4 Ubuntu 16.04 not working!Tomcat 9 doesn't have tomcat.pid file





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I've installed Apache Tomcat and want to use a proxy for my webapps. Some apps request data from the internet, they don't have an own/internal possibility to use a proxy.



I added the following lines at the beginning of my startup.sh:



CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyHost=foo.bar" 
CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyPort=3128"


But these settings don't seem to work.



Server version: Apache Tomcat/7.0.34



JVM Version: 1.6.0_24-b24



Ubuntu 10.04.4










share|improve this question
















bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    I've installed Apache Tomcat and want to use a proxy for my webapps. Some apps request data from the internet, they don't have an own/internal possibility to use a proxy.



    I added the following lines at the beginning of my startup.sh:



    CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyHost=foo.bar" 
    CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyPort=3128"


    But these settings don't seem to work.



    Server version: Apache Tomcat/7.0.34



    JVM Version: 1.6.0_24-b24



    Ubuntu 10.04.4










    share|improve this question
















    bumped to the homepage by Community 12 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I've installed Apache Tomcat and want to use a proxy for my webapps. Some apps request data from the internet, they don't have an own/internal possibility to use a proxy.



      I added the following lines at the beginning of my startup.sh:



      CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyHost=foo.bar" 
      CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyPort=3128"


      But these settings don't seem to work.



      Server version: Apache Tomcat/7.0.34



      JVM Version: 1.6.0_24-b24



      Ubuntu 10.04.4










      share|improve this question
















      I've installed Apache Tomcat and want to use a proxy for my webapps. Some apps request data from the internet, they don't have an own/internal possibility to use a proxy.



      I added the following lines at the beginning of my startup.sh:



      CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyHost=foo.bar" 
      CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyPort=3128"


      But these settings don't seem to work.



      Server version: Apache Tomcat/7.0.34



      JVM Version: 1.6.0_24-b24



      Ubuntu 10.04.4







      java proxy tomcat






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 15 '13 at 19:54









      bender

      1,5711223




      1,5711223










      asked Jan 15 '13 at 18:09









      trolltroll

      10612




      10612





      bumped to the homepage by Community 12 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 12 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          please check if those catalina opts are loaded and where.
          It's safer to use java_opts , or create an environment variables JAVA_OPTS with that value "-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=8080 ".
          Also make sure you know what JRE is used. Sometimes tomcat loads one of his own.
          I used it in both ways and it worked. You can also setup the proxy dynamically at runtime, but that is nasty.



          Cheers, Nicu






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f243532%2fapache-tomcat-webapps-have-to-use-a-proxy%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            please check if those catalina opts are loaded and where.
            It's safer to use java_opts , or create an environment variables JAVA_OPTS with that value "-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=8080 ".
            Also make sure you know what JRE is used. Sometimes tomcat loads one of his own.
            I used it in both ways and it worked. You can also setup the proxy dynamically at runtime, but that is nasty.



            Cheers, Nicu






            share|improve this answer




























              0














              please check if those catalina opts are loaded and where.
              It's safer to use java_opts , or create an environment variables JAVA_OPTS with that value "-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=8080 ".
              Also make sure you know what JRE is used. Sometimes tomcat loads one of his own.
              I used it in both ways and it worked. You can also setup the proxy dynamically at runtime, but that is nasty.



              Cheers, Nicu






              share|improve this answer


























                0












                0








                0







                please check if those catalina opts are loaded and where.
                It's safer to use java_opts , or create an environment variables JAVA_OPTS with that value "-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=8080 ".
                Also make sure you know what JRE is used. Sometimes tomcat loads one of his own.
                I used it in both ways and it worked. You can also setup the proxy dynamically at runtime, but that is nasty.



                Cheers, Nicu






                share|improve this answer













                please check if those catalina opts are loaded and where.
                It's safer to use java_opts , or create an environment variables JAVA_OPTS with that value "-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=8080 ".
                Also make sure you know what JRE is used. Sometimes tomcat loads one of his own.
                I used it in both ways and it worked. You can also setup the proxy dynamically at runtime, but that is nasty.



                Cheers, Nicu







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 22 '13 at 8:48









                Nicolae PetrideanNicolae Petridean

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f243532%2fapache-tomcat-webapps-have-to-use-a-proxy%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

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...