java - Jboss 未在 Netbeans 中启动

标签 java netbeans jboss

我试图在 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.

编辑:One likely source

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

相关文章:

java - 如何避免硬编码文件引用?

java - java中Lock最简单的实现

java - Java 中的计时器任务问题

java - 运行 JAR 文件时右键菜单损坏

Java - 使用从 WSDL 类生成的 SOAP

发送多部分消息时 Javamail ClassCastException

java - 如何找出抽象列表中的对象?

java - NetBeans 制作的 jar 文件不起作用

jboss - JBoss EAP 中的主机 Controller 和进程 Controller 有什么区别?

java - 如何防止 Hibernate 使用 0 作为 ID?