Java Intellij Idea错误上的Jboss端口配置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22729774/
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-08-13 17:32:04  来源:igfitidea点击:

Jboss port configuration on Intellij Idea error

javajbossintellij-ideawildfly

提问by Super Hornet

I'm trying to run my application on Jboss App Server by Intellij Idea12. I've done configuration: enter image description here

我正在尝试通过 Intellij Idea12 在 Jboss App Server 上运行我的应用程序。我已经完成配置: 在此处输入图片说明

but As you can see in the picture I got the error Management Port Configuration not found.

但正如你在图片中看到的,我得到了错误Management Port Configuration not found

采纳答案by Alexander

Possible cause maybe an invalid configuration file "standalone.xml" or any other config file that you are using. I've put a tag at the wrong place and got the same error.

可能的原因可能是无效的配置文件“standalone.xml”或您正在使用的任何其他配置文件。我在错误的地方放置了一个标签并得到了同样的错误。

回答by user3498257

look for this in your standalone.xml

在您的 standalone.xml 中寻找这个

socket-binding name="management-native" interface="management" port="9999"

socket-binding name="management-native" interface="management" port="9999"

Source: http://youtrack.jetbrains.com/issue/IDEA-77592

来源:http: //youtrack.jetbrains.com/issue/IDEA-77592

回答by Watercolours

I had the same problem, but have no idea what your setup looks like so the solution might not be the same. Also since your question is quite old you've probably figured out the answer by now.

我遇到了同样的问题,但不知道您的设置是什么样的,因此解决方案可能不一样。此外,由于您的问题已经很老了,您现在可能已经找到了答案。

Anyways.. In case anyone else happens to stumble upon this issue, I solved it this way: We use Puppet in our project and I had changed a couple of .yamlfiles where I added some URLs. The URLs contained &which had to be &and IntelliJ didn't notify me that this was the issue. It broke JBoss and everything.

无论如何.. 万一其他人偶然发现这个问题,我是这样解决的:我们在我们的项目中使用了 Puppet,我已经更改了几个.yaml文件,在其中添加了一些 URL。包含的 URL&必须是&,IntelliJ 没有通知我这是问题所在。它打破了 JBoss 和一切。

Try running JBoss standalone.shin the terminal and see if you get a Stacktrace.

尝试standalone.sh在终端中运行 JBoss并查看是否获得 Stacktrace。

回答by Jaizen

Your standalone xml may be malformed in some way. Check to see if you have special characters that you will have to escape or extra closing or opening tags etc.

您的独立 xml 可能以某种方式格式错误。检查您是否有必须转义的特殊字符或额外的结束或开始标签等。

回答by MMM

My case was that there was no config.

我的情况是没有配置。

Folder c:\jboss-eap-6.4.6\standalone\configuration\ was without configuration files. There was only one folder org.6.4.0, where was the configuration.

文件夹 c:\jboss-eap-6.4.6\standalone\configuration\ 没有配置文件。只有一个文件夹org.6.4.0,配置在哪里。

The solution was to copy configuration files from c:\jboss-eap-6.4.6\standalone\configuration\org.6.4.0\ to c:\jboss-eap-6.4.6\standalone\configuration\

解决方案是将配置文件从 c:\jboss-eap-6.4.6\standalone\configuration\org.6.4.0\ 复制到 c:\jboss-eap-6.4.6\standalone\configuration\

回答by Radu Linu

In my case was added in standalone.xml in <deployments>section the following:

在我的情况下,在standalone.xml中添加<deployments>了以下部分:

<deployment name="xxx-ear-1.0.ear" runtime-name="xxx-ear-1.0.ear">
 <fs-archive path="path\xxx-ear-1.0.ear"/>
</deployment>

I've removed this and worked.

我已经删除了它并工作了。

回答by martoncsukas

This is likely to be happening due to a parsing error in your configuration files.

这很可能是由于您的配置文件中的解析错误而发生的。

Start your JBoss/WildFly in the command line, so that you would see more details if this is happening because of a configuration (or parsing) error.

在命令行中启动您的 JBoss/WildFly,以便在由于配置(或解析)错误而发生这种情况时您会看到更多详细信息。

  • On Windows run {JBOSS_HOME}/bin/standalone.batfile so that it would open up a console window and try to start up your application server.
  • Look for any ERROR in the log and see if it is related to configuration.
  • For example:

    ERROR [org.jboss.as.server] WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration

  • 在 Windows 上运行{JBOSS_HOME}/bin/standalone.bat文件,以便它打开一个控制台窗口并尝试启动您的应用程序服务器。
  • 在日志中查找任何 ERROR 并查看它是否与配置相关。
  • 例如:

    错误 [org.jboss.as.server] WFLYSRV0055:启动期间捕获异常:org.jboss.as.controller.persistence.ConfigurationPersistenceException:WFLYCTL0085:无法解析配置

If this doesn't help, have a look at open the ports - maybe the port JBoss/WildFly is configured to is already used by some other application.

如果这没有帮助,请查看打开端口 - 也许 JBoss/WildFly 配置的端口已被其他应用程序使用。

回答by Irfan Bhindawala

Please make sute you had provided valid configuration file, may be your configuration file contains misplaced tag/element entries.

请确保您提供了有效的配置文件,可能是您的配置文件包含错位的标签/元素条目。

回答by jiboOne

It seems that IntelliJ IDEA was not able to read offset value from "standalone.xml". to solve it, just set Port offset to 0 in Configuration window, it will manually add additional VM option: -Djboss.socket.binding.port-offset=0

IntelliJ IDEA 似乎无法从“standalone.xml”中读取偏移值。要解决它,只需在配置窗口中将端口偏移设置为 0,它就会手动添加额外的 VM 选项:-Djboss.socket.binding.port-offset=0

enter image description here

在此处输入图片说明

回答by Matija

In my case, standalone.xmlwas corrupted (probably cause Idea froze and had to do hard shutdown). So I went to standalone_xml_historyand copied standalone.xmlfrom the day before. And it started to work normally again.

在我的情况下,standalone.xml已损坏(可能导致 Idea 冻结并不得不硬关机)。所以我从前一天去standalone_xml_history复制standalone.xml。它又开始正常工作了。