RE: Need help with HTTP connectors and Tunnel servlet

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Without seeing your stack trace, I can't say.
The most likely causes are:
. incorrect installation of openjms-tunnel.war. See 
  http://openjms.sourceforge.net/config/http.html

. adding a trailing slash to Context.PROVIDER_URL property
  e.g. http://localhost:8080/ instead of http://localhost:8080
  (This bug will be fixed in alpha-2.)

. Overriden servlet attribute specified in <HttpConfiguration/>.
  By default the servlet is "/openjms-tunnel/tunnel".
  If this is overriden, the value must be used in Context.PROVIDER_URL,
  and the war must be deployed accordingly.

  E.g: given
  <HttpConfiguration webServerPort="8080" webServerHost="foo.com"
                     servlet="/openjms-tunnel-0.7.7-alpha-1/tunnel"/>

  The Context.PROVIDER_URL must be:
  	http://foo.com:8080/openjms-tunnel-0.7.7-alpha-1/tunnel

-Tim
  
> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Archana Deshmukh
> Sent: Thursday, 24 November 2005 12:31 AM
> To: [email protected]
> Subject: RE: [openjms-user] Need help with HTTP connectors 
> and Tunnel servlet
> 
> 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(InitialCon
> > textFa
> > > 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
> _______________________________________________
> 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.