How to solve BindException: Address already in use: JVM_Bind in JBoss on Windows

Categories Development, Java


Sometimes, you’re just having a wonderful day and suddenly the worst just happens:

[ServiceController] Problem starting service jboss:service=Naming
    java.rmi.server.ExportException: Port already in use: 1198; nested exception is: Address already in use: JVM_Bind
    at sun.rmi.transport.tcp.TCPTransport.listen(

The regular solution is to check if the port is actually used. So fire up a command prompt and netstat –aon.

If you find the port, see what process is using it and kill it ;).

If you don’t see the port you can reserve it by following the information in KB812873 –

My ReservedPorts entry contains:




That should fix it. The bad thing is that it requires a restart.

Leave a Reply

Your email address will not be published. Required fields are marked *