File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Unable to start JBoss 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unable to start JBoss 5" Watch "Unable to start JBoss 5" New topic

Unable to start JBoss 5

Praveen Orvakanti

Joined: Nov 13, 2009
Posts: 10
Hi all,
im unable to start my JBoss server. It says Server Port already in use - 8080 HTTP.
I did netstat | find "8080" and it gives :
Server port In Use 8080-Http
C:\>netstat | find "8080"
TCP 01HW126086:4500 localhost:8080 TIME_WAIT
TCP 01HW126086:4502 localhost:8080 TIME_WAIT
TCP 01HW126086:4505 localhost:8080 TIME_WAIT
TCP 01HW126086:4507 localhost:8080 TIME_WAIT
TCP 01HW126086:4511 localhost:8080 TIME_WAIT

and when i do netstat | find "8080" - b:

C:\>netstat | find "8080"
TCP 01HW126086:4582 localhost:8080 ESTABLISHED
TCP 01HW126086:4583 localhost:8080 ESTABLISHED
TCP 01HW126086:4591 localhost:8080 TIME_WAIT
TCP 01HW126086:4619 localhost:8080 TIME_WAIT
TCP 01HW126086:4622 localhost:8080 TIME_WAIT
TCP 01HW126086:4624 localhost:8080 TIME_WAIT
TCP 01HW126086:4628 localhost:8080 TIME_WAIT
TCP 01HW126086:8080 localhost:4582 ESTABLISHED
TCP 01HW126086:8080 localhost:4583 ESTABLISHED

i even checked http://localhost:8080/ and it opens Appache Tomcat web page.
Is Tomcat using this port. Im not actually runnning Tomcat. Im using eclipse through which im trying to start JBoss.

Please help me find the solution.
Thanks in advance
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 650
Are you saying that you're trying to start JBoss via the run.bat script from the JBOSS_HOME/bin directory?

If you've started the application server from within Eclipse, I'm pretty sure it will be a separate instance from the JBoss you have installed and configured on the machine. In Eclipse you should have a Server tab which includes a Stop button (a red square) that will shut down the server instance. If you can't find this, just shutdown Eclipse. Are you able to start JBoss now?

If after shutting down the Eclipse JBoss server instance you still have problems, there's still another server running somewhere.

Let us know what you find.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

You might not be running tomcat, but I have noticed that several apps package Tomcat and run it as a service. You might have to locate which app did this and either disable the service or change the port Tomcat uses (or change the port JBoss AS uses).

One way to locate the running Tomcat is to use the Task Manager on Vista or Windows 7. On the Processes tab, add the column "Command Line" and that column should tell you where Tomcat is coming from.

Another way is to use Process Explorer from sysinternals. It will also tell you the command line used to start Tomcat.

In both of the above, you probably need to look for the "java" process.

JBoss In Action
Praveen Orvakanti

Joined: Nov 13, 2009
Posts: 10
Thanks Peter.
Process Explorer solved my problem. I located the service that was running on 8080 port. Now i am able to start JBoss server...
Thanks to mark as well for pitchin in
wood burning stoves
subject: Unable to start JBoss 5
It's not a secret anymore!