The Context.PROVIDER_URL tells where to obtain the JNDI proxy via
http. The transport layer of the proxy is configured by the invokerServletPath
property set in the conf/jboss-service.xml descriptor. This defaults to
    invokerServletPath=http://localhost:8080/invoker/JMXInvokerServlet

This must be updated to the public interface clients should be communicating through.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

----- Original Message ----- 
From: "Joost Kraaijeveld" <[EMAIL PROTECTED]>
To: "Jboss-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 1:29 PM
Subject: [JBoss-user] JNDI over HTTP problem


> Hi all,
> 
> When I use the code below while using the code that is commented out,
> everything works. If I use the code that uses JNDI over HTTP I get the
> exception below. I use a stock JBoss 3.0.4 / Jetty running on a remote host
> (Laudanum). If I use a localhost it works.
> 
> Can anyone shine a light on this problem?
> 
> TIA
> 
> Joost
> 
> 
>       Properties properties = new Properties();
> 
> properties.put( Context.INITIAL_CONTEXT_FACTORY,
> "org.jboss.naming.HttpNamingContextFactory"); 
>       properties.put( Context.PROVIDER_URL,
> "http://Laudanum:8080/invoker/JNDIFactory";);
> 
> //properties.put(Context.INITIAL_CONTEXT_FACTORY,
> "org.jnp.interfaces.NamingContextFactory");
> //properties.put(Context.PROVIDER_URL, "Laudanum:1099");
> 
> Context initial = new javax.naming.InitialContext( properties );
> Object objRef = initial.lookup( "slsb_java/HelloWorld" );
> 
>      [exec] Context exists
>      [exec] java.lang.reflect.UndeclaredThrowableException
>      [exec]     at $Proxy0.lookup(Unknown Source)
>      [exec]     at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
>      [exec]     at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
>      [exec]     at
> javax.naming.InitialContext.lookup(InitialContext.java:347)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to