if you are under win,
search the web for fport.exe or reverve the ports:
When you reserve a range of ephemeral ports, only processes that
specifically request a port in the reserved range can use it.
*NOTE:* Ephemeral (short-lived) port numbers start at 1024.
To reserve one or more ranges of ephemeral ports:
1. Use *Regedt32.exe* to navigate to:
2. On the *Edit* menu, *Add Value* name *ReservedPorts* as a
*REG_MULTI_SZ Data Type*.
3. For each range that you wish to add, type a line in the *Multi-String
Editor* dialog, using the *FFFF-TTTT* syntax, where *FFFF* is the
starting port of the range and *TTTT* is the ending port of the range.
If only one port exists in the range, *FFFF* and *TTTT* are identical.
4. Press *OK* when you have finished adding ranges.
5. *Exit* the Registry Editor.
To identify which process is using the port (at least under Windows XP) you can use the command 'netstat -ao' it will list which ports are in use and the process number of the process using the port.
Thanks for the help.
I tried both fport.exe and "netstat -an", they all showed that explorer is using port 1098.
So I went to <JBOSS_HOME>\server\default\conf directory, and changed the rmi port in the jboss-services.xml from 1098 to 1122 (a port hasn't been taken). Then I restarted my JBOSS, everything looks ok now.
you may run into the same problem tomorrow or ?
Reserve the ports, this is the only definitive solution.
I reserved the ports as you suggested, it worked great.
Thanks a lot,
Googling "jboss change 1098" leads here. Anyway, how do I change JBoss from using 1098 to something else, if I'm running jboss-4.0.4.GA
<attribute name="RmiPort">and change it to whatever...
How to reserve a range of ephemeral ports on a computer that is running Microsoft Windows Server 2003, Microsoft Windows XP Professional or Microsoft Windows 2000: