RE: Need help with HTTP connectors and Tunnel servlet
Archana Deshmukh <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <1132752659.973.19.camel@apsora11> |
Hi, I am facing similar problem.Tunnel Servlet is deployed on our own web server.Dropping the trailing "/" couldn't work for me. What can be the work around for it? Thanks, Archana > > --- Tim Anderson <[email protected]> wrote: > > > Try dropping the trailing "/" in the URL. ie. > > properties.put(Context.PROVIDER_URL, > > http://localhost:8080); > > > > Let us know if it works - if so, its a bug in the > > InitialContextFactory > > implementation. > > > > -Tim > > > > _____ > > > > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On > > Behalf Of Ramalakshmi > > Vijayakumar > > Sent: Thursday, 10 November 2005 8:55 AM > > To: [email protected] > > Subject: [openjms-user] Need help with HTTP > > connectors and Tunnel servlet > > > > > > HI , > > > > I am new to JMS. openJMS server and tomcat is in the > > same machine > > As specified in the doc, copied the tunnel servlet > > to the my tomcat install > > > > And updated the openjms conf file to > > <Connector scheme="http"> > > <ConnectionFactories> > > <ConnectionFactory > > name="HTTPConnectionFactory"/> > > </ConnectionFactories> > > </Connector> > > </Connectors> > > > > <HttpConfiguration port="3030" jndiPort="3030" > > bindAll="true" > > webServerHost="10.0.5.28" > > webServerPort="8080" > > > > servlet="/openjms-tunnel/tunnel"/> > > > > I have a message sender that send message to a queue > > > > And the receiver that is trying to receive the > > message > > I am trying to get the context, here the code for > > creating context , I am > > getting error > > Hashtable properties = new Hashtable(); > > > > properties.put(Context.INITIAL_CONTEXT_FACTORY, > > > > "org.exolab.jms.jndi.InitialContextFactory"); > > properties.put(Context.PROVIDER_URL, > > "http://localhost:8080/"); > > context = new > > InitialContext(properties); > > Error: > > > > Failed to create initial JNDI context: > > javax.naming.CommunicationException: > > Failed to get registry s > > ervice for URL: http://localhost:8080/ [Root > > exception is > > java.rmi.ConnectIOException: Failed to cre > > ate connection; nested exception is: > > > > org.exolab.jms.net.connector.ConnectException: > > Failed to connect to > > URI=http://localhost:808 > > 0/] > > javax.naming.CommunicationException: Failed to get > > registry service for URL: > > http://localhost:8080/ > > [Root exception is java.rmi.ConnectIOException: > > Failed to create connection; > > nested exception is: > > > > org.exolab.jms.net.connector.ConnectException: > > Failed to connect to > > URI=http://localhost:808 > > 0/] > > at > > > org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFa > > ctory.java:14 > > 5) > > > > > > Am I missing anything here? Please let me know > > > > Thanks > > Rama > > > > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click