jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederic BOY" <frederic....@gmail.com>
Subject RE: JCR RMI: how to connect to remote repository ?
Date Mon, 16 Jun 2008 16:47:05 GMT
Thanks Jukka & Anil,
It works fine now.

Still I have one more question: 
How can I dynamically refer to the url jboss is bound to in
jackrabbit-rmi-service.xml file (contained in the jackrabbit-jcr-rmi jar

I mean there's "jnp://localhost:1099/jcrServer" set as default and I believe
I can change this. But do you think I can set it using some environment
variable so it would dynamically match the ip jboss is bound to ?

Thanks again guys,

-----Message d'origine-----
De : Jukka Zitting [mailto:jukka.zitting@gmail.com] 
Envoyé : lundi 16 juin 2008 14:35
À : users@jackrabbit.apache.org
Objet : Re: JCR RMI: how to connect to remote repository ?


On Mon, Jun 16, 2008 at 1:03 PM, Frederic BOY <frederic.v4x@gmail.com>
> I get a java.lang.ClassCastException:
> org.apache.jackrabbit.rmi.server.ServerRepository_Stub

You're missing the jackrabbit-jcr-rmi jar file. The easiest way is to
make it available in your client classpath. Alternatively you can
configure the RMI codebase in your server and make the required
classes available remotely.


Jukka Zitting

View raw message