jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Evans" <objective...@gmail.com>
Subject Limiting access to the local file system?
Date Thu, 19 Jul 2007 00:26:47 GMT
Folks,

In the environment where I intend to deploy jackrabbit there is a
constraint preventing servlets from writing to disk ( I think I do
have write access to /tmp ) . So, I tried configuring jackrabbit using
the DBFileSystem thinking that would do the trick. No luck.

Any thoughts on getting around this limit?

REPOSITORY CONFIG
----------------------------------
<?xml version="1.0"?>
<Repository>

  <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
    <param name="driver" value="com.mysql.jdbc.Driver" />
    <param name="url" value="jdbc:mysql://localhost/jcr" />
    <param name="schema" value="mysql" />
    <param name="schemaObjectPrefix" value="filesystem_" />
    <param name="user" value="root" />
    <param name="password" value="" />
  </FileSystem>

  <Security appName="Jackrabbit">
    <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager"></AccessManager>

    <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
      <param name="anonymousId" value="anonymous" />
    </LoginModule>
  </Security>


  <Workspaces  rootPath="${rep.home}/workspaces" defaultWorkspace="jcr" />

  <Workspace name="jcr">

    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
      <param name="driver" value="com.mysql.jdbc.Driver" />
      <param name="url" value="jdbc:mysql:///jcr" />
      <param name="schema" value="mysql" />
      <param name="schemaObjectPrefix" value="filesystem_" />
      <param name="user" value="root" />
      <param name="password" value="" />
    </FileSystem>

    <PersistenceManager
class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
      <param name="driver" value="com.mysql.jdbc.Driver" />
      <param name="url" value="jdbc:mysql:///jcr" />
      <param name="schema" value="mysql" />
      <param name="schemaObjectPrefix" value="app_" />
      <param name="externalBLOBs" value="false" />
      <param name="user" value="root" />
      <param name="password" value="" />
    </PersistenceManager>

    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
      <param name="path" value="${wsp.home}/index" />
    </SearchIndex>
  </Workspace>

  <Versioning rootPath="${rep.home}/version">

    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
      <param name="driver" value="com.mysql.jdbc.Driver" />
      <param name="url" value="jdbc:mysql:///jcr" />
      <param name="schema" value="mysql" />
      <param name="schemaObjectPrefix" value="rep_" />
      <param name="user" value="root" />
      <param name="password" value="" />
    </FileSystem>

    <PersistenceManager
class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
      <param name="driver" value="com.mysql.jdbc.Driver" />
      <param name="url" value="jdbc:mysql:///jcr" />
      <param name="schema" value="mysql" />
      <param name="schemaObjectPrefix" value="app_" />
      <param name="externalBLOBs" value="false" />
      <param name="user" value="root" />
      <param name="password" value="" />
    </PersistenceManager>
  </Versioning>

</Repository>

Mime
View raw message