RE: Basic problem with openjms-0.7.7-alpha-3
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
The fact that org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory is appearing in the stack trace indicates that your classpath is picking up the 0.7.6.1 jars. RmiJndiInitialContextFactory is not used in 0.7.7. -Tim > -----Original Message----- > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf > Of Ninju Bohra > Sent: Tuesday, 14 February 2006 3:04 AM > To: [email protected] > Subject: [openjms-user] Basic problem with openjms-0.7.7-alpha-3 > > Hello all, > > I am trying to move our system from openjms-0.7.6.1 to > openjms-0.7.7-alpha-3 (to get the fix for bug #1214292) and I > am getting the following errors on my test program: > > Exception in thread "main" javax.naming.ServiceUnavailableException: > JNDI service is not bound in the registry for URL: > rmi://localhost:1099/JndiServer > at > org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory.getInitia > lContext(RmiJndiInitialContextFactory.java:140) > at > org.exolab.jms.jndi.InitialContextFactory.getInitialContext(In > itialContextFactory.java:109) > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager > .java:667) > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) > at javax.naming.InitialContext.init(InitialContext.java:223) > at javax.naming.InitialContext.<init>(InitialContext.java:197) > at resoft.framework.SRTest.test(SRTest.java:92) > at resoft.framework.SRTest.main(SRTest.java:79) > > Environment: > Win XP (SP2) > Java 1.5.0_04 > Started OpenJMS via 'openjms.bat run' using default openjms.xml > > Here is the client code > public static void test() throws Exception { > Hashtable properties = new Hashtable(); > properties.put(Context.INITIAL_CONTEXT_FACTORY, > "org.exolab.jms.jndi.InitialContextFactory"); > properties.put(Context.PROVIDER_URL, "rmi://localhost:1099/"); > Context context = new InitialContext(properties); > > TopicConnectionFactory factory > = (TopicConnectionFactory) context.lookup( > "TopicFactory"); > Topic topic = (Topic) context.lookup("topic1"); > > TopicConnection connection = factory.createTopicConnection(); > > The error comes from the InitialContext(properties) line. > > The OPENJMS console window shows: > > The OpenJMS Group. (C) 1999-2005. All rights reserved. > http://openjms.sourceforge.net > 10:03:01.599 INFO [main] - Server accepting connections on > tcp://10.3.65.23:3035/ > 10:03:01.599 INFO [main] - JNDI service accepting > connections on tcp://10.3.65.23:3035/ > 10:03:01.615 INFO [main] - Admin service accepting > connections on tcp://10.3.65.23:3035/ > 10:03:01.756 INFO [main] - Server accepting connections on > rmi://10.3.65.23:1099/ > 10:03:01.771 INFO [main] - JNDI service accepting > connections on rmi://10.3.65.23:1099/ > 10:03:01.771 INFO [main] - Admin service accepting > connections on rmi://10.3.65.23:1099/ > > Any ideas... > > Ninju > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection > around http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486& > dat=121642 > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642