I rebuilt the embedded server jar with an optional import for com.mysql.jdbc, and that seemed to have done the trick.
On Wed, Mar 17, 2010 at 5:56 PM, Michael Yin <[email protected]> wrote: > I am trying to use the trunk sling to run on a clustered db config of > jackrabbit on mysql. I did it for jackrabbit 1.4.x on Sling-5, but on this > version of sling, both before and after installing the Sun Microsystems' > JDBC Driver for MySQL bundle, I get the following exception. > > javax.jcr.RepositoryException: File system initialization failure. > at > org.apache.jackrabbit.core.config.RepositoryConfigurationParser$6.getFileSystem(RepositoryConfigurationParser.java:1061) > at > org.apache.jackrabbit.core.config.RepositoryConfig.getFileSystem(RepositoryConfig.java:809) > at > org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:311) > at > org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:673) > at > org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepository.acquireRepository(SlingServerRepository.java:141) > at > org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:831) > at > org.apache.sling.jcr.base.AbstractSlingRepository.run(AbstractSlingRepository.java:961) > at java.lang.Thread.run(Thread.java:619) > Caused by: org.apache.jackrabbit.core.fs.FileSystemException: failed to > initialize file system > at > org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSystem.java:210) > at > org.apache.jackrabbit.core.config.RepositoryConfigurationParser$6.getFileSystem(RepositoryConfigurationParser.java:1058) > ... 7 more > Caused by: javax.jcr.RepositoryException: Could not load JDBC driver class > com.mysql.jdbc.Driver > at > org.apache.jackrabbit.core.util.db.ConnectionFactory.getDriverClass(ConnectionFactory.java:261) > at > org.apache.jackrabbit.core.util.db.ConnectionFactory.createDataSource(ConnectionFactory.java:229) > at > org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:166) > at > org.apache.jackrabbit.core.fs.db.DbFileSystem.getDataSource(DbFileSystem.java:226) > at > org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSystem.java:190) > ... 8 more > Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > at > org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814) > at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) > at > org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:169) > at > org.apache.jackrabbit.core.util.db.ConnectionFactory.getDriverClass(ConnectionFactory.java:256) > ... 12 more > > Does the embedded repository bundle need to have an optional import? i'm > not very osgi proficient. >
