Sling
  1. Sling
  2. SLING-2384

Can't remove Derby from running instance of launchpad

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      windows 7, java 1.6.0_29

      Description

      In the steps given to change jackrabbit persistence outlined here
      http://sling.apache.org/site/jackrabbit-persistence.html

      The first step asking you to uninstall the Derby Bundle causes the whole thing collapse. How then can one use these steps to add another database?

      Here's what the log file showed

      25.01.2012 16:31:12.198 INFO [FelixDispatchQueue] derby BundleEvent STOPPED
      25.01.2012 16:31:12.198 INFO [FelixDispatchQueue] derby BundleEvent UNRESOLVED
      25.01.2012 16:31:12.198 INFO [FelixDispatchQueue] derby BundleEvent UNINSTALLED
      25.01.2012 16:31:38.297 INFO [FelixDispatchQueue] ojdbc14 BundleEvent INSTALLED
      25.01.2012 16:31:38.297 INFO [FelixDispatchQueue] ojdbc14 BundleEvent RESOLVED
      25.01.2012 16:31:38.312 INFO [FelixDispatchQueue] ojdbc14 BundleEvent STARTED

      <snip>

      1. org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager execute failed, about to reconnect...
      1a. org.apache.sling.jcr.jackrabbit.server stopRepository: Uncaught problem unregistering the repository service (java.lang.IllegalStateException: Service already unregistered.) java.lang.IllegalStateException: Service already unregistered.
      at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:125)
      at org.apache.sling.jcr.base.AbstractSlingRepository.unregisterService(AbstractSlingRepository.java:536)
      at org.apache.sling.jcr.base.AbstractSlingRepository.stopRepository(AbstractSlingRepository.java:861)
      at org.apache.sling.jcr.base.AbstractSlingRepository.deactivate(AbstractSlingRepository.java:638)

      2. org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager failed to re-establish connection java.sql.SQLException: org.apache.derby.jdbc.EmbeddedDriver is not registered with the JDBC driver manager
      at org.apache.derby.jdbc.AutoloadedDriver.getDriverModule(Unknown Source)
      at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
      at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
      at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)

      3. org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager failed to check existence of node state: fbc3862a-ff93-e87f-7b11-4d9b674580fa java.sql.SQLNonTransientConnectionException: No current connection.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory40.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.noCurrentConnection(Unknown Source)

      3a. org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager failed to re-establish connection java.sql.SQLException: org.apache.derby.jdbc.EmbeddedDriver is not registered with the JDBC driver manager

      I took out the exception stack but this is the order in which they came.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Rohit Nijhawan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development