ActiveMQ using the IBM JDK times java.io.FileNotFoundException:logging.properties

Source: Internet
Author: User
Tags wrapper

When ActiveMQ uses the IBM JDK, the logging.properties file cannot be found when started with Bin/activemq.bat, but it can also be started. Failed to start when registering as Windows system service:
FATAL  | wrapper  | 2013/04/27 09:56:05 | Unable to execute Java command. 
FATAL  | wrapper |  2013/04/27 09:56:05 |     " C:\Program Files\ibm-java-x86_64-60\bin\java "... start
FATAL  | wrapper  | 2013/04/27 09:56:05 | Critical error:wait for JVM process failed

Method 1 : Continue to use IBM JDKThis error can be solved by modifying activemq_home/bin/activemq.bat, we can add a logging.properties in the Conf directory: Listing 1. To modify the logging.properties path in Activemq.bat
If "%activemq_opts%"
 = "" Set activemq_opts=-xmx512m
 -dorg.apache.activemq.usededicatedtaskrunner=true- djava.util.logging.config.file=%
 activemq_base%/conf/logging.properties

Listing 2. Logging.properties Content
handlers = Java.util.logging.ConsoleHandler
 java.util.logging.consolehandler.level=info  Java.util.logging.consolehandler.formatter=java.util.logging.simpleformatter
 . level=INFO#


Method 2 : Specify a different version JDKModify%activemq_home%\bin\activemq.bat before the IF exist "%home%\activemqrc_pre.bat" call "%home%\activemqrc_pre.bat" plus
Set java_home=c:\jdk1.6.0_37
if exist "%home%\activemqrc_pre.bat" call "%home%\activemqrc_pre.bat"


The method is registered as a Windows system service and then fails, and the wrapper.conf file under%activemq_home%\bin\win32 needs to be modified Wrapper.java.command=java to read:
Set. java_home=c:/jdk1.6.0_37
Wrapper.java.command=%java_home%/bin/java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.