473,320 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Jboss log manager error

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
3 9929
chaarmann
785 Expert 512MB
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
game2d
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
You have a quotes of more in:

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

Isn't it?
Nov 10 '14 #4

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

Similar topics

0
by: ram | last post by:
Hi, I have created a simple mapping, deployed and tried to execute but get the follow error message. could any one explain it..... Starting Execution MAP_SCOTT Starting Task MAP_SCOTT...
0
by: Topi Partanen | last post by:
Hi, Can somebody explain what the following error means. When I try to select a database in SQL Server 2000 Enterprice Manager I get the this error. You can see all tables of the database...
5
by: Raquel | last post by:
Trying to use the "DB2 Development Center" on UDB V8 on my Windows XP. I am new to stored procedures. The stored procedure code I am using is at:...
0
by: Trophy Thief | last post by:
I'm getting an odd error when I try to run a select statement in my stored procedure. I need to select records where one field = the first host variable, and the second host variable is between the...
8
by: Alpha | last post by:
I created the following code in my C# program but it's giving me error message at run time of : XML.XPATH.XPATHEXCEPTION : Namespace Manager or XSLTContext needed. This query has a prefix,...
0
by: sajithamol | last post by:
I am getting the following error when I am invoke my ejb from webservice method. BTW I am using EJB3.0, jboss-4.0.5, Myeclipse5.5 M2.Please let me know what might be the issue...
1
by: byrocat | last post by:
Can anyone give a quick description of the meaning of this message and what needs to be done to get a connection. I'm running DBArtisan with SQLServer 2000 client SP4 installed. I also get the...
0
by: John | last post by:
Hi How can I handle errors in the UpdateAll method for adapter manager considering that it has multiple tables. Its probably easy by using try/catch if only one table has errors but what if more...
5
by: Vishnu R | last post by:
Dear All, Below is the code from the net which I am modifying, but after the code is run there is always an instance of excel whcih is running and does not end. Public Sub...
2
by: Parvati | last post by:
Hi all, While installing Mysql i m getting error like " Could not connect ti the service Control Manager error:0" Thanks Parvati
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.