The problem may be in your "System.setProperty" line.  First, if
you have a jndi.properties in the client classpath (WEB-INF/classes for
Tomcat) then you don't need it at all.  Second, it doesn't use http, so
the entry should just be "10.0.0.21".  If you still can't get it to work,
please post the full stack trace including the message of the exception.

Aaron

On Mon, 25 Sep 2000, Tom Watkins wrote:
> I have just started using jBoss and am trying to put my web server (tomcat)
> and jBoss on different machines. However, when my servlet tries to access
> the host, I get a connection refused with a
> javax.naming.serviceUnavailableException (root exception is your
> java.net.connectException)
> I have uncommented java.rmi.server.useLocalHostName and put the host IP
> address as the java.rmi.server.hostname in the jboss.properties file and as
> the java.naming.provider.url in the jndi.properties file.
> 
> The code in the servlet is 
> System.setProperty("java.naming.provider.url", "http://10.0.0.21:1099");
> 
> Any help would be very gratefully received
> 
> Tom
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to