Running JBoss Portal on Windows

Installation of JBoss on Windows is as simple as unzipping the download bundle into a folder. And to run the JBoss server, you just need to goto the bin folder and execute run.bat. It should run fine as long as you have appropriate JRE installed on your machine.

However it didn’t work fine for me and i could see the JBoss server console scrolling endless with error messages logged in it. They were JVM_BIND error messages for a specific port. (1098 to be specific).

java.rmi.server.ExportException: Port already in use: 1098; nested exception is: Address already in use: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(


Obviously some process on my machine is occupying that port. How do i know? Use the following command,

netstat -o

It should list down all the processes and port numbers currently being used by them. You can pick up the process id, go to task manager and kill the process. Now restart the server and it wouldn’t complain.

But killing processes on Windows is not advisable unless you are absolutely sure about the utility of the process, which i guess nobody other than M$ guys know. 🙂 So whats the solution?

The other way to solve it would be to reconfigure JBoss to use the ports numbers which are free in your system. Find out all the config files where port 1098 (in my example) is configured and replace it with a port number which is free. The above netstat command will help identify free port numbers.


One comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s