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 Thu, 04 Jan 2007 11:44:39 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?
- 
- Answer: The default Jackrabbit Web Application distribution contains a servlet that starts
up the repository within the web applpication: RepositoryStartupServlet. If you start Jackrabbit
as a Tomcat resource you need to disable the the RepositoryStartupServlet in the web.xml file.
In addition you also need to adapt the parameters for the Repository servlet. Namely the repository-name
and the JNDI settings.
  
  === Why no node SPI? ===
  

Mime
View raw message