我试图在 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 JBoss Edit 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.
关于java - Jboss 未在 Netbeans 中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11623872/