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

        Gavin made changes -
        Workflow re-open possible,doc-test-required [ 12788756 ] no-reopen-closed,doc-test-required [ 12791312 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12767983 ] re-open possible,doc-test-required [ 12788756 ]
        Gavin made changes -
        Workflow Copy of no-reopen-closed,doc-test-required [ 12765243 ] no-reopen-closed,doc-test-required [ 12767983 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12650551 ] Copy of no-reopen-closed,doc-test-required [ 12765243 ]
        Ian Boston made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]
        Rohit Nijhawan made changes -
        Field Original Value New Value
        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

        &lt;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.
        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.
        Rohit Nijhawan created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development