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 file)
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, Frederic -----Message d'origine----- De : Jukka Zitting [mailto:[EMAIL PROTECTED] Envoyé : lundi 16 juin 2008 14:35 À : [email protected] Objet : Re: JCR RMI: how to connect to remote repository ? Hi, On Mon, Jun 16, 2008 at 1:03 PM, Frederic BOY <[EMAIL PROTECTED]> wrote: > 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. BR, Jukka Zitting
