I'm trying to recreate the HornetQ examples with my own test projects. However I'm having class loader issues. Obviously I'm missing some dependencies that are not specified in the docs.
The docs had me add
hornetq-core-client.jar
netty.jar
hornetq-jms-client.jar
jboss-jms-api.jar
I'm getting this error:
javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory
[Root exception is java.lang.ClassNotFoundException:
org.jnp.interfaces.NamingContextFactory]
Where can I find this class (and any others that might be needed)?
I recently hit the same issue. Recreating the topic example, i had to add the following:
jnp-client.jar hornetq-commons.jar
Both should be in the hornetq lib
For what is worth, starting with HornetQ 2.3 everything has been Mavenized. So if you ever have trouble figuring out a dependency list for a HornetQ example, just change into the example's folder and ask Maven:
cd hornetq/examples/jms/topic
mvn dependency:list
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With