maven - Trying to use Java Message Service (JMS) API with Service Bus and AMQP -
i'm trying execute example program, getting following class not found exception:
javax.naming.noinitialcontextexception: cannot instantiate class: org.apache.qpid.amqp_1_0.jms.jndi.propertiesfileinitialcontextfactory [root exception java.lang.classnotfoundexception: org.apache.qpid.amqp_1_0.jms.jndi.propertiesfileinitialcontextfactory] @ javax.naming.spi.namingmanager.getinitialcontext(unknown source) @ javax.naming.initialcontext.getdefaultinitctx(unknown source) @ javax.naming.initialcontext.init(unknown source) @ javax.naming.initialcontext.<init>(unknown source) @ filternet.simplesenderreceiver.<init>(simplesenderreceiver.java:30) @ filternet.simplesenderreceiver.main(simplesenderreceiver.java:60) caused by: java.lang.classnotfoundexception: org.apache.qpid.amqp_1_0.jms.jndi.propertiesfileinitialcontextfactory*
i have included following dependency in pom file:
<dependency> <groupid>org.apache.qpid</groupid> <artifactid>qpid-jms-client</artifactid> </dependency>
but can't find propertiesfileinitialcontextfactory
class file nor jndi directories in local maven repository.
solved downloading jars separately , installing them maven repository according document:
then adding pom definitions jar installs project's pom.xml file.
Comments
Post a Comment