jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <jus...@justinedelson.com>
Subject Re: Cannot create JDBC driver of class 'org.apache.derby.jdbc.EmbeddedDriver' for connect URL 'jdbc:derby:...'
Date Thu, 30 Sep 2010 14:56:13 GMT
Something looks weird about this line:

String home = "/dev/sling/sling/jackrabbit";

You're running on Windows, right? So maybe this should be

String home = "c:\\dev\\sling\\sling\\jackrabbit";

WDYT?

Justin

On Thu, Sep 30, 2010 at 10:18 AM, Clemens Wyss <clemensdev@mysign.ch> wrote:
> I am trying to open an existing sling jackrabbit repository.
>
> My code is as follows:
> ...
> String configURLObj = "file:/C:/dev/sling/sling/jackrabbit/repository.xml";
> URL configURL = new URL(configURLObj);
> InputStream ins = configURL.openStream();
> String home = "/dev/sling/sling/jackrabbit";
> RepositoryConfig crc = RepositoryConfig.create( ins, home );
> //RepositoryConfig crc = RepositoryConfig.create( new File("/dev/sling/sling/jackrabbit")
);
> Repository repository = RepositoryImpl.create( crc );
> ...
>
> or
>
> ...
> RepositoryConfig crc = RepositoryConfig.create( new File("/dev/sling/sling/jackrabbit")
);
> Repository repository = RepositoryImpl.create( crc );
> ...
>
> Unforunately I am getting a
>  javax.jcr.RepositoryException: Cannot instantiate persistence manager
>  org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager
>
> with the nested SQLNestedException
>  Cannot create JDBC driver of class 'org.apache.derby.jdbc.EmbeddedDriver'
>  for connect URL 'jdbc:derby:/dev/sling/sling/jackrabbit/version/db;create=true'
>
> Also note
> - jackrabbit-standalone-2.1.1.jar and derby-10.5.3.0_1.jar are in build/run path
> - sling is not ruuning ;-)
> - lock files are deleted ;-)
>
> Any help/advice appreciated
> Clemens
>
>

Mime
View raw message