Created
December 7, 2012 16:50
-
-
Save skuro/4234580 to your computer and use it in GitHub Desktop.
JackRabbit configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
| <Configure class="org.mortbay.jetty.Server"> | |
| <New id="jcr-datastore" class="org.mortbay.jetty.plus.naming.Resource"> | |
| <Arg>jdbc/DataStore</Arg> | |
| <Arg> | |
| <New class="com.mchange.v2.c3p0.ComboPooledDataSource"> | |
| <Set name="driverClass">com.mysql.jdbc.Driver</Set> | |
| <Set name="jdbcUrl">jdbc:mysql://localhost:3306/jcr_datastore</Set> | |
| <Set name="user">jcr</Set> | |
| <Set name="password">jcr</Set> | |
| </New> | |
| </Arg> | |
| </New> | |
| <New id="jcr-workspace" class="org.mortbay.jetty.plus.naming.Resource"> | |
| <Arg>jdbc/Workspace</Arg> | |
| <Arg> | |
| <New class="com.mchange.v2.c3p0.ComboPooledDataSource"> | |
| <Set name="driverClass">com.mysql.jdbc.Driver</Set> | |
| <Set name="jdbcUrl">jdbc:mysql://localhost:3306/jcr_workspace</Set> | |
| <Set name="user">jcr</Set> | |
| <Set name="password">jcr</Set> | |
| </New> | |
| </Arg> | |
| </New> | |
| </Configure> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 2.0//EN" | |
| "http://jackrabbit.apache.org/dtd/repository-2.0.dtd"> | |
| <!-- Example Repository Configuration File | |
| Used by | |
| - org.apache.jackrabbit.core.config.RepositoryConfigTest.java | |
| - | |
| --> | |
| <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.db.DbFileSystem"> | |
| <param name="driver" value="javax.naming.InitialContext"/> | |
| <param name="url" value="jdbc/DataStore"/> | |
| <param name="schema" value="mysql" /> | |
| </FileSystem> | |
| <!-- | |
| data store configuration | |
| --> | |
| <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore"> | |
| <param name="driver" value="javax.naming.InitialContext"/> | |
| <param name="url" value="jdbc/DataStore"/> | |
| <param name="databaseType" value="mysql"/> | |
| </DataStore> | |
| <!-- | |
| security configuration | |
| --> | |
| <Security appName="Jackrabbit"> | |
| <!-- | |
| security manager: | |
| class: FQN of class implementing the JackrabbitSecurityManager interface | |
| --> | |
| <SecurityManager class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" workspaceName="security"> | |
| <!-- | |
| workspace access: | |
| class: FQN of class implementing the WorkspaceAccessManager interface | |
| --> | |
| <!-- <WorkspaceAccessManager class="..."/> --> | |
| <!-- <param name="config" value="${rep.home}/security.xml"/> --> | |
| </SecurityManager> | |
| <!-- | |
| access manager: | |
| class: FQN of class implementing the AccessManager interface | |
| --> | |
| <AccessManager class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager"> | |
| <!-- <param name="config" value="${rep.home}/access.xml"/> --> | |
| </AccessManager> | |
| <LoginModule class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule"> | |
| <!-- | |
| anonymous user name ('anonymous' is the default value) | |
| --> | |
| <param name="anonymousId" value="anonymous"/> | |
| <!-- | |
| administrator user id (default value if param is missing is 'admin') | |
| --> | |
| <param name="adminId" value="admin"/> | |
| </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.db.DbFileSystem"> | |
| <param name="driver" value="javax.naming.InitialContext"/> | |
| <param name="url" value="jdbc/DataStore"/> | |
| <param name="schema" value="mysql" /> | |
| </FileSystem> | |
| <!-- | |
| persistence manager of the workspace: | |
| class: FQN of class implementing the PersistenceManager interface | |
| --> | |
| <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.MySqlPersistenceManager"> | |
| <param name="driver" value="javax.naming.InitialContext"/> | |
| <param name="url" value="jdbc/Workspace"/> | |
| <param name="schemaObjectPrefix" value="${wsp.name}_"/> | |
| <param name="schema" value="mysql"/> | |
| </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"/> | |
| <param name="supportHighlighting" value="true"/> | |
| </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.pool.MySqlPersistenceManager"> | |
| <param name="driver" value="javax.naming.InitialContext"/> | |
| <param name="url" value="jdbc/Workspace"/> | |
| <param name="schemaObjectPrefix" value="default_"/> | |
| <param name="schema" value="mysql"/> | |
| </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"/> | |
| <param name="supportHighlighting" value="true"/> | |
| </SearchIndex> | |
| </Repository> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javax.jcr.RepositoryException: failed to instantiate shared item state manager | |
| at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(RepositoryImpl.java:2044) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1998) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:533) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:342) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:605) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.TransientRepository$3.getRepository(TransientRepository.java:250) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:280) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:376) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.chemistry.opencmis.jcr.JcrRepository.login(JcrRepository.java:127) ~[chemistry-opencmis-server-jcr-0.6.0-classes.jar:0.6.0] | |
| ... 64 common frames omitted | |
| Caused by: org.apache.jackrabbit.core.state.ItemStateException: failed to write bundle: deadbeef-cafe-babe-cafe-babecafebabe | |
| at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.storeBundle(BundleDbPersistenceManager.java:1086) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.putBundle(AbstractBundlePersistenceManager.java:684) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.storeInternal(AbstractBundlePersistenceManager.java:626) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.store(AbstractBundlePersistenceManager.java:503) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.store(BundleDbPersistenceManager.java:479) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.state.SharedItemStateManager.createRootNodeState(SharedItemStateManager.java:1669) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.state.SharedItemStateManager.<init>(SharedItemStateManager.java:208) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.RepositoryImpl.createItemStateManager(RepositoryImpl.java:1379) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(RepositoryImpl.java:2025) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| ... 72 common frames omitted | |
| Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '\xDE\xAD\xBE\xEF\xCA\xFE\xBA\xBE\xCA\xFE\xBA\xBE\xCA\xFE\xBA\xBE' for key 'DEFAULT_BUNDLE_IDX' | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.6.0_37] | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) ~[na:1.6.0_37] | |
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) ~[na:1.6.0_37] | |
| at java.lang.reflect.Constructor.newInstance(Constructor.java:513) ~[na:1.6.0_37] | |
| at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.Util.getInstance(Util.java:386) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1362) ~[mysql-connector-java-5.1.16.jar:na] | |
| at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPreparedStatement.java:989) ~[c3p0-0.9.1.2.jar:0.9.1.2] | |
| at org.apache.jackrabbit.core.util.db.ConnectionHelper.execute(ConnectionHelper.java:438) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyUpdate(ConnectionHelper.java:316) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.util.db.ConnectionHelper$2.call(ConnectionHelper.java:304) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.util.db.ConnectionHelper$2.call(ConnectionHelper.java:300) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:451) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.util.db.ConnectionHelper.update(ConnectionHelper.java:300) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.storeBundle(BundleDbPersistenceManager.java:1082) ~[jackrabbit-core-2.2.7.jar:2.2.7] | |
| ... 80 common frames omitted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment