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:
java.net.BindException: Address already in use: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
Solution:
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.
June 26th, 2007 → 11:25
[...] JBoss Portal on Windows June 26th, 2007 My dear friend angraze now writes on “Installation of JBoss on Windows” – he says that it is as simple as unzipping the download bundle into a folder. Is it [...]