Port already in use: 1098
Error Message: Port already in use: 1098
Possible Solutions:
Possible Solutions:
JBoss tries to use port 1098. But there is nothing preventing another application from using it if it finds it first. I actually had a bit torrent using the port. I disabled the torrent and jboss started fine.
I discovered the application that was using the port by typing netstat -b from the command line in Windows XP. I understand this command only works in XP. Look around to find something similar if you're not on XP.
One condition that causes this error is if JBoss was shut down improperly (or if it's still running). In that case, you might just want to reboot.
There is a way to reserve port numbers so that other applications don't use them. Also, it is possible to change the port number that JBoss uses. You can read the directions to do either of these here.



Thanks for share good blog
Reply to this
The JBoss 5 has a new ServiceBindingManager which uses bean injection to assign ports at runtime. Changing the port here may do the trick for you. You can also use a different ports configuration and override the ports by a factor.
Reply to this
I've tried to do the same, and I did it.
Thanks a lot for usefull tip. Will sujest it to my friend, he had the same problem.
Reply to this