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
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...
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]
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.
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
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 ?
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 !