Hey guys!
I have set up the OpenKM-5.0.2_JBoss-4.2.3.GA standalone server and now i started my own application (in this case in the same jboss) which uses Jackrabbit. What i want to do is have the jackrabbit in my application use the repository of OpenKM - and my idea was to do that via WebDAV.
I can access the OpenKM WebDAV via Firefox and WebDAV clients on windows, but i have problems to access it with JcrUtils.getRepository(uri), where uri is either http://localhost:8080/OpenKM/repository/default or http://localhost:8080/OpenKM/repository ... t/okm:root - since it seems the getRepository method is not providing any way to include credentials... (correct me if i am wrong):
Can you tell me how to switch off Authentication on the OpenKM WebDAV and let anyone in (at least as a first step in my search for a solution)?
Or maybe someone already tried what i am doing and can give me a hint on how else i should do it... maybe JNDI or RMI? Is there a way to expose the OpenKM repository via JNDI or RMI without recompiling the source, i mean: in the config? Example code is always welcome
Sorry, i am a total noob on that whole jackrabbit/jcr thing...
Thanks for your help!!
I have set up the OpenKM-5.0.2_JBoss-4.2.3.GA standalone server and now i started my own application (in this case in the same jboss) which uses Jackrabbit. What i want to do is have the jackrabbit in my application use the repository of OpenKM - and my idea was to do that via WebDAV.
I can access the OpenKM WebDAV via Firefox and WebDAV clients on windows, but i have problems to access it with JcrUtils.getRepository(uri), where uri is either http://localhost:8080/OpenKM/repository/default or http://localhost:8080/OpenKM/repository ... t/okm:root - since it seems the getRepository method is not providing any way to include credentials... (correct me if i am wrong):
Code: Select all
Now my questions:The following RepositoryFactory classes were consulted:
org.apache.jackrabbit.core.RepositoryFactoryImpl: declined
org.apache.jackrabbit.commons.JndiRepositoryFactory: declined
org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory: failed
because of RepositoryException: Failed to read the resource at URL http://localhost:8080/OpenKM/repository/default/okm:root
because of IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/OpenKM/repository/defeault/okm:root
org.apache.jackrabbit.jcr2dav.Jcr2davRepositoryFactory: declined
org.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory: declinedCan you tell me how to switch off Authentication on the OpenKM WebDAV and let anyone in (at least as a first step in my search for a solution)?
Or maybe someone already tried what i am doing and can give me a hint on how else i should do it... maybe JNDI or RMI? Is there a way to expose the OpenKM repository via JNDI or RMI without recompiling the source, i mean: in the config? Example code is always welcome
Sorry, i am a total noob on that whole jackrabbit/jcr thing...
Thanks for your help!!
