When you deploy Jackrabbit repository into Tomcat as shared resource (deployment Model 2), and then you try to enable RMI access to shared repository using RepositoryStartup servlet you get failed. The reason is that RepositoryStartup servlet can only publish locally created repository but not shared one. See this for details.
To solve this problem you need to write simple servlet which gets repository reference via JNDI and publish it via RMI. So we did it for you :)
Just run provided ant script by following command line:
ant /release distr
It produces ready-to-deploy war file in folder distr/war.
You can configure RMI and repository ports in servlet's web.xml. All settings are well documented there.
Feel free to ask questions about this product info [at] bitrete.ru. (www.bitrete.ru)