Title: RE: [jBoss-User] RMI problems

hi,

I've tried the following code, and it still gives me the same error...
I've also tried setting the value of Context.URL_PKG_PREFIXES to
"org.jnp.interfaces", "org.jnp.interfaces.jnp" and "org.jnp.interfaces.java"
with no success...

      Hashtable h = new Hashtable();     
      h.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");    
      h.put(Context.PROVIDER_URL, "localhost");           
      h.put(Context.URL_PKG_PREFIXES, "org.jboss.naming");

      ic = new InitialContext(h);

Is it possible that there is a singleton class that gets loaded and initialized
when the first context (the Dynamo one) gets created ?


Thanks a lot for your time :)
Phil


-----Original Message-----
From: Rickard �berg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 24, 2000 9:34 AM
To: jBoss
Subject: Re: [jBoss-User] RMI problems


Hi!

> Philippe C�t� wrote:
>
> I'm trying to use JBoss with the Dynamo App Server (which has a
> miserable and partial EJB 1.0 implementation).
> I run into this problem when trying to do a lookup on the JNDI tree:
>
> javax.naming.CommunicationException.  Root exception is
> java.rmi.ServerException:
>     RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments;
> nested exception is:
>         java.net.MalformedURLException: unknown protocol:
> dynamosystemresource

This doesn't hint that it's another protocol, but simply another
formatting of the names (i.e. instead of rmi://, or jnp:// they use
dynamosystemresource://). You should probably use our JNDI factories
*and* their factories together. Our will handle one kind of URL's and
theirs will handle their kind.

How to use several URL factories is explained in the JNDI spec.

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


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

Reply via email to