Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 51887 invoked from network); 8 Dec 2009 06:17:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 06:17:48 -0000 Received: (qmail 93315 invoked by uid 500); 8 Dec 2009 06:17:48 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 93142 invoked by uid 500); 8 Dec 2009 06:17:46 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 93131 invoked by uid 99); 8 Dec 2009 06:17:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 06:17:46 +0000 X-ASF-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1257438615597-510167@n4.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 06:17:44 +0000 Received: from joe.nabble.com ([192.168.236.151]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NHtNz-0003TS-DV for users@jackrabbit.apache.org; Mon, 07 Dec 2009 22:17:23 -0800 Date: Mon, 7 Dec 2009 22:17:23 -0800 (PST) From: anand To: users@jackrabbit.apache.org Message-ID: <1260253043410-955014.post@n4.nabble.com> Subject: Derby MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: anand Hello Users, I have jackrabbit1.5.6. repository running i can view it at http://localhost:8080/jackrabbit-webapp-1.5.6./repository/default/ . And when i want to run repository through my code then it's showing the bug that connection could not be created. Stack Trace: 44877 [AWT-EventQueue-0] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting repository... 45082 [AWT-EventQueue-0] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem initialized at path /home/sda_tr1/Desktop/simer/apache-tomcat-6.0.20/bin/jackrabbit/repository 46376 [AWT-EventQueue-0] INFO org.apache.jackrabbit.core.nodetype.NodeTypeRegistry - no custom node type definitions found 46420 [AWT-EventQueue-0] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem initialized at path /home/sda_tr1/Desktop/simer/apache-tomcat-6.0.20/bin/jackrabbit/version 50588 [AWT-EventQueue-0] WARN org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager - Could not connect; driver: org.apache.derby.jdbc.EmbeddedDriver url: jdbc:derby:/home/sda_tr1/Desktop/simer/apache-tomcat-6.0.20/bin/jackrabbit/version/db;create=true user: null error: java.sql.SQLException: Failed to start database '/home/sda_tr1/Desktop/simer/apache-tomcat-6.0.20/bin/jackrabbit/version/db', see the next exception for details. java.sql.SQLException: Failed to start database '/home/sda_tr1/Desktop/simer/apache-tomcat-6.0.20/bin/jackrabbit/version/db', see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) and my code is try { RepositoryImpl rp = new RepositoryImpl(RepositoryConfig.create("repository.xml", "/home/sda_tr1/Desktop/simer/apache-tomcat-6.0.20/bin/jackrabbit")); Subject sbj = new Subject(); Subject sb = sbj.getSubject(AccessController.getContext()); SessionImpl impl = rp.createSession(sb, "default"); rp.onSessionCreated(impl); FirstHop usermanagerimpl = new FirstHop(impl, "simer"); // usermanagerimpl.show(); } catch ( RepositoryException ex) { Logger.getLogger(FirstHop.class.getName()).log(Level.SEVERE, null, ex); } I have derby10.2.jar in my classpath as well as in NetBeans lib. I' m not getting it. Any help will be appreciated. Thanks, simer -- View this message in context: http://n4.nabble.com/Derby-tp955014p955014.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.