I am working on web project where jboss application server is required. After configured the jboss server, I was running my application. It is showing error like:Server already running on local host.Web found a running server at URL //localhost:8080.

Works for me
Open Command Prompt
Type
netstat -noa
and hit EnterCheck the "PID" of process that uses your port
And type
taskkill /PID "PID number"
and hit Enter
As @Mxsky stated: You may have to force the processus to quit with the /F option.So the command becomes: taskkill /PID pid_number /F
- Done. Now start the server
Generally this issue happen because of proxy setting. If none of the process running on 8080 port and still you find this error then reason is proxy server is not bypass for local address.
Bypass Proxy Server for Local Address by below Setting on IE.
Open IE, Tools -> Internet Options -> Connections -> LAN Setting -> Check mark on checkbox "Bypass proxy server for local address"
Now restart your jboss server.
If this happened from not closing eclipse properly (or it just crashed):
- When it is closed, 'End Process Tree' on
javaw.exe
with task manager. - Restart eclipse.
This is not likely the best way but it works... or did for me at least.
If this is from another server running:
- You need to make sure you have separate port numbers per server instance.
- Otherwise it will not bind correctly; or at all.
What Süleyman Şahin said was right. Open Command Prompt Type netstat -noa and hit Enter Check the "PID" of process that uses your port And type taskkill /PID "PID number" and hit Enter As @Mxsky stated: You may have to force the processus to quit with the /F option.So the command becomes: taskkill /PID pid_number /F
However, if you are unable to kill the process in the cmd, check for the PID that is using port 8080. In the command prompt, [::]8080 it will look like this. Now, goto the Task Manager in the Details tab check for the PID and right click on the name of the service and click Go to service(s). Now stop that service that is using port 8080.
Now, open the eclipse and start the JBoss. That's it.
I solved this problem, by changing the port number in my server and then changing the port number in standalone-full.xml too.
Go to your crome setting type 'xy' to open proxy setting then click on LAN Setting check bypass proxy server for local address.
来源:https://stackoverflow.com/questions/25403012/jboss-server-errorserver-already-running-on-localhost