Hi, Julien

I use the .war version in Tomcat, JNDI, and PostgreSQL v9.2 for the new Archiva 
configuration.

Here's my JackRabbit repository.xml I use for the new Archiva configuration:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
-->
<!DOCTYPE Repository
          PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
          "http://jackrabbit.apache.org/dtd/repository-2.0.dtd";>

<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
       <param name="driver" value="javax.naming.InitialContext"/>
       <param name="url" value="java:comp/env/jdbc/datastore"/>
       <param name="schema" value="postgresql"/>
       <param name="schemaObjectPrefix" value="rep_"/>
   </FileSystem>

    <Security appName="Jackrabbit">
      <SecurityManager 
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" 
workspaceName="security"/>
      <AccessManager 
class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager"/>
      <LoginModule 
class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule"/>
    </Security>

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

    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
             <param name="driver" value="javax.naming.InitialContext"/>
             <param name="url" value="java:comp/env/jdbc/filesystem"/>
             <param name="schema" value="postgresql"/>
             <param name="schemaObjectPrefix" value="rep_${wsp.name}_"/>
         </FileSystem>
        <PersistenceManager 
class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
            <param name="driver" value="javax.naming.InitialContext"/>
            <param name="url" value="java:comp/env/jdbc/workspaces"/>
            <param name="schemaObjectPrefix" value="jcr_${wsp.name}_"/>
            <param name="schema" value="postgresql"/>
            <param name="bundleCacheSize" value="8"/>
            <param name="consistencyCheck" value="false"/>
            <param name="minBlobSize" value="16384"/>
        </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="javax.naming.InitialContext"/>
             <param name="url" value="java:comp/env/jdbc/filesystem"/>
             <param name="schema" value="postgresql"/>
             <param name="schemaObjectPrefix" value="rep_version_"/>
         </FileSystem>

        <PersistenceManager 
class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
            <param name="driver" value="javax.naming.InitialContext"/>
            <param name="url" value="java:comp/env/jdbc/workspaces"/>
            <param name="schemaObjectPrefix" value="version_"/>
            <param name="schema" value="postgresql"/>
            <param name="bundleCacheSize" value="8"/>
            <param name="consistencyCheck" value="false"/>
            <param name="minBlobSize" value="16384"/>
        </PersistenceManager>
    </Versioning>

    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
        <param name="path" value="${rep.home}/repository/index"/>
    </SearchIndex>
    
    <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">          
        
        <param name="driver" value="javax.naming.InitialContext"/>
        <param name="url" value="java:comp/env/jdbc/datastore"/>    
        <param name="databaseType" value="postgresql"/>
        <param name="minRecordLength" value="1024"/>
        <param name="maxConnections" value="3"/>
        <param name="copyWhenReading" value="true"/>
        <param name="tablePrefix" value=""/>
        <param name="schemaObjectPrefix" value=""/>
    </DataStore>
</Repository>

 - Chris Harris

-----Original Message-----
From: Julien Béti [mailto:[email protected]] 
Sent: Monday, October 15, 2012 3:49 AM
To: [email protected]
Subject: Upgrading to 1.4-M3 questions (MRM-1643 issue)

Hello,

I have installed Archiva 1.3.5 on Debian Squeeze using Tomcat 6.0.35 and 
PostgreSQL 9.1, and I'm facing the issue reported ad MRM-1643 Error 500 
when browsing artefact group [1].

The solution would be to move to version 1.4-M3, but I has this Maven 
Repository is to be used in a production environment, I would like to 
ask few questions:

- Is the LDAP support have been successfully tested yet? Looking at the 
current version of the "./WEB-INF/applicationContext.xml" file, the LDAP 
support seem to haven't been fully migrated (see TODO comment of Olivier 
Lamy).

- Do you think the upgrade from 1.4-M3 and later preview version to the 
official one would be fully supported, or is there a major risk of 
painful  upgrade?

- The 1.3.x version used to use 2 databases: one for users and one for 
artefacts. Browsing the 1.4-M3 documentation, the artifacts database is 
obviously gone [2]. If true, where the artefacts information is now 
stored? When upgrading from 1.3.x to 1.4-M3, is the current artefacts 
information kept?

- Finally, do you have an idea when the official 1.4 release will be 
out? I imagine that's a very frequent question, but I' haven't found the 
information on the website nor on Jira, sorry if I missed it ;-)

Thank you for your support,

Kind Regards,

Julien Béti.

[1] http://jira.codehaus.org/browse/MRM-1643
[2] https://archiva.apache.org/docs/1.4-M3/adminguide/databases.html
The information transmitted is intended only for the person(s)or entity to 
which it is addressed and may contain confidential and/or legally privileged 
material. Delivery of this message to any person other than the intended 
recipient(s) is not intended in any way to waive privilege or confidentiality. 
Any review, retransmission, dissemination or other use of , or taking of any 
action in reliance upon, this information by entities other than the intended 
recipient is prohibited. If you receive this in error, please contact the 
sender and delete the material from any computer.

For Translation:

http://www.baxter.com/email_disclaimer

Reply via email to