[JBoss-dev] secure JNDI with http invoker

2002-10-29 Thread Dave Smith
I am trying to use the http invoker with the NamingContextFactory in
jboss 3.2 beta

I have the following properties 

Properties p = System.getProperties();   
p.put(Context.INITIAL_CONTEXT_FACTORY,org.jboss.naming.HttpNamingContextFactory);
p.put(Context.PROVIDER_URL,jnp://localhost:8080/invoker/restricted/JNDIFactory);   
p.put(Context.URL_PKG_PREFIXES,org.jboss.naming:org.jnp.interfaces);
System.setProperties(p);

I am getting back
Root exception is java.io.StreamCorruptedException: InputStream does not
contain a serialized object

I believe the problem is that HttpNamingContextFactory is missing the
Authenticator code that is in HttpInvokerProxy and the request is
sending back an authenication failure.

So am I using the right naming facory and if I am why is in the server
jar files instead of the client jar files?







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



Re: [JBoss-dev] secure JNDI with http invoker

2002-10-29 Thread Scott M Stark
Until 3.2beta2 this won't work.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: Dave Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 8:46 AM
Subject: [JBoss-dev] secure JNDI with http invoker


 I am trying to use the http invoker with the NamingContextFactory in
 jboss 3.2 beta

 I have the following properties

 Properties p = System.getProperties();
 p.put(Context.INITIAL_CONTEXT_FACTORY,org.jboss.naming.HttpNamingContextFactory);
p.put(Context.PROVIDER_URL,jnp://localhost:8080/invoker/restricted/JNDIFactory);
p.put(Context.URL_PKG_PREFIXES,org.jboss.naming:org.jnp.interfaces);
 System.setProperties(p);

 I am getting back
 Root exception is java.io.StreamCorruptedException: InputStream does not
 contain a serialized object

 I believe the problem is that HttpNamingContextFactory is missing the
 Authenticator code that is in HttpInvokerProxy and the request is
 sending back an authenication failure.

 So am I using the right naming facory and if I am why is in the server
 jar files instead of the client jar files?







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




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