jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher M. Logan" <chrismik...@gmail.com>
Subject Re: Repository Server setup on Jboss 4.2.3
Date Mon, 01 Dec 2008 18:53:07 GMT
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:*
<?xml version="1.0" encoding="UTF-8"?>
<Workspace name="default">
        <!--
            virtual file system of the workspace:
            class: FQN of class implementing the FileSystem interface
        -->
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>
        <!--
            persistence manager of the workspace:
            class: FQN of class implementing the PersistenceManager
interface
        -->
        <!--
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
          <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
        </PersistenceManager>
        -->
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
            <param name="url"
value="jdbc:mysql://localhost:3306/jcr?useUnicode=true&amp;characterEncoding=UTF-8"/>
            <param name="user" value="jackrabbit" />
            <param name="password" value="jackrabbit" />
            <param name="schemaObjectPrefix" value="version_"/>
        </PersistenceManager>
        <!--
            Search index and the file system it uses.
            class: FQN of class implementing the QueryHandler interface
        -->
        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
        </SearchIndex>
    </Workspace>

-Christopher


On Mon, Dec 1, 2008 at 3:10 AM, Marcel Reutegger
<marcel.reutegger@gmx.net>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:
> >
> > <?xml version="1.0"?>
> > <!--
> >    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 1.4//EN"
> >                             "
> http://jackrabbit.apache.org/dtd/repository-1.4.dtd">
> > <!-- Example Repository Configuration File -->
> > <Repository>
> >     <!--
> >         virtual file system where the repository stores global state
> >         (e.g. registered namespaces, custom node types, etc.)
> >     -->
> >     <FileSystem
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
> >         <param name="path" value="${rep.home}/repository"/>
> >     </FileSystem>
> >
> >     <!--
> >         security configuration
> >     -->
> >     <Security appName="Jackrabbit">
> >         <!--
> >             access manager:
> >             class: FQN of class implementing the AccessManager interface
> >         -->
> >         <AccessManager
> class="org.apache.jackrabbit.core.security.SimpleAccessManager">
> >             <!-- <param name="config" value="${rep.home}/access.xml"/>
> -->
> >         </AccessManager>
> >
> >         <LoginModule
> class="org.apache.jackrabbit.core.security.SimpleLoginModule">
> >            <!-- anonymous user name ('anonymous' is the default value)
> -->
> >            <param name="anonymousId" value="anonymous"/>
> >            <!--
> >               default user name to be used instead of the anonymous user
> >               when no login credentials are provided (unset by default)
> >            -->
> >            <!-- <param name="defaultUserId" value="superuser"/> -->
> >         </LoginModule>
> >     </Security>
> >
> >     <!--
> >         location of workspaces root directory and name of default
> workspace
> >     -->
> >     <Workspaces rootPath="${rep.home}/workspaces"
> defaultWorkspace="default"/>
> >     <!--
> >         workspace configuration template:
> >         used to create the initial workspace if there's no workspace yet
> >     -->
> >     <Workspace name="${wsp.name}">
> >         <!--
> >             virtual file system of the workspace:
> >             class: FQN of class implementing the FileSystem interface
> >         -->
> >         <FileSystem
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
> >             <param name="path" value="${wsp.home}"/>
> >         </FileSystem>
> >         <!--
> >             persistence manager of the workspace:
> >             class: FQN of class implementing the PersistenceManager
> interface
> >         -->
> >         <!--
> >         <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
> >           <param name="url"
> value="jdbc:derby:${wsp.home}/db;create=true"/>
> >           <param name="schemaObjectPrefix" value="${wsp.name}_"/>
> >         </PersistenceManager>
> >         -->
> >         <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
> >             <param name="url"
> value="jdbc:mysql://localhost:3306/jcr?useUnicode=true&amp;characterEncoding=UTF-8"/>
> >             <param name="user" value="jackrabbit" />
> >             <param name="password" value="jackrabbit" />
> >             <param name="schemaObjectPrefix" value="version_"/>
> >         </PersistenceManager>
> >         <!--
> >             Search index and the file system it uses.
> >             class: FQN of class implementing the QueryHandler interface
> >         -->
> >         <SearchIndex
> class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
> >             <param name="path" value="${wsp.home}/index"/>
> >         </SearchIndex>
> >     </Workspace>
> >
> >     <!--
> >         Configures the versioning
> >     -->
> >     <Versioning rootPath="${rep.home}/version">
> >         <!--
> >             Configures the filesystem to use for versioning for the
> respective
> >             persistence manager
> >         -->
> >         <FileSystem
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
> >             <param name="path" value="${rep.home}/version" />
> >         </FileSystem>
> >
> >         <!--
> >             Configures the persistence manager to be used for persisting
> version state.
> >             Please note that the current versioning implementation is
> based on
> >             a 'normal' persistence manager, but this could change in
> future
> >             implementations.
> >         -->
> >         <!--
> >         <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
> >           <param name="url"
> value="jdbc:derby:${rep.home}/version/db;create=true"/>
> >           <param name="schemaObjectPrefix" value="version_"/>
> >         </PersistenceManager>
> >         -->
> >         <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
> >             <param name="url"
> value="jdbc:mysql://localhost:3306/jcr_version?useUnicode=true&amp;characterEncoding=UTF-8"/>
> >             <param name="user" value="jackrabbit" />
> >             <param name="password" value="jackrabbit" />
> >             <param name="schemaObjectPrefix" value="version_"/>
> >         </PersistenceManager>
> >     </Versioning>
> >
> >     <!--
> >         Search index for content that is shared repository wide
> >         (/jcr:system tree, contains mainly versions)
> >     -->
> >     <SearchIndex
> class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
> >         <param name="path" value="${rep.home}/repository/index"/>
> >     </SearchIndex>
> > </Repository>
> >
> > Thank you,
> > -Christopher
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message