You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Chaitanya Gupta <ch...@persistent.co.in> on 2012/02/15 11:37:12 UTC

logging.properties not found error during Activemq startup

Hi,

I downloaded ActiveMq 5.5.1 and during startup getting below error, can anyone help me with this error -

Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@47ad47ad: star
tup date [Wed Feb 15 14:47:03 IST 2012]; root of context hierarchy
 WARN | destroyApplicationContextOnStop parameter is deprecated, please use shut
down hooks instead
 INFO | PListStore:E:\IBM-Saas\installables\apache-activemq-5.5.1-bin\apache-act
ivemq-5.5.1\bin\..\data\10.244.6.116\tmp_storage started
java.io.FileNotFoundException: logging.properties (The system cannot find the fi
le specified.)
        at java.io.FileInputStream.<init>(FileInputStream.java:125)
        at java.io.FileInputStream.<init>(FileInputStream.java:85)
        at java.util.logging.LogManager.readConfiguration(Unknown Source)
        at java.util.logging.LogManager$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(AccessController.java:202
)
        at java.util.logging.LogManager.<clinit>(Unknown Source)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        at java.util.logging.Logger.getLoggerWithRes(Unknown Source)
        at java.util.logging.Logger.getLogger(Unknown Source)
        at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:51)
        at javax.management.NotificationBroadcasterSupport.<clinit>(Notification
BroadcasterSupport.java:348)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        at javax.management.MBeanServerDelegate.<init>(MBeanServerDelegate.java:
71)

I have trying this on win XP, I have ACTIVEMQ_HOME set correctly in env variables.

Thanks,
Chaitanya

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

RE: logging.properties not found error during Activemq startup

Posted by Chaitanya Gupta <ch...@persistent.co.in>.
activemq.bat has following line - 

if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties

When I specify full path, I don't get any exception -
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=%ACTIVEMQ_HOME%\conf\logging.properties

Thanks,
Chaitanya

-----Original Message-----
From: Zagan [mailto:erbsen.frank@gmail.com] 
Sent: Thursday, February 16, 2012 3:14 PM
To: users@activemq.apache.org
Subject: RE: logging.properties not found error during Activemq startup

Hi so far it should work out of the box, At the moment the only thing I found odd is 
> -Djava.util.logging.config.file=logging.properties -Dact
ivemq.classpath=D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1/conf

I would expect it to be
-Djava.util.logging.config.file=logging.properties -Dact 
ivemq.classpath=D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1\conf

--
View this message in context: http://activemq.2283324.n4.nabble.com/logging-properties-not-found-error-during-Activemq-startup-tp4390014p4393429.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

RE: logging.properties not found error during Activemq startup

Posted by Zagan <er...@gmail.com>.
Hi so far it should work out of the box,
At the moment the only thing I found odd is 
> -Djava.util.logging.config.file=logging.properties -Dact 
ivemq.classpath=D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1/conf

I would expect it to be
-Djava.util.logging.config.file=logging.properties -Dact 
ivemq.classpath=D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1\conf

--
View this message in context: http://activemq.2283324.n4.nabble.com/logging-properties-not-found-error-during-Activemq-startup-tp4390014p4393429.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

RE: logging.properties not found error during Activemq startup

Posted by Chaitanya Gupta <ch...@persistent.co.in>.
ACTIVEMQ_HOME is set, getting echoed when I start activemq -

D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1\bin>activemq.bat
Java Runtime: IBM Corporation 1.6.0 D:\OEE\ibm_sdk60\ibm_sdk60\jre
  Heap sizes: current=4096k  free=2787k  max=524288k
    JVM args: -Xjcl:jclscar_24 -Dcom.ibm.oti.vm.bootstrap.library.path=D:\OEE\ib
m_sdk60\ibm_sdk60\jre\bin -Dsun.boot.library.path=D:\OEE\ibm_sdk60\ibm_sdk60\jre
\bin -Djava.library.path=D:\OEE\ibm_sdk60\ibm_sdk60\jre\bin;.;D:\Program Files\P
erl\site\bin;D:\Program Files\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files\doxy
gen\bin;D:\OEE\ibm_sdk60\ibm_sdk60\bin;D:\OEE\Share\Java\apache-ant-1.7.0-bin\ap
ache-ant-1.7.0\bin -Djava.home=D:\OEE\ibm_sdk60\ibm_sdk60\jre -Djava.ext.dirs=D:
\OEE\ibm_sdk60\ibm_sdk60\jre\lib\ext -Duser.dir=D:\OEE\apache-activemq-5.5.1-bin
\apache-activemq-5.5.1\bin _j2se_j9=71168 -Xdump -Dconsole.encoding=Cp437 -Djava
.class.path=. -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseD
edicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dact
ivemq.classpath=D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1/conf;D:\O
EE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1/conf; -Dactivemq.home=D:\OEE\
apache-activemq-5.5.1-bin\apache-activemq-5.5.1 -Dactivemq.base=D:\OEE\apache-ac
tivemq-5.5.1-bin\apache-activemq-5.5.1 -Djava.class.path=D:\OEE\apache-activemq-
5.5.1-bin\apache-activemq-5.5.1/bin/run.jar -Dsun.java.command=D:\OEE\apache-act
ivemq-5.5.1-bin\apache-activemq-5.5.1/bin/run.jar start -Dsun.java.launcher=SUN_
STANDARD _port_library
ACTIVEMQ_HOME: D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1
ACTIVEMQ_BASE: D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1
Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@6c126c12: star
tup date [Wed Feb 15 19:49:19 IST 2012]; root of context hierarchy
 WARN | destroyApplicationContextOnStop parameter is deprecated, please use shut
down hooks instead
 INFO | PListStore:D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1\data\l
ocalhost\tmp_storage started
java.io.FileNotFoundException: logging.properties (The system cannot find the fi
le specified.)
        at java.io.FileInputStream.<init>(FileInputStream.java:125)
        at java.io.FileInputStream.<init>(FileInputStream.java:85)
        at java.util.logging.LogManager.readConfiguration(Unknown Source)
        at java.util.logging.LogManager$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(AccessController.java:202
)
        at java.util.logging.LogManager.<clinit>(Unknown Source)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        at java.util.logging.Logger.getLoggerWithRes(Unknown Source)

2. Dir output of "D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1\conf"

02/15/2012  03:06 PM    <DIR>          .
02/15/2012  03:06 PM    <DIR>          ..
02/15/2012  02:43 PM             2,794 activemq-command.xml
02/15/2012  02:44 PM            12,408 activemq-demo.xml
02/15/2012  02:44 PM             5,110 activemq-dynamic-network-broker1.xml
02/15/2012  02:45 PM             5,216 activemq-dynamic-network-broker2.xml
02/15/2012  02:45 PM             5,095 activemq-jdbc.xml
02/15/2012  02:45 PM             3,757 activemq-scalability.xml
02/15/2012  02:45 PM             6,596 activemq-security.xml
02/15/2012  02:46 PM             6,133 activemq-specjms.xml
02/15/2012  02:46 PM             5,122 activemq-static-network-broker1.xml
02/15/2012  02:46 PM             5,158 activemq-static-network-broker2.xml
02/15/2012  02:46 PM             6,089 activemq-stomp.xml
02/15/2012  02:46 PM             4,443 activemq-throughput.xml
02/15/2012  04:34 PM             6,306 activemq.xml
10/11/2011  05:24 PM               592 broker-localhost.cert
10/11/2011  05:24 PM             1,370 broker.ks
10/11/2011  05:24 PM               665 broker.ts
02/14/2012  04:58 PM             2,766 camel.xml
10/11/2011  05:24 PM             1,357 client.ks
10/11/2011  05:24 PM               665 client.ts
10/11/2011  05:30 PM             1,195 credentials-enc.properties
10/11/2011  05:30 PM             1,144 credentials.properties
10/11/2011  05:30 PM             1,091 jetty-realm.properties
10/11/2011  05:30 PM             5,763 jetty.xml
10/11/2011  05:30 PM               984 jmx.access
10/11/2011  05:30 PM               983 jmx.password
02/15/2012  04:35 PM             3,178 log4j.properties
02/15/2012  02:41 PM             1,231 logging.properties
10/11/2011  05:30 PM             5,465 Org_activemq.org.xml


Thanks,
Chaitanya


-----Original Message-----
From: Zagan [mailto:erbsen.frank@gmail.com] 
Sent: Wednesday, February 15, 2012 7:45 PM
To: users@activemq.apache.org
Subject: RE: logging.properties not found error during Activemq startup

Sorry Chaitanya,
of course I meant the conf-directory :-) Can you send a dir on the conf directory?
Is the ACTIVEMQ_HOME variable echoed in the console? Does it point to the ACTIVEMQ_INSTALL_DIR where the conf directory is placed?




--
View this message in context: http://activemq.2283324.n4.nabble.com/logging-properties-not-found-error-during-Activemq-startup-tp4390014p4390565.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

RE: logging.properties not found error during Activemq startup

Posted by Zagan <er...@gmail.com>.
Sorry Chaitanya,
of course I meant the conf-directory :-) Can you send a dir on the conf
directory?
Is the ACTIVEMQ_HOME variable echoed in the console? Does it point to the
ACTIVEMQ_INSTALL_DIR where the conf directory is placed?




--
View this message in context: http://activemq.2283324.n4.nabble.com/logging-properties-not-found-error-during-Activemq-startup-tp4390014p4390565.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

RE: logging.properties not found error during Activemq startup

Posted by Chaitanya Gupta <ch...@persistent.co.in>.
I am using "apache-activemq-5.5.1\bin\activemq.bat" file to start AMQ.  I copied one of the sample conf file as activemq.conf and using DB as message store. I can see logging.properties in conf directory.
I don't see logging.properties in data directory. 


Dir output of Directory "D:\OEE\apache-activemq-5.5.1-bin\apache-activemq-5.5.1\data"

02/15/2012  04:00 PM    <DIR>          .
02/15/2012  04:00 PM    <DIR>          ..
02/15/2012  04:34 PM           934,104 activemq.log
02/15/2012  12:20 PM                 0 audit.log
02/15/2012  03:11 PM    <DIR>          kahadb
02/15/2012  04:01 PM            16,460 wrapper.log

Thanks
Chaitanya

-----Original Message-----
From: Zagan [mailto:erbsen.frank@gmail.com] 
Sent: Wednesday, February 15, 2012 7:16 PM
To: users@activemq.apache.org
Subject: Re: logging.properties not found error during Activemq startup

Hello Chaitanya ,
which command do you issue to start your activemq instance?
Did you build a separate config using activemq-admin command?
Can you provide the result of an ls in the $AMQ_INSTALL_DIR/data directory?
There should exist a logging.properties file

--
View this message in context: http://activemq.2283324.n4.nabble.com/logging-properties-not-found-error-during-Activemq-startup-tp4390014p4390475.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

Re: logging.properties not found error during Activemq startup

Posted by Zagan <er...@gmail.com>.
Hello Chaitanya ,
which command do you issue to start your activemq instance?
Did you build a separate config using activemq-admin command?
Can you provide the result of an ls in the $AMQ_INSTALL_DIR/data directory?
There should exist a logging.properties file

--
View this message in context: http://activemq.2283324.n4.nabble.com/logging-properties-not-found-error-during-Activemq-startup-tp4390014p4390475.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.