java Jboss 服务器错误:服务器已经在本地主机上运行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25403012/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 07:57:53  来源:igfitidea点击:

Jboss Server Error:Server already running on localhost

javajakarta-eejbossjdk1.6

提问by user1835080

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.enter image description here

我正在开发需要 jboss 应用程序服务器的 Web 项目。配置 jboss 服务器后,我正在运行我的应用程序。它显示如下错误:服务器已经在本地主机上运行。Web 在 URL //localhost:8080 上找到了一个正在运行的服务器。在此处输入图片说明

回答by Süleyman ?ahin

Works for me

对我有用

  • Open Command Prompt

  • Type netstat -noaand hit Enter

  • Check the "PID" of process that uses your port

  • And type taskkill /PID "PID number"and hit Enter

  • 打开命令提示符

  • 类型netstat -noa和回车键

  • 检查使用您的端口的进程的“PID”

  • 然后输入taskkill /PID "PID number"并按 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

正如@Mxsky 所说:您可能必须使用 /F 选项强制进程退出。因此命令变为: taskkill /PID pid_number /F

  • Done. Now start the server
  • 完毕。现在启动服务器

回答by Dipak Modi

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.

通常这个问题是由于代理设置而发生的。如果没有任何进程在 8080 端口上运行,但您仍然发现此错误,则原因是代理服务器未绕过本地地址。

Bypass Proxy Server for Local Address by below Setting on IE.

通过以下 IE 上的设置绕过本地地址的代理服务器。

Open IE, Tools -> Internet Options -> Connections -> LAN Setting -> Check mark on checkbox "Bypass proxy server for local address"

打开 IE,工具 -> Internet 选项 -> 连接 -> 局域网设置 -> 勾选“绕过本地地址的代理服务器”复选框

Now restart your jboss server.

现在重启你的 jboss 服务器。

回答by ECleveland

If this happened from not closing eclipse properly (or it just crashed):

如果发生这种情况是由于没有正确关闭 Eclipse(或者它刚刚崩溃):

  • When it is closed, 'End Process Tree' on javaw.exewith task manager.
  • Restart eclipse.
  • 当它关闭时,javaw.exe使用任务管理器打开“结束进程树” 。
  • 重启日食。

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.
  • 您需要确保每个服务器实例都有单独的端口号。
  • 否则将无法正确绑定;或根本。

回答by spbham88

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

Süleyman ?ahin 说的是对的。打开命令提示符键入 netstat -noa 并按 Enter 检查使用您端口的进程的“PID”并键入 taskkill /PID“PID 号”并按 Enter 正如@Mxsky 所述:您可能必须使用 / 强制进程退出F选项。所以命令变成: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.

但是,如果您无法在 cmd 中终止该进程,请检查使用端口 8080 的 PID。在命令提示符下,[::]8080 将如下所示。现在,转到“详细信息”选项卡中的“任务管理器”,检查 PID 并右键单击服务名称,然后单击“转到服务”。现在停止使用端口 8080 的服务。

Now, open the eclipse and start the JBoss. That's it.

现在,打开 eclipse 并启动 JBoss。而已。

回答by Rajesh Naidu

I solved this problem, by changing the port number in my server and then changing the port number in standalone-full.xml too.

我通过更改服务器中的端口号,然后更改 standalone-full.xml 中的端口号解决了这个问题。

回答by Rajesh Naidu

This issue appear something due to bad configuration. You have made some change in the standalone.xml file and the server doesn't start again. You can check that by try to launch the server from cmd. if it's so, just check you config. otherwise try the approach of @ECleveland

由于配置错误,出现此问题。您已对 standalone.xml 文件进行了一些更改,但服务器不会再次启动。您可以通过尝试从 cmd 启动服务器来检查。如果是这样,只需检查您的配置。否则尝试@ECleveland的方法