Apache Tomcat not working Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionApache and Tomcat integrationapache, tomcat context pathRunning Apache with TomcatTomcat 8 doesn't startCan't connect to Tomcat on port 8080 (port 80 works)Is it this Tomcat server correctly running? Why it seems that it is not listening on the 8080 port?How to install Apache Tomcat 8 on centos 7?How to config HTTPS on Apache tomcatApache, Tomcat : Loadbalancing not working, failed to connect with TomcatApache, Tomcat : Load balancing not working with 2nd server

Mortgage adviser recommends a longer term than necessary combined with overpayments

What's the point in a preamp?

New Order #5: where Fibonacci and Beatty meet at Wythoff

Strange behaviour of Check

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Do working physicists consider Newtonian mechanics to be "falsified"?

Unexpected result with right shift after bitwise negation

Antler Helmet: Can it work?

Can the prologue be the backstory of your main character?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Estimated State payment too big --> money back; + 2018 Tax Reform

Do we know why communications with Beresheet and NASA were lost during the attempted landing of the Moon lander?

What was the last x86 CPU that did not have the x87 floating-point unit built in?

How to say that you spent the night with someone, you were only sleeping and nothing else?

What do you call a plan that's an alternative plan in case your initial plan fails?

Is there a service that would inform me whenever a new direct route is scheduled from a given airport?

What's the difference between (size_t)-1 and ~0?

Can smartphones with the same camera sensor have different image quality?

Why is "Captain Marvel" translated as male in Portugal?

I'm thinking of a number

Stop battery usage [Ubuntu 18]

Was credit for the black hole image misattributed?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Using "nakedly" instead of "with nothing on"



Apache Tomcat not working



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionApache and Tomcat integrationapache, tomcat context pathRunning Apache with TomcatTomcat 8 doesn't startCan't connect to Tomcat on port 8080 (port 80 works)Is it this Tomcat server correctly running? Why it seems that it is not listening on the 8080 port?How to install Apache Tomcat 8 on centos 7?How to config HTTPS on Apache tomcatApache, Tomcat : Loadbalancing not working, failed to connect with TomcatApache, Tomcat : Load balancing not working with 2nd server



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








1















I have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to Connect. I have also tried changing the connector port in the tomcat server config but still unable to connect.



etc/profile



PATH=/usr/local/jdk1.8.0/bin:$PATH
JRE_HOME=/usr/local/jdk1.8.0/jre/bin
CATALINA_HOME=/media/new/softwares/Tomcat/apache-tomcat-8.0.5/

export PATH
export JRE_HOME
export CATALINA_HOME


host file



127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6


terminal on starting Tomcat



Using CATALINA_BASE: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
Using CATALINA_HOME: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
Using CATALINA_TMPDIR: /media/new/softwares/Tomcat/apache-tomcat-8.0.5/temp
Using JRE_HOME: /usr/local/jdk1.8.0/jre/bin
Using CLASSPATH: /media/new/softwares/Tomcat/apache-tomcat 8.0.5/bin/bootstrap.jar:/media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/tomcat-juli.jar
Tomcat started.


tomcat's log



/media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory









share|improve this question






























    1















    I have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to Connect. I have also tried changing the connector port in the tomcat server config but still unable to connect.



    etc/profile



    PATH=/usr/local/jdk1.8.0/bin:$PATH
    JRE_HOME=/usr/local/jdk1.8.0/jre/bin
    CATALINA_HOME=/media/new/softwares/Tomcat/apache-tomcat-8.0.5/

    export PATH
    export JRE_HOME
    export CATALINA_HOME


    host file



    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6


    terminal on starting Tomcat



    Using CATALINA_BASE: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
    Using CATALINA_HOME: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
    Using CATALINA_TMPDIR: /media/new/softwares/Tomcat/apache-tomcat-8.0.5/temp
    Using JRE_HOME: /usr/local/jdk1.8.0/jre/bin
    Using CLASSPATH: /media/new/softwares/Tomcat/apache-tomcat 8.0.5/bin/bootstrap.jar:/media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/tomcat-juli.jar
    Tomcat started.


    tomcat's log



    /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory









    share|improve this question


























      1












      1








      1








      I have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to Connect. I have also tried changing the connector port in the tomcat server config but still unable to connect.



      etc/profile



      PATH=/usr/local/jdk1.8.0/bin:$PATH
      JRE_HOME=/usr/local/jdk1.8.0/jre/bin
      CATALINA_HOME=/media/new/softwares/Tomcat/apache-tomcat-8.0.5/

      export PATH
      export JRE_HOME
      export CATALINA_HOME


      host file



      127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
      ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6


      terminal on starting Tomcat



      Using CATALINA_BASE: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
      Using CATALINA_HOME: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
      Using CATALINA_TMPDIR: /media/new/softwares/Tomcat/apache-tomcat-8.0.5/temp
      Using JRE_HOME: /usr/local/jdk1.8.0/jre/bin
      Using CLASSPATH: /media/new/softwares/Tomcat/apache-tomcat 8.0.5/bin/bootstrap.jar:/media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/tomcat-juli.jar
      Tomcat started.


      tomcat's log



      /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory









      share|improve this question
















      I have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to Connect. I have also tried changing the connector port in the tomcat server config but still unable to connect.



      etc/profile



      PATH=/usr/local/jdk1.8.0/bin:$PATH
      JRE_HOME=/usr/local/jdk1.8.0/jre/bin
      CATALINA_HOME=/media/new/softwares/Tomcat/apache-tomcat-8.0.5/

      export PATH
      export JRE_HOME
      export CATALINA_HOME


      host file



      127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
      ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6


      terminal on starting Tomcat



      Using CATALINA_BASE: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
      Using CATALINA_HOME: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
      Using CATALINA_TMPDIR: /media/new/softwares/Tomcat/apache-tomcat-8.0.5/temp
      Using JRE_HOME: /usr/local/jdk1.8.0/jre/bin
      Using CLASSPATH: /media/new/softwares/Tomcat/apache-tomcat 8.0.5/bin/bootstrap.jar:/media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/tomcat-juli.jar
      Tomcat started.


      tomcat's log



      /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory






      centos java tomcat






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 17 hours ago









      Rui F Ribeiro

      42.1k1483142




      42.1k1483142










      asked Mar 28 '14 at 23:02









      UDBUDB

      108114




      108114




















          4 Answers
          4






          active

          oldest

          votes


















          1














          Seems pretty cut and dry. You don't have Java installed. Or at least it isn't in the location that Tomcat is looking.




          /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory




          You'll need to to go www.java.com and download JDK 1.8.0 or some version of Java and install it to /usr/local/... and then change the configurations around in Tomcat so that it can find Java.






          share|improve this answer























          • I have java installed command java -version shows java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode). Can you tell me how to change Tomcat configuration to let it find java

            – UDB
            Mar 29 '14 at 8:03











          • Try setting the variable $JDK_HOME, and exporting it similar to the other variables.

            – slm
            Mar 29 '14 at 12:48


















          0














          This path of JDK exist? Give more information about this JDK if you see this error message :



          /usr/local/jdk1.8.0/jre/**bin/bin**/java


          There are two /bin/bin maybe this is the error. If jdk exists, try to use this config:



          Using JRE_HOME: /usr/local/jdk1.8.0/jre





          share|improve this answer
































            0














            I was also facing same problem and found that is was because catalina.sh not figure out jre path. So solved by setting following path variables :



            export JAVA_HOME="/usr/java/jdk1.8.0_25"



            export JRE_HOME=/usr/java/jdk1.8.0_25/jre






            share|improve this answer






























              -1














              You should set JAVA_HOME=/usr/local/jdk1.8.0 or JRE_HOME=/usr/local/jdk1.8.0/jre






              share|improve this answer

























                Your Answer








                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "106"
                ;
                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: false,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                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%2funix.stackexchange.com%2fquestions%2f122045%2fapache-tomcat-not-working%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                1














                Seems pretty cut and dry. You don't have Java installed. Or at least it isn't in the location that Tomcat is looking.




                /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory




                You'll need to to go www.java.com and download JDK 1.8.0 or some version of Java and install it to /usr/local/... and then change the configurations around in Tomcat so that it can find Java.






                share|improve this answer























                • I have java installed command java -version shows java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode). Can you tell me how to change Tomcat configuration to let it find java

                  – UDB
                  Mar 29 '14 at 8:03











                • Try setting the variable $JDK_HOME, and exporting it similar to the other variables.

                  – slm
                  Mar 29 '14 at 12:48















                1














                Seems pretty cut and dry. You don't have Java installed. Or at least it isn't in the location that Tomcat is looking.




                /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory




                You'll need to to go www.java.com and download JDK 1.8.0 or some version of Java and install it to /usr/local/... and then change the configurations around in Tomcat so that it can find Java.






                share|improve this answer























                • I have java installed command java -version shows java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode). Can you tell me how to change Tomcat configuration to let it find java

                  – UDB
                  Mar 29 '14 at 8:03











                • Try setting the variable $JDK_HOME, and exporting it similar to the other variables.

                  – slm
                  Mar 29 '14 at 12:48













                1












                1








                1







                Seems pretty cut and dry. You don't have Java installed. Or at least it isn't in the location that Tomcat is looking.




                /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory




                You'll need to to go www.java.com and download JDK 1.8.0 or some version of Java and install it to /usr/local/... and then change the configurations around in Tomcat so that it can find Java.






                share|improve this answer













                Seems pretty cut and dry. You don't have Java installed. Or at least it isn't in the location that Tomcat is looking.




                /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory




                You'll need to to go www.java.com and download JDK 1.8.0 or some version of Java and install it to /usr/local/... and then change the configurations around in Tomcat so that it can find Java.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 29 '14 at 3:12









                slmslm

                256k71544690




                256k71544690












                • I have java installed command java -version shows java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode). Can you tell me how to change Tomcat configuration to let it find java

                  – UDB
                  Mar 29 '14 at 8:03











                • Try setting the variable $JDK_HOME, and exporting it similar to the other variables.

                  – slm
                  Mar 29 '14 at 12:48

















                • I have java installed command java -version shows java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode). Can you tell me how to change Tomcat configuration to let it find java

                  – UDB
                  Mar 29 '14 at 8:03











                • Try setting the variable $JDK_HOME, and exporting it similar to the other variables.

                  – slm
                  Mar 29 '14 at 12:48
















                I have java installed command java -version shows java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode). Can you tell me how to change Tomcat configuration to let it find java

                – UDB
                Mar 29 '14 at 8:03





                I have java installed command java -version shows java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode). Can you tell me how to change Tomcat configuration to let it find java

                – UDB
                Mar 29 '14 at 8:03













                Try setting the variable $JDK_HOME, and exporting it similar to the other variables.

                – slm
                Mar 29 '14 at 12:48





                Try setting the variable $JDK_HOME, and exporting it similar to the other variables.

                – slm
                Mar 29 '14 at 12:48













                0














                This path of JDK exist? Give more information about this JDK if you see this error message :



                /usr/local/jdk1.8.0/jre/**bin/bin**/java


                There are two /bin/bin maybe this is the error. If jdk exists, try to use this config:



                Using JRE_HOME: /usr/local/jdk1.8.0/jre





                share|improve this answer





























                  0














                  This path of JDK exist? Give more information about this JDK if you see this error message :



                  /usr/local/jdk1.8.0/jre/**bin/bin**/java


                  There are two /bin/bin maybe this is the error. If jdk exists, try to use this config:



                  Using JRE_HOME: /usr/local/jdk1.8.0/jre





                  share|improve this answer



























                    0












                    0








                    0







                    This path of JDK exist? Give more information about this JDK if you see this error message :



                    /usr/local/jdk1.8.0/jre/**bin/bin**/java


                    There are two /bin/bin maybe this is the error. If jdk exists, try to use this config:



                    Using JRE_HOME: /usr/local/jdk1.8.0/jre





                    share|improve this answer















                    This path of JDK exist? Give more information about this JDK if you see this error message :



                    /usr/local/jdk1.8.0/jre/**bin/bin**/java


                    There are two /bin/bin maybe this is the error. If jdk exists, try to use this config:



                    Using JRE_HOME: /usr/local/jdk1.8.0/jre






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Mar 29 '14 at 1:14









                    slm

                    256k71544690




                    256k71544690










                    answered Mar 28 '14 at 23:55









                    ttuxttux

                    1




                    1





















                        0














                        I was also facing same problem and found that is was because catalina.sh not figure out jre path. So solved by setting following path variables :



                        export JAVA_HOME="/usr/java/jdk1.8.0_25"



                        export JRE_HOME=/usr/java/jdk1.8.0_25/jre






                        share|improve this answer



























                          0














                          I was also facing same problem and found that is was because catalina.sh not figure out jre path. So solved by setting following path variables :



                          export JAVA_HOME="/usr/java/jdk1.8.0_25"



                          export JRE_HOME=/usr/java/jdk1.8.0_25/jre






                          share|improve this answer

























                            0












                            0








                            0







                            I was also facing same problem and found that is was because catalina.sh not figure out jre path. So solved by setting following path variables :



                            export JAVA_HOME="/usr/java/jdk1.8.0_25"



                            export JRE_HOME=/usr/java/jdk1.8.0_25/jre






                            share|improve this answer













                            I was also facing same problem and found that is was because catalina.sh not figure out jre path. So solved by setting following path variables :



                            export JAVA_HOME="/usr/java/jdk1.8.0_25"



                            export JRE_HOME=/usr/java/jdk1.8.0_25/jre







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 17 '14 at 8:18









                            Manish PrajapatiManish Prajapati

                            101




                            101





















                                -1














                                You should set JAVA_HOME=/usr/local/jdk1.8.0 or JRE_HOME=/usr/local/jdk1.8.0/jre






                                share|improve this answer





























                                  -1














                                  You should set JAVA_HOME=/usr/local/jdk1.8.0 or JRE_HOME=/usr/local/jdk1.8.0/jre






                                  share|improve this answer



























                                    -1












                                    -1








                                    -1







                                    You should set JAVA_HOME=/usr/local/jdk1.8.0 or JRE_HOME=/usr/local/jdk1.8.0/jre






                                    share|improve this answer















                                    You should set JAVA_HOME=/usr/local/jdk1.8.0 or JRE_HOME=/usr/local/jdk1.8.0/jre







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Feb 23 '15 at 9:11









                                    PersianGulf

                                    7,06343663




                                    7,06343663










                                    answered Feb 23 '15 at 8:05









                                    vvshvvsh

                                    11




                                    11



























                                        draft saved

                                        draft discarded
















































                                        Thanks for contributing an answer to Unix & Linux Stack Exchange!


                                        • 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%2funix.stackexchange.com%2fquestions%2f122045%2fapache-tomcat-not-working%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







                                        -centos, java, tomcat

                                        Popular posts from this blog

                                        Frič See also Navigation menuinternal link

                                        Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant

                                        fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank” The 2019 Stack Overflow Developer Survey Results Are In“tar: unrecognized option --warning” during 'apt-get install'How to fix Fontconfig errorHow do I figure out which font file is chosen for a system generic font alias?Why are some apt-get-installed fonts being ignored by fc-list, xfontsel, etc?Reload settings in /etc/fonts/conf.dTaking 30 seconds longer to boot after upgrade from jessie to stretchHow to match multiple font names with a single <match> element?Adding a custom font to fontconfigRemoving fonts from fontconfig <match> resultsBroken fonts after upgrading Firefox ESR to latest Firefox