Failed to connect to URI=tcp://127.0.0.1:3035/

Ermengol Bota <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Just to advice about an error with a message not very "informative".... :)

While developing, openjms works fine, but when moving it to 
preproduction environment we get an error on the client side.

Exception...
"... Error getting JNDI initial context for server name OpenJMS (Failed 
to connect to URI=tcp://127.0.0.1:3035/)"

but, on the configuration file (client side), jndiservers.xml the IP was 
correct, not 127.0.0.1

"   <jndi-server name="OpenJMS"          
            context-provider-url="tcp://192.168.1.20:3035"
            
initial-context-factory="org.exolab.jms.jndi.InitialContextFactory"
            url-pkg-prefixes="org.objectweb.carol.jndi.enc"           
            />
"

finally, we have discovered that the error was on the server side, the 
embeddedJNDI configuration . The main difference between development and 
preproduction is that preproduction is inside a virtual host

So, we have changed from
 <ServerConfiguration host="localhost" embeddedJNDI="true" />

to:
 <ServerConfiguration host="192.168.1.20" embeddedJNDI="true" />

and it works fine with the correct IP, not localhost

Hope it'll help someone else....

* Ermengol *










-------------------------------------------------------
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.