Posts Tagged ‘JBoss’

JBoss error: java.rmi.server.ExportException: Port already in use: 1098

Saturday, October 24th, 2009

I’ve encountered this error using JBoss within MyEclipse on several occasions. The JBoss server fails to start for no apparent reason. After reviewing the server log, the root cause is “ERROR [org.jboss.naming.NamingService] Starting failed jboss:service=Naming java.rmi.server.ExportException: Port already in use: 1098; nested exception is: java.net.BindException: Address already in use: JVM_Bind”. This is followed by an endless list of ClassNotFound exceptions, as well as other exceptions.

The problem is that some other process is running on port 1098. Fortunately, there is an easy solution. If you are using Win XP, you can run “netstat -a -n -o” from the command line to find out what process id is listening on port 1098. Use the task manager to find out what process id belongs to that application, and end that task. You should be able to start JBoss with no problems.

Common port 1098 uses are for Oracle and ICQ.