Foren
Using Jackrabbit + MySQL
Tor Iver Wilhelmsen, geändert vor 14 Jahren.
Using Jackrabbit + MySQL
Junior Member Beiträge: 60 Beitrittsdatum: 03.12.08 Neueste Beiträge
Trying to use a database for Jackrabbit, and get the following:
But isn’t a param in repository.xml the same as a property in this regard?
All declarations of DbFileSystem has the databaseType setting like that.
Any ideas?
[#|2010-02-09T13:48:29.832+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=16;_ThreadName=pool-1-thread-5;|13:48:29,832 ERROR [RepositoryImpl:359] failed to start Repository: Configured class org.apache.jackrabbit.core.fs.db.DbFileSystem does not contain the property databaseType. Please fix the repository configuration.
org.apache.jackrabbit.core.config.ConfigurationException: Configured class org.apache.jackrabbit.core.fs.db.DbFileSystem does not contain the property databaseType. Please fix the repository configuration.
at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.java:153)
at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$2.getFileSystem(RepositoryConfigurationParser.java:761)
at org.apache.jackrabbit.core.config.RepositoryConfig.getFileSystem(RepositoryConfig.java:666)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:259)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:618)
at org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:241)
at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:261)
at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:329)
at com.liferay.portal.jcr.jackrabbit.JCRFactoryImpl.createSession(JCRFactoryImpl.java:81)
at com.liferay.portal.jcr.jackrabbit.JCRFactoryImpl.initialize(JCRFactoryImpl.java:96)
at com.liferay.portal.jcr.JCRFactoryUtil.initialize(JCRFactoryUtil.java:62)
at com.liferay.portal.events.GlobalStartupAction.run(GlobalStartupAction.java:173)</init>
But isn’t a param in repository.xml the same as a property in this regard?
<filesystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="javax.naming.InitialContext">
<param name="url" value="java:comp/env/jdbc/Jackrabbit">
<param name="databaseType" value="mysql">
<param name="schemaObjectPrefix" value="J_R_FS_">
</filesystem>
All declarations of DbFileSystem has the databaseType setting like that.
Any ideas?
Amos Fong, geändert vor 14 Jahren.
RE: Using Jackrabbit + MySQL
Liferay Legend Beiträge: 2047 Beitrittsdatum: 07.10.08 Neueste Beiträge
Hi Tor,
It's been a while since I've set this up but I remember this wiki helped me do it
http://www.liferay.com/community/wiki/-/wiki/Main/Hooking+up+Jackrabbit+to+use+a+database+rather+than+the+file+system
It's been a while since I've set this up but I remember this wiki helped me do it
http://www.liferay.com/community/wiki/-/wiki/Main/Hooking+up+Jackrabbit+to+use+a+database+rather+than+the+file+system
Tor Iver Wilhelmsen, geändert vor 14 Jahren.
RE: Using Jackrabbit + MySQL
Junior Member Beiträge: 60 Beitrittsdatum: 03.12.08 Neueste Beiträge
Yes I think that is one of the ones I used as basis, but it's outdated (talking about 4.x); However, I will try using schema attribute as well to specify mysql.