Newbie problem with client-side logging?
pjr69 Mar 5, 2013 5:02 AMI'm trying to create a client-app with embedded HornetQ server and I'm running into a probably trivial issue, but I just don't seem to be able to resolve it using the documentation.
It's a question of (I guess) missing logging implementation, but I don't understand why.
Here is the error when running the client on Eclipse:
---
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.hornetq.utils.UUIDGenerator.generateDummyAddress(UUIDGenerator.java:127)
at org.hornetq.utils.UUIDGenerator.getAddressBytes(UUIDGenerator.java:263)
at org.hornetq.utils.UUIDGenerator.generateStringUUID(UUIDGenerator.java:203)
at org.hornetq.api.core.TransportConfiguration.<init>(TransportConfiguration.java:122)
at fi.insta.response.jboss.poc.client.JMSClient.start(JMSClient.java:60)
at fi.insta.response.jboss.poc.client.POCClient.run(POCClient.java:17)
at fi.insta.response.jboss.poc.client.POCClient.main(POCClient.java:36)
Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.hornetq.utils.HornetQUtilLogger (implementation not found)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2250)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)
at org.hornetq.utils.HornetQUtilLogger.<clinit>(HornetQUtilLogger.java:53)
... 7 more
-----
In my pom.xml I have these dependencies:
<dependencies>
<dependency>
<groupId>org.jboss.logmanager</groupId>
<artifactId>jboss-logmanager</artifactId>
<version>1.4.0.Final</version>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-core-client</artifactId>
<version>2.3.0.CR1</version>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-server</artifactId>
<version>2.3.0.CR1</version>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-jms-server</artifactId>
<version>2.3.0.CR1</version>
</dependency>
</dependencies>
Then when starting the client, I'm setting
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
How to resolve this? What do I need to do?
- Pete
EDIT: Found the problem, it was to do with me importing hornetq-projects into Eclipse workspace and some crappy intra-workspace dependencies. By disabling Maven workspace dependency resolving fixed this.
Message was edited by: pjr69