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:

how add local jar files in maven project?

then adding pom definitions jar installs project's pom.xml file.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -