Cannot instantiate class: org.exolab.jms.jndi.InitialContext

Using Hermes with OpenJMS

Cannot instantiate class: org.exolab.jms.jndi.InitialContext

Postby katieling » Mon Nov 14, 2011 5:05 pm

Hello,
I am getting a 'Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory ' error when I perform discovery on a session or double-click a queue in the session.
The Hermes is installed in my local machine, Mac OS X 10.6.5
OpenJMS 0.7.3.1 ( build 17) is running on my local machine port 2099 using mysql
Java is 1.6.0 jdk.

In Hermes, I have created a session called 'local'. Under the provider tab, I have created ClasspathGroup called OpenJMS which includes all the jars I can find in the openjms-0.7.3.1/lib.
Plug in = OpenJMS
Connection Factory Class = hermes.JNDIQueueConnectionFactory Loader=OpenJMS
Property: -
binding = JmsQueueConnectionFactory
initialContextFactory = org.exolab.jms.jndi.InitialContextFactory
providerURL = rmi://localhost:2099

I also added a queue under the session with a valid queue name that I know of.

When I right click on the session and click Discovery, I receive the below error message

javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory
at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:282)
at hermes.ext.HermesAdminSupport.discoverDestinationConfigs(HermesAdminSupport.java:441)
at hermes.impl.HermesAdminAdapter.discoverDestinationConfigs(HermesAdminAdapter.java:82)
at hermes.impl.DefaultHermesImpl.discoverDestinationConfigs(DefaultHermesImpl.java:1126)
at hermes.browser.tasks.DiscoverDestinationsTask.invoke(DiscoverDestinationsTask.java:77)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:680)


When I double-click on a queue, I receive the below error message.

javax.jms.JMSException: Could not create InitialContext: Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory
at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:282)
at hermes.JNDIConnectionFactory.createConnection(JNDIConnectionFactory.java:80)
at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:122)
at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:92)
at hermes.impl.jms.ConnectionSharedManager.reconnect(ConnectionSharedManager.java:81)
at hermes.impl.jms.ConnectionSharedManager.connect(ConnectionSharedManager.java:91)
at hermes.impl.jms.ConnectionSharedManager.getConnection(ConnectionSharedManager.java:104)
at hermes.impl.jms.ConnectionSharedManager.getObject(ConnectionSharedManager.java:142)
at hermes.impl.jms.ThreadLocalSessionManager.connect(ThreadLocalSessionManager.java:190)
at hermes.impl.jms.ThreadLocalSessionManager.getSession(ThreadLocalSessionManager.java:570)
at hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSessionManager.java:387)
at hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:323)
at hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationTask.java:122)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:680)



Please help!

Katie
katieling
 
Posts: 1
Joined: Mon Nov 14, 2011 4:44 pm

Return to OpenJMS

Who is online

Users browsing this forum: No registered users and 1 guest

cron