7 Replies Latest reply on Apr 20, 2004 9:05 AM by daveeyang

    Excuse: how I can Change the default 8080 port

    daveeyang

      Excuset me, everytime I start the Jboss server(jboss323), it usually give the exception like :
      java.net.BindException:Address already in use JVM_Bind:8080 , ObjectName:Jboss.mq:service=InvocationLayer, type=HTTP
      I do not know what kind of program is taking up 8080 port, and I do think it may be some important program, so I plan to change the jboss default 8080 port in to some others just like 8088 or 56 or 83 and so on , but I don't know how to and where to, please give me some guides.


      thanks a lot .

      sincerely DaveeYang( DaveeYang@163.com )

      Nice..

        • 1. Re: Excuse: how I can Change the default 8080 port
          sesques

          You can change it in the jboss-service.xml on the deploy/jbossweb-tomcat41.sar/META-INF directory.

          Search for <!-- A HTTP/1.1 Connector on port 8080
          --> comment

          • 2. Re: Excuse: how I can Change the default 8080 port
            daveeyang

            It is so wonderfull !! I solved the big trouble now ,thanks to sesques very much..
            and I found that if I restart the jboss server then the problem appears again, and I have to change the server port again,maybe the taking up port is a bug of jboss... however, thanks to sesques very much, you do a very good works...

            sincerely DaveeYang....

            • 3. Re: Excuse: how I can Change the default 8080 port
              sesques

              Do you stop Jboss before starting it again ?
              As you says, if the message is "Address already in use" whatever the port value is, you must conclude that the previous instance of JBoss is not stopped.
              Thanks to lick my boots, they are pretty crappy.[/img]

              • 4. Re: Excuse: how I can Change the default 8080 port
                daveeyang

                I change the port 8080 to 8081, then started jboss successfully, then I am sure I stopped Jboss as the way: Ctrl+C ,right ? And after the procedure(until it give the message "Shutdown complete Halting VM" ), "run.bat " jboss restart jboss, but in the end then message show 8081 port already in use, while I restart the computer, then it works .. I do think it is better than the 8080 port --- how many times restart the computer, it give the "Address already in use" exception.
                May I know why I restart the jboss then the port is busy before I restart my computer, is it means I stop the jboss but leave the port busy ?
                Thanks for sesques' wonderful work.

                • 5. Re: Excuse: how I can Change the default 8080 port

                  Windows can be cryptic when it comes to finding out exactly what executable is locking a port. This free tool from Sysinternals will show you exactly what executable is holding the port: http://www.sysinternals.com/ntw2k/source/tcpview.shtml

                  //Nicholas

                  • 6. Re: Excuse: how I can Change the default 8080 port
                    sesques

                    Very curious.
                    What is your OS ?
                    Can you dump network statistics ? (netstat -a under Windows) ?
                    After you stop JBoss, is there an instance of java.exe running ?
                    Is there a network monitor in a activity ?

                    • 7. Re: Excuse: how I can Change the default 8080 port
                      daveeyang

                      there are two OS in my disk, Win2k and linux, and I am running win2k.
                      nickman ,thanks for your introduction, I downloaded it and run the tool, the tool is usefull, but I could not fund the port 8081 and 8080 , when I start the jboss and it is alse show the message: 8081 port "Address already in use", CURIOUS!
                      sesques, I check in dos: "netstat -a " but could not found 8081 port is busy. restart the computer,then it works, depressed !
                      As the most important thing I solved, just I restart the computer OK, I think maybe I will know it in future with my work.. Thanks to both of you !
                      Have a nice day !

                      Sincerely DaveeYang...