Interesting, I had this problem with Sun AS 8.1 but in Tomcat (I was
using T4 at the moment) the javax.jcr.Repository interface it worked
just fine. I've thought it was a nit of Sun AS 8.1.
On Jun 10, 2005, at 9:04 AM, Florian Ried wrote:
Jukka Zitting wrote:
Hi,
Florian Ried wrote:
<!-- Global Repository -->
<Resource name="jcr/globalRepository"
auth="Container"
type="javax.jcr.Repository"
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
configFilePath="D:\repotest/repository.xml"
repHomeDir="D:\repotest"/>
I checked through the BindableRepositoryFactory source code [1] and
noticed that it doesn't instantiate the repository unless the
resource type is set to
"org.apache.jackrabbit.core.jndi.BindableRepository" (see line 60).
Thus the instructions on the web are incorrect in proposing to use
"javax.jcr.Repository".
Try changing your global configuration to:
<Resource name="jcr/globalRepository"
auth="Container"
type="org.apache.jackrabbit.core.jndi.BindableRepository"
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
configFilePath="D:\repotest/repository.xml"
repHomeDir="D:\repotest"/>
With org.apache.jackrabbit.core.jndi.BindableRepository it works
perflectly. Thank you. My next step is to deploy Jackrabbit as
Repository Server (see Deployment Model 3)