By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,375 Members | 1,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,375 IT Pros & Developers. It's quick & easy.

Jboss log manager error

P: 59
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:

Expand|Select|Wrap|Line Numbers
  1. JAVA_HOME=C:\Java\jdk1.6.0_45
  2. JBOSS_HOME=C:\bin\jboss-eap-6.1
  3. Path=C:\Java\jdk1.6.0_45\bin;C:\WINDOWS\system32;
  4.  
start up jboss with following parameters:

Expand|Select|Wrap|Line Numbers
  1. set "JAVA_OPTS=%JAVA_OPTS% 
  2.     -Djava.rmi.server.hostname=myhost
  3.     -Dcom.sun.management.jmxremote.port=myport
  4.     -Dcom.sun.management.jmxremote.ssl=false
  5.     -Dcom.sun.management.jmxremote.authenticate=true
  6.    -Dcom.sun.management.jmxremote.password.file=C:\Java\jdk\jre\lib\management\jmx.password
  7.    -Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
  8. "
Error:

Expand|Select|Wrap|Line Numbers
  1. WARNING: failed to load the specified log manager class org.jboss.logmanager.LogManager
  2. Error: Operation <"parallel-extension-add"> failed - address:<[]>
  3.                    java.lang.RuntimeException: failed initializing module org.jboss.as.logging
================================================== ========================

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

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

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

start up jboss using parameters:


Expand|Select|Wrap|Line Numbers
  1. set "JAVA_OPTS=%JAVA_OPTS%
  2. -Djava.util.logging.manager=org.jboss.logmanager.LogManager
  3. -Djava.rmi.server.hostname=myhost
  4. -Dcom.sun.management.jmxremote.port=myport
  5. -Dcom.sun.management.jmxremote.ssl=false
  6. -Dcom.sun.management.jmxremote.authenticate=true
  7. -Dcom.sun.management.jmxremote.password.file=C:\Java\jdk\jre\lib\management\jmx.password
  8. -Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
  9. ​"


ERROR:

Expand|Select|Wrap|Line Numbers
  1. Could not load Logmanager "org.jboss.logmanager.LogManager"
  2. java.lang.ClassNotFoundException: org.jboss.logmanager.logManager


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

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

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



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

start up jboss using parameters:


Expand|Select|Wrap|Line Numbers
  1. set "JAVA_OPTS=%JAVA_OPTS%
  2. -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
  3. -Xbootclasspath:C:\bin\jboss-eap-6.1\modules\system\layers\base\org\jboss\logmanager\main\jboss-logmanager-1.4.0.Final-redhat-1.jar
  4.  
  5. -Djava.rmi.server.hostname=myhost
  6. -Dcom.sun.management.jmxremote.port=myport
  7. -Dcom.sun.management.jmxremote.ssl=false
  8. -Dcom.sun.management.jmxremote.authenticate=true
  9. -Dcom.sun.management.jmxremote.password.file=C:\Java\jdk\jre\lib\management\jmx.password
  10. -Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
  11. ​"


ERROR:

Expand|Select|Wrap|Line Numbers
  1. Error occurred during initialization of VM
  2. java/lang/NoClassDefFoundError: java/lang/Object


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

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.
Jun 25 '14 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 785
Can you type "where java" in CMD?
It should point to directory "C:\Java\jdk1.6.0_45" (because I noticed that you use directory "C:\Java\jdk\jre\" for jmxremote).

Can you also please print out the value of your JAVA_OPTS by typing "echo %JAVA_OPTS%"? Just verify that if there is a -classpath (or -cp) option that it points to "C:\Java\jdk1.6.0_45"

Otherwise, assuming that you haven given all the directories to the libraries correctly, then maybe the class is missing inside the library?
You can open the jar-file in "C:\bin\jboss-eap-6.1" with a zip program and look if the file LogManager.jar is inside directory org/jboss/logmanager.
If not, your jar-file is corrupt and you need to download a new one.

By the way, my memories about jboss faded, but it is strange that it is installed in "C:\bin\jboss-eap-6.1" (as given by you in JBOSS_HOME) and not in "C:\jboss-eap-6.1\bin". Are you sure that this path is correct?

Also please remove the XBootclasspath, it is normally used for overriding original classes during startup and I bet it will not solve problems, but create new ones.
Jun 25 '14 #2

P: 59
***note*** When If I dont add parameters in JAVA_OPTS Than jboss starts up corretly.
***note*** i dont have 'CLASSPATH' Environment Variable set up.
***note*** I have update java to 1.7, and I have paste full stacktrace with all info. still same issue.


in CMD:
Expand|Select|Wrap|Line Numbers
  1. where java = C:\Java\jdk1.7.0_60_X64\bin\java.exe
  2. JAVA_HOME = C:\Java\jdk1.7.0_60_X64
  3. JBOSS_HOME: C:\jboss-eap-6.1
  4. Path=C:\Java\jdk1.7.0_60_X64\bin;C:\Windows\system32;
-----

I found 3 "logmanager.jar" files. not sure if u mean these.

Expand|Select|Wrap|Line Numbers
  1. C:\jboss-eap-6.1\modules\system\layers\base\org\jboss\logmanager\main\jboss-logmanager-1.4.0.Final-redhat-1.jar
  2. C:\jboss-eap-6.1\modules\system\layers\base\org\jboss\log4j\logmanager\main\log4j-jboss-logmanager-1.0.1.Final-redhat-2.jar
  3. C:\jboss-eap-6.1\modules\system\layers\base\org\jboss\logging\main\jboss-logging-3.1.2.GA-redhat-1.jar
----



start jboss with parameters and stacktrace.

Expand|Select|Wrap|Line Numbers
  1. C:\jboss-eap-6.1\bin>standalone.bat
  2. Calling "C:\jboss-eap-6.1\bin\standalone.conf.bat"
  3. ===============================================================================
  4.   JBoss Bootstrap Environment
  5.  
  6.  
  7.   JBOSS_HOME: C:\jboss-eap-6.1
  8.   JAVA_HOME: C:\Java\jdk1.7.0_60_X64
  9.   JAVA: C:\Java\jdk1.7.0_60_X64\bin\java
  10.  
  11.  
  12.   JAVA_OPTS: -XX:+TieredCompilation -XX:+UseCompressedOops -Dprogram.name=standa
  13. lone.bat -Xms1303M -Xmx1303M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=tru
  14. e -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.util.logging.manager=org.
  15. jboss.logmanager.LogManager -Djava.rmi.server.hostname=myhost -Dcom.sun.manag
  16. ement.jmxremote=true -Dcom.sun.management.jmxremote.port=myport -Dcom.sun.manageme
  17. nt.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.su
  18. n.management.jmxremote.password.file=C:\Java\jdk1.7.0_60_X64\jre\lib\management\
  19. jmxremote.password -Dcom.sun.management.jmxremote.access.file=C:\Java\jdk1.7.0_6
  20. 0_X64\jre\lib\management\jmxremote.access
  21.  
  22. ===============================================================================
  23.  
  24.  
  25.  
  26. Could not load Logmanager "org.jboss.logmanager.LogManager"
  27. java.lang.ClassNotFoundException: org.jboss.logmanager.LogManager
  28.         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  29.         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  30.         at java.security.AccessController.doPrivileged(Native Method)
  31.         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  32.         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  33.         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  34.         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  35.         at java.util.logging.LogManager$1.run(LogManager.java:191)
  36.         at java.security.AccessController.doPrivileged(Native Method)
  37.         at java.util.logging.LogManager.<clinit>(LogManager.java:181)
  38.         at java.util.logging.Logger.demandLogger(Logger.java:339)
  39.         at java.util.logging.Logger.getLogger(Logger.java:393)
  40.         at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:55)
  41.         at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstr
  42. ap.java:823)
  43.  
  44.         at sun.management.Agent.startAgent(Agent.java:260)
  45.         at sun.management.Agent.startAgent(Agent.java:456)
  46.  
  47. WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
  48. Jun 26, 2014 11:40:41 AM org.jboss.msc.service.ServiceContainerImpl <clinit>
  49. INFO: JBoss MSC version 1.0.4.GA-redhat-1
  50. Jun 26, 2014 11:40:42 AM org.jboss.as.server.ApplicationServerService start
  51. INFO: JBAS015899: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) starting
  52. Jun 26, 2014 11:40:44 AM org.jboss.as.controller.AbstractOperationContext executeStep
  53.  
  54.  
  55.  
  56. ERROR: JBAS014612: Operation ("parallel-extension-add") failed - address: ([])
  57. java.lang.RuntimeException: JBAS014670: Failed initializing module org.jboss.as.logging
  58.         at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:99)
  59.         at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:440)
  60.         at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:322)
  61.         at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:229)
  62.         at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:224)
  63.         at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:232)
  64.         at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:225)
  65.         at org.jboss.as.server.ServerService.boot(ServerService.java:333)
  66.         at org.jboss.as.server.ServerService.boot(ServerService.java:308)
  67.         at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:188)
  68.         at java.lang.Thread.run(Thread.java:745)
  69.  
  70. Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException:
  71. JBAS011592: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager.
  72. The subsystem has not be initialized and cannot be used.
  73. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
  74.         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
  75.         at java.util.concurrent.FutureTask.get(FutureTask.java:188)
  76.         at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:91)
  77.         ... 10 more
  78.  
  79. Caused by: java.lang.IllegalStateException: JBAS011592:
  80. The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager.
  81. The subsystem has not be initialized and cannot be used.
  82. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
  83.         at org.jboss.as.logging.LoggingExtension.initialize(LoggingExtension.java:103)
  84.         at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:97)
  85.         at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127)
  86.         at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:113)
  87.         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  88.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  89.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  90.         at java.lang.Thread.run(Thread.java:745)
  91.         at org.jboss.threads.JBossThread.run(JBossThread.java:122)
  92.  
  93.  
  94.  
  95. Jun 26, 2014 11:40:44 AM org.jboss.as.server.ServerService boot
  96. FATAL: JBAS015957: Server boot has failed in an unrecoverable manner; exiting. S
  97. ee previous messages for details.
  98. Press any key to continue . . .


Solution?

by looking at the stacktrace it says:

The subsystem has not be initialized and cannot be used(in bold).

To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"



so I guess this is the problem? if yes than how to initialized to subsystem?
Jun 27 '14 #3

P: 1
You have a quotes of more in:

-Djava.util.logging.manager=org.jboss.logmanager.Lo gManager"

Isn't it?
Nov 10 '14 #4

Post your reply

Sign in to post your reply or Sign up for a free account.