我在尝试将-Dcom.sun.management.jmxremote添加为jboss服务器Vm参数时遇到异常

时间:2018-10-01 13:40:20

标签: jboss

在尝试将-Dcom.sun.management.jmxremote添加为jboss服务器Vm参数(通过Eclispse)时,我感到异常异常

Could not load Logmanager "org.jboss.logmanager.LogManager"
java.lang.ClassNotFoundException: org.jboss.logmanager.LogManager
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.util.logging.LogManager$1.run(LogManager.java:195)
    at java.util.logging.LogManager$1.run(LogManager.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:181)
    at java.util.logging.Logger.demandLogger(Logger.java:448)
    at java.util.logging.Logger.getLogger(Logger.java:502)
    at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:55)
    at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:814)
    at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
    at sun.management.Agent.startAgent(Agent.java:260)
    at sun.management.Agent.startAgent(Agent.java:447)
WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
Oct 01, 2018 6:51:18 PM org.jboss.msc.service.ServiceContainerImpl <clinit>
INFO: JBoss MSC version 1.1.6.Final-redhat-1
Oct 01, 2018 6:51:18 PM org.jboss.as.server.ApplicationServerService start
INFO: JBAS015899: JBoss EAP 6.4.11.GA (AS 7.5.11.Final-redhat-1) starting
Oct 01, 2018 6:51:22 PM org.jboss.as.controller.AbstractOperationContext executeStep
ERROR: JBAS014612: Operation ("parallel-extension-add") failed - address: ([])
java.lang.RuntimeException: JBAS014670: Failed initializing module org.jboss.as.logging
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:111)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:708)
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:543)
    at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:338)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:314)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1144)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:393)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:301)
    at org.jboss.as.server.ServerService.boot(ServerService.java:367)
    at org.jboss.as.server.ServerService.boot(ServerService.java:338)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:263)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: JBAS011592: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager. The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:103)
    ... 11 more
Caused by: java.lang.IllegalStateException: JBAS011592: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager. The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
    at org.jboss.as.logging.LoggingExtension.initialize(LoggingExtension.java:136)
    at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:97)
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:139)
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:125)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jboss.threads.JBossThread.run(JBossThread.java:122)

Oct 01, 2018 6:51:22 PM org.jboss.as.server.ServerService$2 logExit
FATAL: JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

我尝试在standalone.conf文件中执行以下操作来解决这些问题,但是没有用,# 1)添加了

JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
   JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:E:/jboss/jboss-eap-6.4/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.4.Final-redhat-1.jar"
   JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote

当我从Vm参数中删除此 -Dcom.sun.management.jmxremote 时,服务器正在启动,没有任何故障。

0 个答案:

没有答案