jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Cymbalak <a.cymba...@nechtan.org>
Subject error with firsthops
Date Mon, 04 Aug 2008 22:03:02 GMT
Hi,

I am trying to go through the firsthops tutorial and I am having a 
problem with the repository not being created.

Here are the specs:
Eclipse 3.3.0 (running as Administrator)
Jackrabbit 1.4 built with Maven 2.0.9
Windows Vista
Java 1.6.0_03
all classes are in the classpath as noted on the Firsthops example

The code compiles OK and then the following happens:
172 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting 
repository...
219 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - 
LocalFileSystem initialized at path repository\repository
437 [main] INFO org.apache.jackrabbit.core.nodetype.NodeTypeRegistry 
- no custom node type definitions found
453 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - 
LocalFileSystem initialized at path repository\version
1420 [main] INFO 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Database: Apache Derby / 10.2.1.6 - (452058)
1420 [main] INFO 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Driver: Apache Derby Embedded JDBC Driver / 10.2.1.6 - (452058)
2123 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - 
initializing workspace 'default'...
2123 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem 
- LocalFileSystem initialized at path repository\workspaces\default
2138 [main] WARN 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Could not connect; driver: org.apache.derby.jdbc.EmbeddedDriver 
url: jdbc:derby:repository\workspaces\default/db;create=true 
user:  error: java.sql.SQLException: Failed to create database 
'repository\workspaces\default/db', see the next exception for details.
java.sql.SQLException: Failed to create database 
'repository\workspaces\default/db', see the next exception for details.
at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionFactory.getConnection(ConnectionFactory.java:82)
at 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.setupConnection(ConnectionRecoveryManager.java:328)
at 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.<init>(ConnectionRecoveryManager.java:137)
at 
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:558)
at 
org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager.init(DerbyPersistenceManager.java:263)
at 
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1159)
at 
org.apache.jackrabbit.core.RepositoryImpl.access$700(RepositoryImpl.java:104)
at 
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(RepositoryImpl.java:1727)
at 
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1710)
at 
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:569)
at 
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:408)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:304)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:550)
at 
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
at 
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
at 
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
at 
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:388)
at FirstHop.main(FirstHop.java:19)
2138 [main] ERROR 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- could not setup connection, reason: Failed to create database 
'repository\workspaces\default/db', see the next exception for 
details., state/code: XJ041/40000
2653 [main] WARN 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Could not connect; driver: org.apache.derby.jdbc.EmbeddedDriver 
url: jdbc:derby:repository\workspaces\default/db;create=true 
user:  error: java.sql.SQLException: Failed to create database 
'repository\workspaces\default/db', see the next exception for details.
java.sql.SQLException: Failed to create database 
'repository\workspaces\default/db', see the next exception for details.
at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionFactory.getConnection(ConnectionFactory.java:82)
at 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.setupConnection(ConnectionRecoveryManager.java:328)
at 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.reestablishConnection(ConnectionRecoveryManager.java:403)
at 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.getConnection(ConnectionRecoveryManager.java:157)
at 
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.prepareSchemaObjectPrefix(BundleDbPersistenceManager.java:797)
at 
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:562)
at 
org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager.init(DerbyPersistenceManager.java:263)
at 
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1159)
at 
org.apache.jackrabbit.core.RepositoryImpl.access$700(RepositoryImpl.java:104)
at 
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(RepositoryImpl.java:1727)
at 
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1710)
at 
org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:569)
at 
org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:408)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:304)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:550)
at 
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
at 
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
at 
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
at 
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:388)
at FirstHop.main(FirstHop.java:19)

The last error is repeated 12 times and then the program shuts 
down.  I have attempted to set the system property 
${system_property:org.apache.jackrabbit.repository.home=c:\users\<user 
dir>\desktop} but in the end the same error occurs.  Can anyone point 
me in the right direction?

Thanks,
Angie 



Mime
View raw message