cancel
Showing results for 
Search instead for 
Did you mean: 

cm:versionable from stratch

eburriel
Champ in-the-making
Champ in-the-making
Tomcat

I started from 1.1.2 with War expanded
I modify the /alfresco/model/contentModel.xml to add cm:versionable aspect to the "cm:content"
I have a cleaned database.
I launch Tomcat.
(Through eclipse debugging, i watch the launch)
and finally I get a
InvalidStoreRefException( "Store does not exist" ) in org.alfresco.repo.node.db.DBNodeServiceImpl line 200.

the store identifier is lightWeightVersionStore.

I have a workaround ( put the aspect cm:versionable  on an extension of cm:content ).
But I will be happy to understand how to modify smartly  /alfresco/model/contentModel.xml.

Best regards.
1 REPLY 1

davidc
Star Contributor
Star Contributor
Hi,

I've just tried your steps (on a 1.2 release candidate, I admit) and it worked fine.

I modified contentModel.xml as follows (additions in bold):

      <type name="cm:content">
         <title>Content</title>
         <parent>cm:cmobject</parent>
         <properties>
            …
         </properties>
         <mandatory-aspects>
            <aspect>cm:versionable</aspect>
         </mandatory-aspects>
      </type>

There's one thing you can try - modify the line in core-services-context.xml:

    <bean id="importerBootstrap" class="org.alfresco.repo.importer.ImporterBootstrap" init-method="bootstrap" depends-on="alfrescoUserStoreBootstrap">

to:

    <bean id="importerBootstrap" class="org.alfresco.repo.importer.ImporterBootstrap" init-method="bootstrap" depends-on="alfrescoUserStoreBootstrap, versionBootstrap">
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.