Bootstrapping change to hst:componentclassname in workspace V14

Hi,

In 14.2.2 version project I’m trying to bootstrap a workspace change for a hst:componentclassname and I am following Manage Content - Bloomreach Experience - Open Source CMS and Bootstrapping changes in workspaces

It’s not working. I tried a few things.
It seems to me a use case that will often come up. What does it need to work?

Project was set up using an 14 archetype.

Want to change hst:componentclassname on:
/hst:myproject/hst:configurations/myproject-nl/hst:workspace/hst:containers/newspage

/newspage:
jcr:primaryType: hst:containercomponentfolder
jcr:mixinTypes: [‘dxphst:mergeable’]
/main:

/main-sidebar:
jcr:primaryType: hst:containercomponent
jcr:mixinTypes: [‘dxphst:mergeable’]
hst:label: Newspage main sidebar container
hst:lastmodified: 2020-06-16T10:09:21.313+02:00
hst:xtype: hst.nomarkup
/content:
jcr:primaryType: hst:containeritemcomponent
jcr:mixinTypes: [‘dxphst:mergeable’]
hst:componentclassname: org.onehippo.cms7.essentials.components.EssentialsContentComponent
hst:label: Content
hst:template: newspage-main

content.yaml:
/hst:hst/hst:configurations/myproject-nl/hst:workspace/hst:containers/newspage/main-sidebar/content:
jcr:primaryType: hst:containeritemcomponent
jcr:mixinTypes: [‘dxphst:mergeable’]
hst:componentclassname: nl.myproject.components.NewsDocumentComponent
hst:label: Content
hst:template: newspage-main

hcm-actions.yaml (on same level as hcm-module.yaml in repository-data\site):
action-lists:

  • 1.0:
    /hst:hst/hst:configurations/myproject-nl/hst:workspace/hst:containers/newspage/main-sidebar/content: reload

Logs:
[INFO] [talledLocalContainer] 04.02.2021 13:16:15 ERROR main [ConfigurationServiceImpl.applyContent:1028] Failed to apply all content
[INFO] [talledLocalContainer] javax.jcr.PathNotFoundException: myproject-repository-data-site
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2167) ~[jackrabbit-core-2.18.5-h1.jar:14.2.2]
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2161) ~[jackrabbit-core-2.18.5-h1.jar:14.2.2]
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.18.5-h1.jar:2.18.5-h1]
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) ~[jackrabbit-core-2.18.5-h1.jar:14.2.2]
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2161) ~[jackrabbit-core-2.18.5-h1.jar:14.2.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.impl.NodeDecorator.getNode(NodeDecorator.java:163) ~[hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.impl.NodeDecorator.getNode(NodeDecorator.java:54) ~[hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationBaselineService.getModuleNode(ConfigurationBaselineService.java:377) ~[hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationBaselineService.updateLastExecutedActionForModule(ConfigurationBaselineService.java:1112) ~[hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationContentService.apply(ConfigurationContentService.java:196) ~[hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationContentService.apply(ConfigurationContentService.java:95) ~[hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.applyContent(ConfigurationServiceImpl.java:1025) [hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.init(ConfigurationServiceImpl.java:451) [hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.start(ConfigurationServiceImpl.java:206) [hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at com.onehippo.repository.HippoEnterpriseRepository.initializeConfiguration(HippoEnterpriseRepository.java:180) [hippo-enterprise-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:292) [hippo-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at com.onehippo.repository.HippoEnterpriseRepository.create(HippoEnterpriseRepository.java:65) [hippo-enterprise-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at com.onehippo.repository.HippoEnterpriseRepository.create(HippoEnterpriseRepository.java:55) [hippo-enterprise-repository-engine-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:147) [hippo-repository-connector-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:207) [hippo-repository-servlets-14.2.2.jar:14.2.2]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4871) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5180) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1867) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_231]
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231]
[INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.31]
[INFO] [talledLocalContainer] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) [?:1.8.0_231]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231]
[INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.31]
[INFO] [talledLocalContainer] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) [?:1.8.0_231]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.start(Catalina.java:633) [catalina.jar:9.0.31]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_231]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343) [bootstrap.jar:9.0.31]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474) [bootstrap.jar:9.0.31]
[INFO] [talledLocalContainer] 13:16:21 INFO Automatic reload of browsers is enabled
[INFO] [talledLocalContainer] 13:16:22 INFO Using file system poller (delay: 500 ms)
[INFO] [talledLocalContainer] 13:16:22 INFO Auto reload and Web Files watching enabled. Start with initial (re-)import
[INFO] [talledLocalContainer] 13:16:22 INFO Importing directory ‘C:\alvant\myproject\ADA-Academie\ada-academie\repository-data\webfiles\src\main\resources\site’
[INFO] [talledLocalContainer] 04.02.2021 13:16:25 ERROR main [LocalHippoRepository.start:329]
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] Insecure default administrator credentials are enabled! Change the password!
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 04.02.2021 13:16:25 WARN main [ConfigurationServiceImpl.init:485] ConfigurationService: skipping starting autoexport service due to bootstrap errors

" javax.jcr.PathNotFoundException: myproject-repository-data-site"
not sure why it is looking for that path, maybe setting a debugger point might give more info, or enabling debug for org.onehippo.cm package might give you more info…

I am not sure either. For now I made an updater to set the configuration. I will have a look into this when I have time, this should be resolved as bootstrapping is less work than updater.