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

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

问题描述

我试图用Windows中的参数启动JBoss,但出现一些错误.如果我删除的参数比启动JBoss的Iwht没有错误.可以请一个看看.

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.

环境变量:

environment variables:

JAVA_HOME=C:\Java\jdk1.6.0_45
JBOSS_HOME=C:\bin\jboss-eap-6.1
Path=C:\Java\jdk1.6.0_45\bin;C:\WINDOWS\system32;

使用以下参数启动jboss:

start up jboss with following parameters:

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:\Java\jdk\jre\lib\management\jmx.password
   -Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
"

错误:

Error:

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:

start up jboss using parameters:

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:\Java\jdk\jre\lib\management\jmx.password
-Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
​"

错误:

ERROR:

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:

start up jboss using parameters:

set "JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
-Xbootclasspath:C:\bin\jboss-eap-6.1\modules\system\layers\base\org\jboss\logmanager\main\jboss-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:\Java\jdk\jre\lib\management\jmx.password
-Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
​"

错误:

ERROR:

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:\ jboss \ appserver \ jboss-eap-6.3,在bin文件夹中查找并在文本编辑器中打开名为standalone.conf的配置文件.

  1. Go to the JBOSS_HOME location on the file system e.g. c:\jboss\appserver\jboss-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 App服务器(在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. Voila!应该解决与无法加载LogManager有关的启动问题. 查看此博客,了解详细信息和屏幕截图- http://obinnakalu.blogspot .com/2014/10/jboss-enterprise-application-platform.html
  1. Voila! The startup issue with regards to failure to load the LogManager, should be resolved. Check this blogpost for details and screenshots - http://obinnakalu.blogspot.com/2014/10/jboss-enterprise-application-platform.html

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

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