Jboss 日志管理器错误 [英] Jboss log manager error

查看:31
本文介绍了Jboss 日志管理器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在 Windows 中使用参数启动 JBoss,但遇到一些错误.如果我删除参数而不是 JBoss 启动,则没有错误.有人可以看看.

I am trying to start up JBoss with parameters in Windows but getting some errors. If I remove parameters than JBoss startup iwht no errors. Could some one please take a look.

环境变量:

JAVA_HOME=C:Javajdk1.6.0_45
JBOSS_HOME=C:injboss-eap-6.1
Path=C:Javajdk1.6.0_45in;C:WINDOWSsystem32;

使用以下参数启动 jboss:

set "JAVA_OPTS=%JAVA_OPTS% 
    -Djava.rmi.server.hostname=myhost
    -Dcom.sun.management.jmxremote.port=myport
    -Dcom.sun.management.jmxremote.ssl=false
    -Dcom.sun.management.jmxremote.authenticate=true
   -Dcom.sun.management.jmxremote.password.file=C:Javajdkjrelibmanagementjmx.password
   -Dcom.sun.management.jmxremote.access.file=C:Javajdkjrelibmanagementjmx.access
"

错误:

WARNING: failed to load the specified log manager class org.jboss.logmanager.LogManager
Error: Operation <"parallel-extension-add"> failed - address:<[]>
                   java.lang.RuntimeException: failed initializing module org.jboss.as.logging

==========================================================================

==========================================================================

所以要修复上面的错误.我在下面添加了 logmanager 参数.

so to fix the error above. I have added logmanager parameter below.

使用参数启动jboss:

set "JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
-Djava.rmi.server.hostname=myhost
-Dcom.sun.management.jmxremote.port=myport
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=C:Javajdkjrelibmanagementjmx.password
-Dcom.sun.management.jmxremote.access.file=C:Javajdkjrelibmanagementjmx.access
​"

错误:

Could not load Logmanager "org.jboss.logmanager.LogManager"
java.lang.ClassNotFoundException: org.jboss.logmanager.logManager

==========================================================================

==========================================================================

所以要修复上面的错误.我添加了 -xbootclasspath 参数.

so to fix error above. I have added -xbootclasspath parameter.

使用参数启动jboss:

set "JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
-Xbootclasspath:C:injboss-eap-6.1modulessystemlayersaseorgjbosslogmanagermainjboss-logmanager-1.4.0.Final-redhat-1.jar

-Djava.rmi.server.hostname=myhost
-Dcom.sun.management.jmxremote.port=myport
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=C:Javajdkjrelibmanagementjmx.password
-Dcom.sun.management.jmxremote.access.file=C:Javajdkjrelibmanagementjmx.access
​"

错误:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

现在我不知道该怎么办.我试过重新安装 jdk 但没有运气.

and now I have no idea what to do. I have tried reinstalling jdk but no luck.

当我在 CMD 中输入java -version"时.比我得到的结果:1.6.0_45".所以我知道jdk已经设置好了.但是当我启动 Jboss 时,jdk 不是初始化.

when I enter "java -version" in CMD. Than I get result: "1.6.0_45". So I know jdk is set up. but when I start Jboss than jdk is not initialization.

推荐答案

要解决此问题,请执行以下操作:

To resolve this, do the following:

  1. 转到文件系统上的 JBOSS_HOME 位置,例如c:jbossappserverjboss-eap-6.3,查看bin文件夹,在文本编辑器中打开名为standalone.conf的配置文件.

  1. Go to the JBOSS_HOME location on the file system e.g. c:jbossappserverjboss-eap-6.3, look in the bin folder and open the configuration file named, standalone.conf, in a text editor.

在文件顶部,添加以下行 - JBOSS_MODULES_SYSTEM_PKGS="org.jboss.logmanager".

At the top of the file, add the following line - JBOSS_MODULES_SYSTEM_PKGS="org.jboss.logmanager".

向下滚动文件,到指定 JVM 选项的位置并添加以下两个选项:

Scroll-down the file, to where JVM options are specified and add the following two options:

JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager" JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.2.Final-redhat-1.jar"

JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager" JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.2.Final-redhat-1.jar"

注意:您可能需要修改 logmanager jar 文件的确切路径,因为 jboss 安装中的路径可能与此处适用的路径不同.在这种情况下使用的 JBoss EAP 版本是 6.3.0GA.不同的版本可能有不同的 logmanager jar 文件路径.

Note: You may need to modify the exact path to the logmanager jar file, as the one on your jboss installation may differ from what applies here. The JBoss EAP version being used in this case was 6.3.0GA. A different version may have a different path to the logmanager jar file.

  1. 只需保存修改后的standalone.conf"文件,加上这几处更改,然后重新尝试启动 JBoss 应用服务器(在 CLI 或 Eclipse 中).

注意:要修复仅在 Eclipse 中运行的 JBoss EAP 应用程序服务器实例的问题,只需打开服务器的启动配置并将 2 个 JVM 选项添加到启动配置的 VM 参数中,如下面的屏幕截图所示:

Note: For fixing the issue for a JBoss EAP appserver instance running just within Eclipse, simply open the server's launch configuration and add the 2 JVM options to the VM arguments of the launch configuration, as shown in the screenshot below:

  1. 瞧!应解决有关无法加载 LogManager 的启动问题.查看此博文了解详细信息和屏幕截图 - http://obinnakalu.blogspot.com/2014/10/jboss-enterprise-application-platform.html

这篇关于Jboss 日志管理器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆