derby mailing list?
On Thu, Sep 30, 2010 at 11:11 AM, Clemens Wyss <[email protected]> wrote: > same error when I change the path... > > Got one step further: > > when I force the loading of EmbeddedDriver: > ... > org.apache.derby.jdbc.EmbeddedDriver driver = > (EmbeddedDriver) > Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance(); > ... > I get a FileNotFoundException, unfortunately the missing file is not > mentioned: > Thread [main] (Suspended (exception FileNotFoundException)) > URLClassPath$JarLoader.getJarFile(URL) line: 641 > URLClassPath$JarLoader.access$600(URLClassPath$JarLoader, URL) line: > 538 > URLClassPath$JarLoader$1.run() line: 605 > AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not > available [native method] > URLClassPath$JarLoader.ensureOpen() line: 597 > URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 581 > URLClassPath$JarLoader$3.run() line: 806 > AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not > available [native method] > URLClassPath$JarLoader.getResource(String, boolean, Set) line: 802 > URLClassPath$JarLoader.getResource(String, boolean) line: 762 > URLClassPath.getResource(String, boolean) line: 168 > URLClassLoader$1.run() line: 192 > AccessController.doPrivileged(PrivilegedExceptionAction<T>, > AccessControlContext) line: not available [native method] > Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 188 > Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: > 303 > Launcher$AppClassLoader.loadClass(String, boolean) line: 301 > Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248 > Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: > 316 > Class<T>.forName0(String, boolean, ClassLoader) line: not available > [native method] > Class<T>.forName(String) line: 169 > FileMonitor(BaseMonitor).getImplementations(Properties, boolean) line: > not available > FileMonitor(BaseMonitor).getDefaultImplementations() line: not > available > FileMonitor(BaseMonitor).runWithState(Properties, PrintStream) line: > not available > FileMonitor.<init>(Properties, PrintStream) line: not available > Monitor.startMonitor(Properties, PrintStream) line: not available > JDBCBoot.boot(String, PrintStream) line: not available > EmbeddedDriver.boot() line: not available > EmbeddedDriver.<clinit>() line: not available > Class<T>.forName0(String, boolean, ClassLoader) line: not available > [native method] > Class<T>.forName(String) line: 169 > JcrAccess.<init>() line: 27 > Proj2SlingApp.main(String[]) line: 68 > ... > What dependencies (jar's) am I possibly missing? > > >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]]on Behalf >> Of Justin Edelson >> Sent: Thursday, September 30, 2010 4:56 PM >> To: [email protected] >> Subject: Re: Cannot create JDBC driver of class >> 'org.apache.derby.jdbc.EmbeddedDriver' for connect URL >> 'jdbc:derby:...' >> >> >> 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 >> <[email protected]> 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 >> > >> > >> >
