I am attempting to use an existing Jackrabbit repository. To do so, I have added a simple repository confuigurator as follows:

<pre>
public class GuvnorCrxDavConfigurator extends JCRRepositoryConfigurator {
    public GuvnorCrxDavConfigurator() {
                log.info("Creating CRX configurator.");
                defaultJCRImplClass = RepositoryFactoryImpl.class.getName();
        }

        @Override
        public Repository getJCRRepository(Properties properties) throws RepositoryException {
                log.info("Creating CRX client repository.");
                try {
                        String url = null;
                        if (properties != null) {
                                url = properties.getProperty(REPOSITORY_URL);
                        }
                        if (url == null) {
                                url = DEFAULT_URL;
                        }
                        log.info("Repository URL is " + url);
                        repository = JcrUtils.getRepository(url);
                        if (repository != null) {
                                log.info("Client repository created.");
                        } else {
                                log.error("Repository NOT created.");
                        }
                        return repository;
                } catch (Exception e) {
                        throw new RepositoryException(e);
                }
        }

        public Session login(String userName) throws RepositoryException {
                log.info("Attempted login with username " + userName);
                System.out.println("Logging in with username " + userName);
                Credentials credentials = new SimpleCredentials(userName, "password".toCharArray());
                return repository.login(credentials);
        }

        @Override
        public Session login(String userName, String password) throws RepositoryException {
                log.info("Attempted login with username " + userName + " and password " + password);
                System.out.println("Logging in with username " + userName + " and password " + password);
                return super.login(userName, password);
        }

        public void registerNodeTypesFromCndFile(String cndFileName, Session session, Workspace workspace)
                        throws RepositoryException {
                log.info("Manually load CND files to CRX");
        }

        /**
         * {@inheritDoc}@see
         * org.drools.repository.JCRRepositoryConfigurator#shutdown()
         */
        public void shutdown() {
                if (repository instanceof TransientRepository) {
                        ((TransientRepository) repository).shutdown();
                }
        }
}
</pre>

And I have registered the new configurator in 

<pre>
       &lt;component name="repositoryConfiguration">
                &lt;property name="properties">
                        &lt;key>org.drools.repository.configurator&lt;/key>
                        &lt;value>com.statestreet.rxp3.pilot.guvnor.GuvnorCrxDavConfigurator&lt;/value>
                        &lt;key>org.apache.jackrabbit.repository.uri&lt;/key>
                        &lt;value>http://localhost:7402/crx/server&lt;/value>
                        &lt;key>org.drools.repository.admin.username&lt;/key>
                        &lt;value>guvnor&lt;/value>
                        &lt;key>org.drools.repository.admin.password&lt;/key>
                        &lt;value>guvnor&lt;/value>
                &lt;/property>
        &lt;/component>
</pre>

The root nodes are created in the repository, but then somewhere in the auto migration process, it barfs. 

I guess I am new territory here. 

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/AUTO-MIGRATION-Error-when-creating-a-new-rule-package-tp3685532p3688091.html">Re: AUTO MIGRATION Error when creating a new rule package</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>