I am trying to set up a sample Chat application using Active MQ and Eclipse.
I have followed the documentation at Apache site and getting the following error upon executing the Chat Application
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.list(Unknown Source)
I assume the jndi.properties
files is not loading but not sure if that is the root cause
Following question is similar but I don't see the issue getting resolved. How to place a file on classpath in eclipse?