OpenJMS:无法设置 INITIAL_CONTEXT_FACTORY

OpenJMS : impossible to set the INITIAL_CONTEXT_FACTORY

我写了下面的代码来设置我的 Context :

Properties properties = new Properties();
properties.put(Context.PROVIDER_URL, "tcp://localhost:3035");
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory");
Context context = new InitialContext(properties);

然而,当我执行 jar 时,我得到这个异常(注意:不是在我编译时 + 抱歉我不能在这里写):http://pastebin.com/5i9SbvEh

我不知道为什么,因为我实际上有 jndijmsopenjms 罐子(我用 One-JAR 做到了)。

我只是忘记了那些依赖项...:[=​​11=]

openjms-common 0.7.7-beta-1 openjms-common-0.7.7-beta-1.jaropenjms-net 0.7.7-beta-1 openjms-net-0.7.7-beta- 1.jar commons-codec 1.3 commons-codec-1.3.jar commons-logging1.0.4 commons-logging-1.0.4.jar
并发 1.3.4 并发 1.3.4.jar jms 1.1 jms-1.1.jar jndi 1.2.1 jndi-1.2.1.jar spice-jndikit 1.2 spice-jndikit-1.2.jar

(http://openjms.sourceforge.net/usersguide/jars.html 部分 "Runtime JARS")