-
1. Re: Port already in use: 1098
fbiaggi May 22, 2005 6:11 AM (in response to coolfeature)Hi,
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:
*HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters*.
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. -
2. Re: Port already in use: 1098
darranl May 22, 2005 8:12 AM (in response to coolfeature)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.
-
3. Re: Port already in use: 1098
coolfeature May 22, 2005 10:49 AM (in response to coolfeature)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.
:-) -
4. Re: Port already in use: 1098
fbiaggi May 22, 2005 2:15 PM (in response to coolfeature)Hi,
you may run into the same problem tomorrow or ?
Reserve the ports, this is the only definitive solution.
Ciao. -
5. Re: Port already in use: 1098
coolfeature May 23, 2005 3:07 AM (in response to coolfeature)Hi,
I reserved the ports as you suggested, it worked great.
Thanks a lot,
Lei -
6. Re: Port already in use: 1098
mathiastck Sep 21, 2006 1:36 PM (in response to coolfeature)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
-
7. Re: Port already in use: 1098
anders.hedstrom Sep 22, 2006 5:20 AM (in response to coolfeature)$JBOSS_HOME/server/<your_config>/conf/jboss-service.xml
Look for:<attribute name="RmiPort">
and change it to whatever... -
8. Re: Port already in use: 1098
javamentor101 Feb 10, 2007 2:42 PM (in response to coolfeature)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:
http://support.microsoft.com/kb/Q812873 -
9. Re: Port already in use: 1098
javamentor101 Feb 10, 2007 2:46 PM (in response to coolfeature)These are some ports that one might want to reserve.
http://www.jboss.org/wiki/Wiki.jsp?page=UsingJBossBehindAFirewall