10 Replies Latest reply on Nov 6, 2003 12:06 AM by surajmundada

    port 8080 is already in use

      hi

      I am using jboss-3.2.0_tomcat-4.1.24 server.

      When I start run.bat, it gives following error :

      14:10:39,702 INFO [EmbeddedCatalinaService41] Created
      14:10:39,734 INFO [EmbeddedCatalinaService41] Starting
      14:10:40,452 INFO [STDOUT] Apache Tomcat/4.1.24-LE-jdk14
      14:10:40,593 ERROR [Http11Protocol] Error initializing endpoint
      java.net.BindException: Address already in use: JVM_Bind:8080
      at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
      nt.java:280)

      I made it sure that Tomcat is not running still the problem is not solved.

        • 1. Re: port 8080 is already in use
          darranl

          Try executing netstat -an to see if something else if listening on port 8080.

          • 2. Re: port 8080 is already in use

            thanks for the reply...

            here is what I got after executing netstat -an :


            Proto Local Address Foreign Address State
            TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:1041 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:1066 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:1103 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:1599 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:1963 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:1972 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:2584 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:2591 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:2974 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:4060 0.0.0.0:0 LISTENING
            TCP 0.0.0.0:12345 0.0.0.0:0 LISTENING
            TCP 127.0.0.1:1103 127.0.0.1:19999 ESTABLISHED
            TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING
            TCP 127.0.0.1:19999 0.0.0.0:0 LISTENING

            • 3. Re: port 8080 is already in use
              raja05

              TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING

              Do you have another instance of Tomcat(or something) running on 8080?

              -Raj

              • 4. Re: port 8080 is already in use

                use netstat -alnp
                It will also tell u the aplication name if it is using that port.

                • 5. Re: port 8080 is already in use

                  I have Tomcat 4.1 installed but it runs on 9080 port.

                  I checked this from /bin/server.xml.

                  Can I force port 8080 to listen to Jboss server by modifying any conf file or something like that ?

                  thanks

                  suraj

                  • 6. Re: port 8080 is already in use

                    This is already discuued in the forums... (Use search :-) )
                    Anyway.
                    Jboss 3.2x comes with jetty as it's web container rather then tomcat.
                    It listens on port 8080.
                    If u want to change the port no, then go to

                    jboss-3.2.1/server/all/deploy/jbossweb-jetty.sar/META-INF

                    Under META-INF therw will be jboss-service.xml.
                    You can change the port no from 8080 to others, but if u go less then 1024 then mke sure u start it as a root (system admin).

                    I hope thi hlps.

                    • 7. Re: port 8080 is already in use

                      hi

                      thanks for your patient help.

                      i tried netstat -alnp but it doesn't show any information about which one is using port 8080.
                      it gives general information about what netstat does and various options available with it.

                      C:\>netstat -alnp

                      Displays protocol statistics and current TCP/IP network connections.

                      NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]

                      -a Displays all connections and listening ports.
                      -e Displays Ethernet statistics. This may be combined with the -s
                      option.
                      -n Displays addresses and port numbers in numerical form.
                      -p proto Shows connections for the protocol specified by proto; proto
                      may be TCP or UDP. If used with the -s option to display
                      per-protocol statistics, proto may be TCP, UDP, or IP.
                      -r Displays the routing table.
                      -s Displays per-protocol statistics. By default, statistics are
                      shown for TCP, UDP and IP; the -p option may be used to specify
                      a subset of the default.
                      interval Redisplays selected statistics, pausing interval seconds
                      between each display. Press CTRL+C to stop redisplaying
                      statistics. If omitted, netstat will print the current
                      configuration information once.


                      my problem isn't solved yet.

                      as i said earlier, my another instance of tomcat 4.1 uses port 9080. I verified this by running the tomcat and executing netstat -an.

                      waiting for some more help

                      thanks

                      suraj

                      • 8. Re: port 8080 is already in use
                        darranl

                        netstat -alnp is not suitable for use on Windows

                        When you executed netstat -an it showed that there was something else already listening on port 8080.

                        Can you double check if you have got anything else installed that might be listening on that port.

                        • 9. Re: port 8080 is already in use
                          jonlee

                          If this is the running application then yes, changing this to a different port will stop the port clash. However, it would probably be better not to be running this while running JBoss - it will save on CPU and memory resources.

                          • 10. Re: port 8080 is already in use

                            Hi all

                            the problem is solved !

                            I just tried uninstalling Accelerator Plus and it worked.

                            JBoss is running fine now. I also checked it by deploying my EAR file and it is deployed and giving results without any problem.

                            thanks to all for this valuable discussion.

                            looking for same cooperation in future also

                            suraj