Hi Scott,
I got the same exception as Guy Roulier below. I'm having trouble following
the conversation you seem to have had with him about how to fix this
problem...
Would you mind repeating the fix to me?
I have not done any security policy configuration. Using jnp:// does not
work
either connecting from the same machine ( where "localhost:1099" does work )
or from a different machine. They both produce the exception listed.
Thanks very much,
Eric
trying with protocol jnp://<myServer>:1099
Got context
javax.naming.ServiceUnavailableException: jnp. Root exception is
java.net.Unkno
wnHostException: jnp
at java.net.InetAddress.getAllByName0(InetAddress.java:571)
at java.net.InetAddress.getAllByName0(InetAddress.java:540)
at java.net.InetAddress.getByName(InetAddress.java:449)
at java.net.Socket.<init>(Socket.java:100)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:94)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:693)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:286)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at TestClient.main(TestClient.java:36)
javax.naming.ServiceUnavailableException: jnp [Root exception is
java.net.Unknow
nHostException: jnp]
----- Original Message -----
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 7:07 PM
Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp
...
> It works fine for me from the client:
>
> /tmp 586> java tstNS
> Connecting to JNDI, env={java.naming.provider.url=jnp://localhost:1299,
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
> java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
> Connected to JNDI
> jnp://localhost:1299/queue -> org.jnp.interfaces.NamingContext@112b29b
> queue -> org.jnp.interfaces.NamingContext@112a2f1
> /tmp 587>cat tstNS.java
> import java.util.Properties;
> import javax.naming.*;
>
> class tstNS
> {
> public static void main(String[] args) throws NamingException
> {
> Properties env = new Properties();
> env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
> env.setProperty(Context.PROVIDER_URL,
"jnp://localhost:1299");
> env.setProperty(Context.URL_PKG_PREFIXES ,
"org.jboss.naming:org.jnp.interfaces");
> System.out.println("Connecting to JNDI, env="+env);
> InitialContext ctx = new InitialContext(env);
> System.out.println("Connected to JNDI");
> Object tmp = ctx.lookup("jnp://localhost:1299/queue");
> System.out.println("jnp://localhost:1299/queue -> "+tmp);
> tmp = ctx.lookup("queue");
> System.out.println("queue -> "+tmp);
> }
> }
>
> ----- Original Message -----
> From: "Guy Rouillier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 07, 2001 12:15 PM
> Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp
...
>
>
> > Scott, I used this approach and it does as you say - thanks. One more
> > question regarding jnp: is this protocol only used between 2 instances
of
> > JBoss? I tried to use jnp://myserver:1299 from a command line client,
and
> > was told
> >
> > Exception caught: javax.naming.ServiceUnavailableException: jnp [Root
> > exception
> > is java.net.UnknownHostException: jnp]
> >
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user