Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 98564 invoked from network); 1 Dec 2008 18:53:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 18:53:42 -0000 Received: (qmail 58208 invoked by uid 500); 1 Dec 2008 18:53:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 57817 invoked by uid 500); 1 Dec 2008 18:53:52 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 57806 invoked by uid 99); 1 Dec 2008 18:53:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 10:53:52 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chrismikall@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 18:52:22 +0000 Received: by ug-out-1314.google.com with SMTP id 36so3176187ugg.18 for ; Mon, 01 Dec 2008 10:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=PCfE7l9bF6tts1C+JMNH8yPJIrhGXLN/ctCkRREl1y0=; b=G0uGQ0WPizprDTRig2bYyHTzEy7CF1Rd6hOmCrXEv2Msch1RRXfcFy0aX66pdTGbOt EuN4sSNJ8DlbXu/duVbmk19RfyKTuTg297Kj2uhiw0x0ClV93Oyc61S0Tj68X9DAFqYA 0EfO93djq6FIS/IDLqGIGZxWYAc28A9boXBrk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=Xns+yUIkD5MpSWCrgoiwSsAFaOGVYoe8RfGJeWbpMik9nOK78wol0mM7vgUNARDsyw 6ivRSlWvvUs6u9r9DGRPFu3OxpvXkTfdhUKTl84erf1wvXjnpsYE9LN+6scuABLoOd2E Wj8fPRbYwMloUkb86LPDLFRqkcEjzSqjOacNk= Received: by 10.181.158.3 with SMTP id k3mr4015725bko.182.1228157587554; Mon, 01 Dec 2008 10:53:07 -0800 (PST) Received: by 10.181.220.11 with HTTP; Mon, 1 Dec 2008 10:53:07 -0800 (PST) Message-ID: Date: Mon, 1 Dec 2008 13:53:07 -0500 From: "Christopher M. Logan" To: users@jackrabbit.apache.org Subject: Re: Repository Server setup on Jboss 4.2.3 In-Reply-To: <49339C0A.4050704@gmx.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42056_387050.1228157587432" References: <4932532E.9080604@gmail.com> <49339C0A.4050704@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42056_387050.1228157587432 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I checked the file and it did contain reference to derby. I commented it out and added the mysql PersistenceManager (see below). But when I restarted my application server i still see reference to derby. Is it normal to modify the source code then build to make reference changes? Is there an external way to make these changes? *Here is my output after the server was restarted:* 13:32:09,671 INFO [RepositoryImpl] Starting repository... 13:32:09,687 INFO [LocalFileSystem] LocalFileSystem initialized at path c:\jackrabbit\poc\repository 13:32:09,953 INFO [NodeTypeRegistry] no custom node type definitions found 13:32:09,953 INFO [LocalFileSystem] LocalFileSystem initialized at path c:\jackrabbit\poc\version 13:32:10,859 INFO [ConnectionRecoveryManager] Database: Apache Derby / 10.2.1.6 - (452058) 13:32:10,859 INFO [ConnectionRecoveryManager] Driver: Apache Derby Embedded JDBC Driver / 10.2.1.6 - (452058) 13:32:12,187 INFO [RepositoryImpl] initializing workspace 'default'... 13:32:12,187 INFO [LocalFileSystem] LocalFileSystem initialized at path c:\jackrabbit\poc\workspaces\default 13:32:12,593 INFO [ConnectionRecoveryManager] Database: MySQL / 5.0.51b-community-nt 13:32:12,593 INFO [ConnectionRecoveryManager] Driver: MySQL-AB JDBC Driver / mysql-connector-java-5.0.8 ( Revision: ${svn.Revis ion} ) 13:32:12,843 INFO [RepositoryImpl] workspace 'default' initialized 13:32:13,046 INFO [LocalFileSystem] LocalFileSystem initialized at path c:\jackrabbit\poc\repository\index 13:32:13,171 INFO [SearchIndex] Index initialized: c:/jackrabbit/poc/repository/index Version: 2 13:32:13,203 INFO [LocalFileSystem] LocalFileSystem initialized at path c:\jackrabbit\poc\workspaces\default\index 13:32:13,218 INFO [SearchIndex] Index initialized: c:\jackrabbit\poc\workspaces\default/index Version: 2 13:32:13,218 INFO [RepositoryImpl] Repository started 13:32:13,218 INFO [jcr/local] Created repository (org.apache.jackrabbit.core.RepositoryImpl@1d7ce63) 13:32:13,218 INFO [jcr/local] Created repository handle (org.apache.jackrabbit.jca.JCARepositoryHandle@871dcc) 13:32:13,218 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=jc r/local' to JNDI name 'java:jcr/local' 13:32:13,546 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=Jm sXA' to JNDI name 'java:JmsXA' *Here is the workspace.xml file after the modification:* -Christopher On Mon, Dec 1, 2008 at 3:10 AM, Marcel Reutegger wrote: > Hi, > > please check the workspace.xml file in > c:\jackrabbit\poc\workspaces\default. it > looks like it was created from an old repository.xml that still contained > the > persistence manager configuration using derby. > > regards > marcel > > Christopher M. Logan wrote: > > I'm looking into jcr and jackrabbit model 3 (repository Server). I > > completed the setup but it is taking by default derby and using the file > > system. > > How do I configure the repository server to use another datasource > > besides derby and how to configure the repository to use another > > location for storing data? > > > > Is there an easier way then what I did as described here? Did I do this > right? > > > > What I did: > > 1. made a copy of the default JBoss server directory and called it: > default-jcr > > 2. changed the ports so that i could have two servers running side by > side on the same machine, i changed the default bind port to 11099. > > 3. I changed the 1099 port in > C:\jackrabbit-1.4\jackrabbit-jcr-rmi\src\main\resources\jackrabbit-rmi-service.xml > to 11099 to match the default-jcr server port. > > 4. i ran mvn install then took jackrabbit-jcr-rmi-1.4.jar and > jackrabbit-jca-1.4.rar and put it into the > > default-jcr/deploy > > 5. copied jcr-ds.xml to default-jcr/deploy and made the necessary changes > to where configFile and homeDir are located > > 6. copied the mysql jdbc driver to default-jcr/lib > > 7. started the jboss server > > > > I still see that the *ConnectionRecoveryManager* is still using Apache > Derby how can I change this? > > > > Here are some lines from the Jboss log > > 03:39:34,484 INFO [RepositoryImpl] Starting repository... > > 03:39:34,500 INFO [LocalFileSystem] LocalFileSystem initialized at path > c:\jackrabbit\poc\repository > > 03:39:34,640 INFO [NodeTypeRegistry] no custom node type definitions > found > > 03:39:34,640 INFO [LocalFileSystem] LocalFileSystem initialized at path > c:\jackrabbit\poc\version > > 03:39:34,890 INFO [ConnectionRecoveryManager] Database: MySQL / > 5.0.51b-community-nt > > 03:39:34,890 INFO [ConnectionRecoveryManager] Driver: MySQL-AB JDBC > Driver / mysql-connector-java-5.0.8 ( Revision: ${svn.Revision} ) > > 03:39:34,968 INFO [RepositoryImpl] initializing workspace 'default'... > > 03:39:34,968 INFO [LocalFileSystem] LocalFileSystem initialized at path > c:\jackrabbit\poc\workspaces\default > > *03:39:35,812 INFO [ConnectionRecoveryManager] Database: Apache Derby / > 10.2.1.6 - (452058) > > 03:39:35,812 INFO [ConnectionRecoveryManager] Driver: Apache Derby > Embedded JDBC Driver / 10.2.1.6 - (452058)* > > 03:39:36,437 INFO [RepositoryImpl] workspace 'default' initialized > > 03:39:36,640 INFO [LocalFileSystem] LocalFileSystem initialized at path > c:\jackrabbit\poc\repository\index > > 03:39:36,734 INFO [SearchIndex] Index initialized: > c:/jackrabbit/poc/repository/index Version: 2 > > 03:39:36,734 INFO [LocalFileSystem] LocalFileSystem initialized at path > c:\jackrabbit\poc\workspaces\default\index > > 03:39:36,750 INFO [SearchIndex] Index initialized: > c:\jackrabbit\poc\workspaces\default/index Version: 2 > > 03:39:36,750 INFO [RepositoryImpl] Repository started > > 03:39:36,750 INFO [jcr/local] Created repository > (org.apache.jackrabbit.core.RepositoryImpl@1c5b2de) > > 03:39:36,750 INFO [jcr/local] Created repository handle > (org.apache.jackrabbit.jca.JCARepositoryHandle@1a546cc) > > 03:39:36,750 INFO [ConnectionFactoryBindingService] Bound > ConnectionManager > 'jboss.jca:service=ConnectionFactoryBinding,name=jcr/local' to JNDI name > 'java:jcr/local' > > 03:39:36,843 INFO [ConnectionFactoryBindingService] Bound > ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to > JNDI name 'java:JmsXA' > > 03:39:36,890 INFO [ConnectionFactoryBindingService] Bound > ConnectionManager 'jboss.jca:service=DataSourceBinding,name=wikiDatasource' > to JNDI name 'java:wikiDatasource' > > > > here is the repository.xml file i used for configFile: > > > > > > > > Jackrabbit 1.4//EN" > > " > http://jackrabbit.apache.org/dtd/repository-1.4.dtd"> > > > > > > > > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > > > > > > > > > > > > > > class="org.apache.jackrabbit.core.security.SimpleAccessManager"> > > > > > > > > class="org.apache.jackrabbit.core.security.SimpleLoginModule"> > > > > > > > > > > > > > > > > > > defaultWorkspace="default"/> > > > > > > > > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > > > > > > > > > > class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager"> > > value="jdbc:mysql://localhost:3306/jcr?useUnicode=true&characterEncoding=UTF-8"/> > > > > > > > > > > > > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > > > > > > > > > > > > > > > > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > > > > > > > > > > > > class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager"> > > value="jdbc:mysql://localhost:3306/jcr_version?useUnicode=true&characterEncoding=UTF-8"/> > > > > > > > > > > > > > > > > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > > > > > > > > > > Thank you, > > -Christopher > > > > > > > > ------=_Part_42056_387050.1228157587432--