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 "JackRabbitOnTomcat6" by SteveDalton
Date Tue, 30 Dec 2008 05:52:33 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 SteveDalton:
http://wiki.apache.org/jackrabbit/JackRabbitOnTomcat6

------------------------------------------------------------------------------
  mysql -u root jackrabbit -e "GRANT ALL ON jackrabbit.* TO 'jackrabbit'@'localhost' IDENTIFIED
BY 'jackrabbit'"
  }}}
  
- Edit /var/lib/tomcat6/temp/jackrabbit and add the following (deleting file based stuff)
+ Ok, this is the fiddly part. Edit /var/lib/tomcat6/temp/jackrabbit and find all the occurances
of something like this:
+ 
  {{{
+ <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
+   <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
-   <param name="driver" value="com.mysql.jdbc.Driver"/>
-   <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit?useUnicode=true&amp;characterEncoding=UTF-8"/>
-   <param name="user" value="jackrabbit"/>
-   <param name="password" value="jackrabbit"/>
-   <param name="schema" value="mysql"/>
-   <param name="schemaObjectPrefix" value="fs_"/>
+   <param name="schemaObjectPrefix" value="${wsp.name}_"/>
- </FileSystem>
+ </PersistenceManager>
+ }}}
  
+ and change them to 
+ 
+ {{{
  <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
-   <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit?useUnicode=true&amp;characterEncoding=UTF-8"/>
+   <param name="url" value="jdbc:mysql://127.0.0.1:3306/jackrabbit?useUnicode=true&amp;characterEncoding=UTF-8"/>
    <param name="user" value="jackrabbit" />
    <param name="password" value="jackrabbit" />
    <param name="schema" value="mysql"/>
+   <param name="schemaObjectPrefix" value="pm_someuniqueprefix_"/></PersistenceManager>
-   <param name="schemaObjectPrefix" value="version_"/>
- </PersistenceManager>
  }}}
  
- Rest to come... bear with me
+ Make sure you change the part someuniqueprefix to something unique for the type of repository
configuration item you are modifying (ie. workspace, versioning etc)
+ 
+ Now delete the version, workspaces and repository directories and redeploy the app (or restart
tomcat if you like)
+ 
+ {{{
+ rm -rf /var/lib/tomcat6/temp/jackrabbit/version /var/lib/tomcat6/temp/jackrabbit/workspaces
/var/lib/tomcat6/temp/jackrabbit/repository
+ /etc/init.d/tomcat6 restart
+ }}}
+ 
+ Haven't got DbFileSystem working reliably yet - will post that later.
  
  == Other Links ==
   * http://sujitpal.blogspot.com/2007/08/apache-jackrabbit-is-it-for-me.html

Mime
View raw message