Hello Justin,
I did additional checks:
1. The log is not altered. One of the log files is console output of application server. Second log file is business logger file, messages logged here come from OSGi message bus.
Both files have same short message logged: "[log4j] [org.hornetq.core.server] HQ224016: Caught exception" only.
2. In messaging server bundle project I found resource files: hornetq-beans.xml, hornetq-configuration.xml, hornetq-jms.xml, hornetq-users.xml, jndi.properties. Nothing related to logging is there.
There is also logging.properties file which seems to be original logger configuration delivered with HornetQ libraries:
#
# JBoss, Home of Professional Open Source.
# ... copyright lines truncated here ...
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
# Additional logger names to configure (root logger is always configured)
# Root logger option
loggers=org.jboss.logging,org.hornetq.core.server,org.hornetq.utils,org.hornetq.journal,org.hornetq.jms,org.hornetq.integration.bootstrap
# Root logger level
logger.level=INFO
# HornetQ logger levels
logger.org.hornetq.core.server.level=INFO
logger.org.hornetq.journal.level=INFO
logger.org.hornetq.utils.level=INFO
logger.org.hornetq.jms.level=INFO
logger.org.hornetq.integration.bootstrap.level=INFO
# Root logger handlers
logger.handlers=FILE,CONSOLE
# Console handler configuration
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.properties=autoFlush
handler.CONSOLE.level=FINE
handler.CONSOLE.autoFlush=true
handler.CONSOLE.formatter=PATTERN
# File handler configuration
handler.FILE=org.jboss.logmanager.handlers.FileHandler
handler.FILE.level=FINE
handler.FILE.properties=autoFlush,fileName
handler.FILE.autoFlush=true
handler.FILE.fileName=logs/hornetq.log
handler.FILE.formatter=PATTERN
# Formatter pattern configuration
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n
There is no 'hornetq.log' file in the system. Not sure if this configuration is executed at all inside the OSGi server. I found on disk after application serer startup cached files:
./APP_SERVER/server/felix-cache/bundle43/version0.0/bundle.jar-embedded/hornetq-core-client-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle43/version0.0/bundle.jar-embedded/hornetq-commons-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle43/version0.0/bundle.jar-embedded/hornetq-journal-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle43/version0.0/bundle.jar-embedded/hornetq-jms-2.2.21.Final.jar
./APP_SERVER/server/felix-cache/bundle43/version0.0/bundle.jar-embedded/hornetq-core-2.2.21.Final.jar
./APP_SERVER/server/felix-cache/bundle43/version0.0/bundle.jar-embedded/hornetq-native-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-server-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-core-client-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-jms-client-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-commons-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-journal-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-bootstrap-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-native-2.4.7.Final.jar
./APP_SERVER/server/felix-cache/bundle42/version0.0/bundle.jar-embedded/hornetq-jms-server-2.4.7.Final.jar
but there is no 'logging.properties' nearby.
3. During the application server startup additional HornetQ related entries can be found, maybe there is something relevant to this issue:
[B_WARN ] 2016-09-19 10:50:52,027 [log4j] [org.hornetq.core.server] HQ222018: AIO was not located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
[B_WARN ] 2016-09-19 10:50:52,028 [log4j] [org.hornetq.core.server] HQ222018: AIO was not located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
[INFO ] 2016-09-19 10:50:52,347 [log4j] [org.hornetq.core.server] HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=../data/journal,bindingsDirectory=../data/bindings,largeMessagesDirectory=../data/large-messages,pagingDirectory=../data/paging)
[INFO ] 2016-09-19 10:50:52,347 [log4j] [org.hornetq.core.server] HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=../data/journal,bindingsDirectory=../data/bindings,largeMessagesDirectory=../data/large-messages,pagingDirectory=../data/paging)
[B_WARN ] 2016-09-19 10:50:52,356 [log4j] [org.hornetq.core.server] HQ222007: Security risk! HornetQ is running with the default cluster admin user and default password. Please see the HornetQ user guide, cluster chapter, for instructions on how to change this.
[B_WARN ] 2016-09-19 10:50:52,356 [log4j] [org.hornetq.core.server] HQ222007: Security risk! HornetQ is running with the default cluster admin user and default password. Please see the HornetQ user guide, cluster chapter, for instructions on how to change this.
[INFO ] 2016-09-19 10:50:52,622 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.DLQ
[INFO ] 2016-09-19 10:50:52,622 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.DLQ
[INFO ] 2016-09-19 10:50:52,791 [log4j] [org.hornetq.core.server] HQ221020: Started Netty Acceptor version 3.6.6.Final-90e1eb2 localhost:5455 for CORE protocol
[INFO ] 2016-09-19 10:50:52,791 [log4j] [org.hornetq.core.server] HQ221020: Started Netty Acceptor version 3.6.6.Final-90e1eb2 localhost:5455 for CORE protocol
[INFO ] 2016-09-19 10:50:52,792 [log4j] [org.hornetq.core.server] HQ221020: Started Netty Acceptor version 3.6.6.Final-90e1eb2 localhost:5445 for CORE protocol
[INFO ] 2016-09-19 10:50:52,792 [log4j] [org.hornetq.core.server] HQ221020: Started Netty Acceptor version 3.6.6.Final-90e1eb2 localhost:5445 for CORE protocol
[INFO ] 2016-09-19 10:50:52,793 [log4j] [org.hornetq.core.server] HQ221007: Server is now live
[INFO ] 2016-09-19 10:50:52,794 [log4j] [org.hornetq.core.server] HQ221007: Server is now live
[INFO ] 2016-09-19 10:50:52,795 [log4j] [org.hornetq.core.server] HQ221001: HornetQ Server version 2.3.2.Snapshot (Killer Bee, 123) [81d0a311-7b21-11e6-879e-1d904eb2ef52]
[INFO ] 2016-09-19 10:50:52,794 [log4j] [org.hornetq.core.server] HQ221001: HornetQ Server version 2.3.2.Snapshot (Killer Bee, 123) [81d0a311-7b21-11e6-879e-1d904eb2ef52]
[INFO ] 2016-09-19 10:50:52,932 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.requestNodeManager
[INFO ] 2016-09-19 10:50:52,932 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.requestNodeManager
[INFO ] 2016-09-19 10:50:52,995 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.resultNodeManager
[INFO ] 2016-09-19 10:50:52,995 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.resultNodeManager
[INFO ] 2016-09-19 10:50:53,008 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.requestCalculation
[INFO ] 2016-09-19 10:50:53,008 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.requestCalculation
[INFO ] 2016-09-19 10:50:53,061 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.resultCalculation1
[INFO ] 2016-09-19 10:50:53,061 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.resultCalculation1
[INFO ] 2016-09-19 10:50:53,073 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.requestDataService
[INFO ] 2016-09-19 10:50:53,073 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.requestDataService
[INFO ] 2016-09-19 10:50:53,127 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.resultDataService
[INFO ] 2016-09-19 10:50:53,127 [log4j] [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.resultDataService
Any thoughts on this?