13.0.0 Upgrade issues

Hello.

I am currently trying to upgrate Bloomreach from version 12.6.25 to version 13.0.0

I was able to run the new version locally with -Pcargo.run but when I deploy the application to an environment like a VM (where I use the Tomcat version 8.5.68) I am getting the below error:

05-Apr-2022 13:11:02.488 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.68]
05-Apr-2022 13:11:02.512 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/razvan/tomcat/webapps/cms.war]
05-Apr-2022 13:11:09.520 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
        org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cms]]
                at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)
        Caused by: java.lang.NoClassDefFoundError: org/hippoecm/hst/core/container/ContainerException
                at java.lang.Class.getDeclaredFields0(Native Method)
                at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
                at java.lang.Class.getDeclaredFields(Class.java:1916)
                at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
                at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
                at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
                at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:782)
                at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5130)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                ... 10 more
        Caused by: java.lang.ClassNotFoundException: org.hippoecm.hst.core.container.ContainerException
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1415)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1223)
                ... 23 more
05-Apr-2022 13:11:09.522 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/home/razvan/tomcat/webapps/cms.war]
        java.lang.IllegalStateException: Error starting child
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cms]]
                at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
                ... 9 more
        Caused by: java.lang.NoClassDefFoundError: org/hippoecm/hst/core/container/ContainerException
                at java.lang.Class.getDeclaredFields0(Native Method)
                at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
                at java.lang.Class.getDeclaredFields(Class.java:1916)
                at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
                at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
                at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
                at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:782)
                at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5130)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                ... 10 more
        Caused by: java.lang.ClassNotFoundException: org.hippoecm.hst.core.container.ContainerException
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1415)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1223)
                ... 23 more
05-Apr-2022 13:11:09.523 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/razvan/tomcat/webapps/cms.war] has finished in [7,010] ms
05-Apr-2022 13:11:09.525 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/razvan/tomcat/webapps/site.war]
05-Apr-2022 13:11:13.081 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
        org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/site]]
                at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)
        Caused by: java.lang.NoClassDefFoundError: org/hippoecm/hst/container/event/HttpSessionCreatedEvent
                at java.lang.Class.getDeclaredFields0(Native Method)
                at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
                at java.lang.Class.getDeclaredFields(Class.java:1916)
                at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
                at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
                at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
                at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:782)
                at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5130)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                ... 10 more
        Caused by: java.lang.ClassNotFoundException: org.hippoecm.hst.container.event.HttpSessionCreatedEvent
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1415)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1223)
                ... 23 more
05-Apr-2022 13:11:13.082 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/home/razvan/tomcat/webapps/site.war]
        java.lang.IllegalStateException: Error starting child
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/site]]
                at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
                ... 9 more
        Caused by: java.lang.NoClassDefFoundError: org/hippoecm/hst/container/event/HttpSessionCreatedEvent
                at java.lang.Class.getDeclaredFields0(Native Method)
                at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
                at java.lang.Class.getDeclaredFields(Class.java:1916)
                at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
                at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
                at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
                at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
                at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:782)
                at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5130)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                ... 10 more
        Caused by: java.lang.ClassNotFoundException: org.hippoecm.hst.container.event.HttpSessionCreatedEvent
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1415)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1223)
                ... 23 more
      Caused by: java.lang.ClassNotFoundException: org.hippoecm.hst.container.event.HttpSessionCreatedEvent

check your tomcat shared library versions…

1 Like

also, upgrade to the latest 13 version, not sure why you chose 13.0.0

Thank you for you reply machak.

I seached in the shared library for the jar contatining that class but could not find it.
I was able to find it on the project that I run on my local which leads me to believe that there could be an issue while I am packing my project with the dist command.

The issue was that I was missing the library hst-api from the shared library folder. We have in our project a custon xml file for the Maven assembly plugin which was not including this library.

After adding the hst-api library on the shared library folder the issue dissapeard from the logs but now I am getting the following errors:

[hippo-console] 06.04.2022 12:36:43 ERROR localhost-startStop-1 [DefaultHstSiteConfigurer.initializeComponentManager:264] HstSiteConfigurer: ComponentManager initialization failed. ### org.hippoecm.hst.platform.model.ModelRegistrationException: Cannot create HstModelRegistryImpl |       
at org.hippoecm.hst.platform.model.HstModelRegistryImpl.registerHstModel(HstModelRegistryImpl.java:132)|      
at org.hippoecm.hst.site.container.DefaultHstSiteConfigurer.initializeComponentManager(DefaultHstSiteConfigurer.java:258)|       
at org.hippoecm.hst.site.container.DefaultHstSiteConfigurer.initialize(DefaultHstSiteConfigurer.java:208)|     
at org.hippoecm.hst.site.container.HstContextLoaderListener.configureHstSite(HstContextLoaderListener.java:105)|        
at org.hippoecm.hst.platform.container.HstPlatformContextLoaderListener.initializeHstPlaform(HstPlatformContextLoaderListener.java:100)|       
at org.hippoecm.hst.platform.container.HstPlatformContextLoaderListener$2.serviceRegistered(HstPlatformContextLoaderListener.java:69)| 
at org.onehippo.cms7.services.HippoServiceRegistry.register(HippoServiceRegistry.java:112)|     
at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:227)| 
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1152)|     
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1097)|     
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:990)|    
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4952)|   
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5266)|  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)|        
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)|    
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)|     
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)|       
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016)|     
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)|  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)|    
at java.util.concurrent.FutureTask.run(FutureTask.java:266)|    
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)|     
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)|    
at java.lang.Thread.run(Thread.java:748)|Caused by: org.hippoecm.hst.platform.model.ModelRegistrationException: 
Cannot register model for context '/cms' since 'hst.configuration.rootPath' points to nonexisting jcr node '/hst:platform'|    
at org.hippoecm.hst.platform.model.HstModelRegistryImpl.registerHstModel(HstModelRegistryImpl.java:102)|       
... 23 more
[hippo-console] 06.04.2022 14:03:41 WARN  EventListenersContainerSessionChecker-1 [EventListenersContainerImpl.doInit:233] An event handler will be registered for a path where no node currently is available: /content ###
[hippo-console] 06.04.2022 14:03:41 WARN  EventListenersContainerSessionChecker-1 [EventListenersContainerImpl.doInit:233] An event handler will be registered for a path where no node currently is available: /hst:platform ###
[hippo-console] 06.04.2022 12:36:48 ERROR localhost-startStop-1 [ConfigurationServiceImpl.serviceRegistered:946] Failed to read hcm-site.yaml ### java.io.FileNotFoundException: META-INF/hcm-site.yaml|       
at org.onehippo.cm.engine.ConfigurationServiceImpl.serviceRegistered(ConfigurationServiceImpl.java:941)|        
at org.onehippo.cms7.services.WhiteboardServiceRegistry.register(WhiteboardServiceRegistry.java:107)|  
at org.onehippo.cms7.services.context.HippoWebappContextRegistry.register(HippoWebappContextRegistry.java:44)|  
at org.hippoecm.hst.site.container.HstContextLoaderListener.contextInitialized(HstContextLoaderListener.java:62)|      
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763)|   
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232)|  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)|        
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)|   
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)|      
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)|       
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016)|     
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)|  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)|   
at java.util.concurrent.FutureTask.run(FutureTask.java:266)|     
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)|     
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)|    
at java.lang.Thread.run(Thread.java:748)
[hippo-console] 06.04.2022 12:36:57 ERROR localhost-startStop-1 [DefaultHstSiteConfigurer.initializeComponentManager:264] HstSiteConfigurer: ComponentManager initialization failed. ### org.hippoecm.hst.platform.model.ModelRegistrationException: Cannot create HstModelRegistryImpl|       
at org.hippoecm.hst.platform.model.HstModelRegistryImpl.registerHstModel(HstModelRegistryImpl.java:132)|      
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)|       
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|      
at java.lang.reflect.Method.invoke(Method.java:498)|    
at org.onehippo.cms7.services.ProxiedServiceHolder.lambda$new$0(ProxiedServiceHolder.java:68)|
at com.sun.proxy.$Proxy48.registerHstModel(Unknown Source)|      
at org.hippoecm.hst.site.container.DefaultHstSiteConfigurer.initializeComponentManager(DefaultHstSiteConfigurer.java:258)|      
at org.hippoecm.hst.site.container.DefaultHstSiteConfigurer.initialize(DefaultHstSiteConfigurer.java:208)|     
at org.hippoecm.hst.site.container.HstContextLoaderListener.configureHstSite(HstContextLoaderListener.java:105)|       
at org.hippoecm.hst.site.container.HstContextLoaderListener$1.serviceRegistered(HstContextLoaderListener.java:82)|      
at org.onehippo.cms7.services.HippoServiceRegistry.addTracker(HippoServiceRegistry.java:223)|  
at org.hippoecm.hst.site.container.HstContextLoaderListener.initialize(HstContextLoaderListener.java:90)|       
at org.hippoecm.hst.site.container.HstContextLoaderListener.contextInitialized(HstContextLoaderListener.java:63)|      
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763)|   
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232)|  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)|        
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)|    
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)|     
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)|       
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016)|     
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903)|  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)|    
at java.util.concurrent.FutureTask.run(FutureTask.java:266)|    
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)|     
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)|    
at java.lang.Thread.run(Thread.java:748)|Caused by: java.lang.NullPointerException|     
at org.hippoecm.hst.platform.model.HstModelImpl.<init>(HstModelImpl.java:139)| 
at org.hippoecm.hst.platform.model.HstModelRegistryImpl.registerHstModel(HstModelRegistryImpl.java:121)|        
... 26 more

To fix the last issues I had to add the following property to the Java System Properties:
-Dhst.configuration.rootPath=/hst:hst
Once that was done the application run on VM without any issues.