jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anand <simer.anan...@gmail.com>
Subject Derby
Date Tue, 08 Dec 2009 06:17:23 GMT

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.

Mime
View raw message