jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "QuestionsAndAnswers" by DavidBoden
Date Tue, 02 Jan 2007 10:41:27 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by DavidBoden:
http://wiki.apache.org/jackrabbit/QuestionsAndAnswers

------------------------------------------------------------------------------
  
  
  ----
+ 
+ === Overriding the repository home and config location doesn't work in Tomcat ===
+ 
+ The [http://jackrabbit.apache.org/doc/deploy/howto-model1.html Embedded Deployment Model
documentation] on the jackrabbit page describes a simple process of how to take the standard
.war file that is part of the jackrabbit distribution and use Resource settings to change
the location of the repository home and the repository configuration xml file.
+ 
+ I am using this Tomcat config.xml snippet to configure Tomcat 5.5:
+ 
+ {{{
+ <?xml version='1.0' encoding='utf-8'?>
+ <Context displayName="Ark" docBase="c:\dev\ark\jackrabbit-server-1.1.1.war" path="/ark"

+ 
+ useNaming="false" workDir="work\Catalina\localhost\ark" unpackWAR="false">
+ 
+ <Resource name="jcr/repository"
+           auth="Container"
+           type="javax.jcr.Repository"
+           factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
+           configFilePath="c:/dev/ark/src/main/resources/repository.xml"
+           repHomeDir="c:/jackrabbitrepo"/>
+ 
+ </Context>
+ }}}
+ 
+ Jackrabbit loads fine. However, the logs show:
+ 
+ {{{
+ 02.01.2007 10:33:00 *INFO * RepositoryStartupServlet: RepositoryStartupServlet initializing...
(RepositoryStartupServlet.java, line 190)
+ 02.01.2007 10:33:00 *INFO * RepositoryStartupServlet:   repository-home = C:\Program Files\Apache
Software Foundation\Tomcat 5.5\bin\jackrabbit\repository (RepositoryStartupServlet.java, line
242)
+ 
+ ...
+ ...
+ 
+ 02.01.2007 10:33:00 *INFO * LocalFileSystem: LocalFileSystem initialized at path C:\Program
Files\Apache Software Foundation\Tomcat 5.5\bin\jackrabbit\repository\repository (LocalFileSystem.java,
line 166)
+ }}}
+ 
+ Question: Why isn't Jackrabbit using c:/jackrabbitrepo as the repository store as expected?
This should be the most basic use case for Jackrabbit! :)
  
  === Why no node SPI? ===
  
@@ -43, +79 @@

  
  '''Answer:''' The JAAS configuration is no longer required for simple deployments. Starting
from Apache Jackrabbit version 1.0 you do not need to set the JAAS login configuration options
unless you want to override the default settings. See [http://issues.apache.org/jira/browse/JCR-351
JCR-351] for the background and resolution of this issue.
  
- '''Quastion:'''
+ '''Question:'''
  Thank you for the response.
  I have understood, that I have to use "TransientRepository" in place of "Repository" for
omit the JAAS configuration. Is it true ?
  

Mime
View raw message