gpt4 book ai didi

java - Jboss 未在 Netbeans 中启动

转载 作者:行者123 更新时间:2023-12-04 20:48:14 25 4
gpt4 key购买 nike

我试图在 netbeans 中运行 jboss v6 但它显示以下错误

Unable to read the logging configuration from 'file:logging.properties' (java.io.FileNotFoundException: logging.properties (The system cannot find the file specified))

如果我直接进入 bin/run.bat 来运行 jboss stnadalone,则不会显示任何错误并且它会正常启动,但在 netbeans 中我会收到上面提到的错误。

谁能告诉我如何解决这个问题?

最佳答案

我在网上的其他地方找到了这个答案:

Go to the “bin” directory where you’ve installed JBossEdit the “run.bat” file

Search for the line

set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:%DIRNAME%logging.properties %JAVA_OPTS%

Change the %DIRNAME% to your absolute path to the “bin” directory of your installed JBoss.e.g.

set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:"C:\Java\jboss-6.1.0-final\bin\logging.properties" %JAVA_OPTS%

I’m adding the double quote " so that if your directory name has spaces, it will still be legitimate.

Try to start your server through Netbeans again, it should be working fine after this.

编辑:One likely source

关于java - Jboss 未在 Netbeans 中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11623872/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com