Tomcat server error on Eclipse












1















Can anyone help me to solve the following case?



I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to run the program I get the following error:




Several ports (8080, 8080) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).











share|improve this question





























    1















    Can anyone help me to solve the following case?



    I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to run the program I get the following error:




    Several ports (8080, 8080) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).











    share|improve this question



























      1












      1








      1








      Can anyone help me to solve the following case?



      I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to run the program I get the following error:




      Several ports (8080, 8080) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).











      share|improve this question
















      Can anyone help me to solve the following case?



      I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to run the program I get the following error:




      Several ports (8080, 8080) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).








      eclipse tomcat






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 24 '12 at 8:36









      slhck

      163k47450474




      163k47450474










      asked Dec 24 '12 at 0:40









      jahjah

      612




      612






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Probably, you have another Tomcat instance running and using the same port. Try this command in the terminal .



          kill $(ps -aef | grep java | grep apache-tomcat-7.0.27 | awk '{print $2}')


          Then try to restart the Tomcat again.



          Alternatively, You can try to /bin subfolder of the Tomcat installation folder and execute the shutdown.sh (Unix) script. If in vain, close Eclipse and then open the System manager and kill all java and/or javaw processes.



          Ref : Same problem with perfect solutions.. Next time when you encounter such errors, just copy and paste the error in Google. There are similar/identical problems solved. You get the idea. =]






          share|improve this answer

































            0














            If you are starting tomcat from within eclipse, you can change the port tomcat runs on from 8080, to say 8070 or 8090 by editing the server.xml file.



            <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>





            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              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%2fsuperuser.com%2fquestions%2f523538%2ftomcat-server-error-on-eclipse%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














              Probably, you have another Tomcat instance running and using the same port. Try this command in the terminal .



              kill $(ps -aef | grep java | grep apache-tomcat-7.0.27 | awk '{print $2}')


              Then try to restart the Tomcat again.



              Alternatively, You can try to /bin subfolder of the Tomcat installation folder and execute the shutdown.sh (Unix) script. If in vain, close Eclipse and then open the System manager and kill all java and/or javaw processes.



              Ref : Same problem with perfect solutions.. Next time when you encounter such errors, just copy and paste the error in Google. There are similar/identical problems solved. You get the idea. =]






              share|improve this answer






























                0














                Probably, you have another Tomcat instance running and using the same port. Try this command in the terminal .



                kill $(ps -aef | grep java | grep apache-tomcat-7.0.27 | awk '{print $2}')


                Then try to restart the Tomcat again.



                Alternatively, You can try to /bin subfolder of the Tomcat installation folder and execute the shutdown.sh (Unix) script. If in vain, close Eclipse and then open the System manager and kill all java and/or javaw processes.



                Ref : Same problem with perfect solutions.. Next time when you encounter such errors, just copy and paste the error in Google. There are similar/identical problems solved. You get the idea. =]






                share|improve this answer




























                  0












                  0








                  0







                  Probably, you have another Tomcat instance running and using the same port. Try this command in the terminal .



                  kill $(ps -aef | grep java | grep apache-tomcat-7.0.27 | awk '{print $2}')


                  Then try to restart the Tomcat again.



                  Alternatively, You can try to /bin subfolder of the Tomcat installation folder and execute the shutdown.sh (Unix) script. If in vain, close Eclipse and then open the System manager and kill all java and/or javaw processes.



                  Ref : Same problem with perfect solutions.. Next time when you encounter such errors, just copy and paste the error in Google. There are similar/identical problems solved. You get the idea. =]






                  share|improve this answer















                  Probably, you have another Tomcat instance running and using the same port. Try this command in the terminal .



                  kill $(ps -aef | grep java | grep apache-tomcat-7.0.27 | awk '{print $2}')


                  Then try to restart the Tomcat again.



                  Alternatively, You can try to /bin subfolder of the Tomcat installation folder and execute the shutdown.sh (Unix) script. If in vain, close Eclipse and then open the System manager and kill all java and/or javaw processes.



                  Ref : Same problem with perfect solutions.. Next time when you encounter such errors, just copy and paste the error in Google. There are similar/identical problems solved. You get the idea. =]







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 23 '17 at 12:41









                  Community

                  1




                  1










                  answered Dec 24 '12 at 1:13









                  Ye Lin AungYe Lin Aung

                  5,10462732




                  5,10462732

























                      0














                      If you are starting tomcat from within eclipse, you can change the port tomcat runs on from 8080, to say 8070 or 8090 by editing the server.xml file.



                      <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>





                      share|improve this answer




























                        0














                        If you are starting tomcat from within eclipse, you can change the port tomcat runs on from 8080, to say 8070 or 8090 by editing the server.xml file.



                        <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>





                        share|improve this answer


























                          0












                          0








                          0







                          If you are starting tomcat from within eclipse, you can change the port tomcat runs on from 8080, to say 8070 or 8090 by editing the server.xml file.



                          <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>





                          share|improve this answer













                          If you are starting tomcat from within eclipse, you can change the port tomcat runs on from 8080, to say 8070 or 8090 by editing the server.xml file.



                          <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 24 '12 at 1:18









                          Eddy Yuansheng WuEddy Yuansheng Wu

                          172




                          172






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • 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%2fsuperuser.com%2fquestions%2f523538%2ftomcat-server-error-on-eclipse%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

                              flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                              Mangá

                               ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕