Josh,

Unless you _really_ want to you don't have to hook up the
JCR/jackrabbit store to MySQL.

You can remove the repository.xml file and Jackrabbit will default to
the internal database. This is the recommended way to set up OAE going
forward.

Are you following these instructions?
https://confluence.sakaiproject.org/display/KERNDOC/Configuring+Nakamura+for+MySQL

They just became next on my list to update and remove the JCR-specific configs.

Erik

On Mon, Aug 13, 2012 at 8:34 PM, Joshua Swink <joshua.sw...@gmail.com> wrote:
> I am not yet able to use mysql with 1.5.0-SNAPSHOT as it can't find the
> driver. I followed instructions here:
> https://confluence.sakaiproject.org/display/KERNDOC/Configuring+Nakamura+for+MySQL
>
> When Nakamura starts up, it shows that the bundle is present:
>
> 13.08.2012 17:22:34.665 *INFO* [main] Updated
> /tmp/unpack2593122004573630871bundles/30/org.sakaiproject.nakamura.mysqljdbc-1.5.0-SNAPSHOT.jar
>
> But then the class can't be loaded:
>
>
> 13.08.2012 17:32:08.426 *ERROR* [Repository Pinger]
> org.apache.sling.jcr.jackrabbit.server acquireRepository: Repository problem
> starting repository from
> file:/home/yath/oaed2/sling/jackrabbit/repository.xml in
> /home/yath/oaed2/sling/jackrabbit (javax.jcr.RepositoryException:
> org.apache.jackrabbit.core.cluster.ClusterException: Cluster initialization
> failed: org.apache.jackrabbit.core.cluster.ClusterNode@7cd70c)
> javax.jcr.RepositoryException:
> org.apache.jackrabbit.core.cluster.ClusterException: Cluster initialization
> failed: org.apache.jackrabbit.core.cluster.ClusterNode@7cd70c
>
> ...
>
> 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.journal.DatabaseJournal.getDataSource(DatabaseJournal.java:284)
>         at
> org.apache.jackrabbit.core.journal.DatabaseJournal.init(DatabaseJournal.java:258)
>         ... 11 more
> Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver not found
> by org.apache.sling.jcr.jackrabbit.server [53]
>         at
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
>         at
> org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
>         at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
>         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)
>         ... 15 more
>
> Anyone know how to fix this?
>
> Josh
>
> _______________________________________________
> oae-dev mailing list
> oae-dev@collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev
>
_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to