XWiki 13.3 fresh install "Failed to lookup listeners"

Hello,

We made a fresh install of xwiki with tomcat8 and mysql distribution.
After we start the application and connect to the home page via browser, the xwiki crashes.
We can connect succesfully to the application with a browser and it starts to load, but then at about 20% a blank page appears.

We enabled debug logs and here is all the errors we can see from catalina.out:

2021-05-12 17:46:51,941 [localhost-startStop-2] ERROR .o.i.DefaultObservationManager - Failed to lookup listeners
org.xwiki.component.manager.ComponentLookupException: Failed to lookup component with type [interface org.xwiki.observation.EventListener] and hint [LicensingInitializerListener]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:245)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:225)
at org.xwiki.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:166)
at org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:132)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:283)
at org.xwiki.component.internal.StackingComponentEventManager.sendEvent(StackingComponentEventManager.java:151)
at org.xwiki.component.internal.StackingComponentEventManager.flushEvents(StackingComponentEventManager.java:92)
at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:124)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4821)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5264)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
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.xwiki.component.manager.ComponentLookupException: Failed to lookup component [com.xwiki.licensing.internal.enforcer.DefaultLicensingSecurityCacheRuleInvalidator] identified by type [interface com.xwiki.licensing.internal.enforcer.LicensingSecurityCacheRuleInvalidator] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:242)
… 20 common frames omitted
Caused by: org.xwiki.component.manager.ComponentLookupException: Can’t find descriptor for the component with type [interface org.xwiki.security.authorization.cache.internal.SecurityCache] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:212)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
… 24 common frames omitted
2021-05-12 17:46:51,943 [localhost-startStop-2] ERROR .o.i.DefaultObservationManager - Failed to lookup the Event Listener [LicensingInitializerListener] corresponding to the Component registration event for [com.xwiki.licensing.internal.enforcer.LicensingInitializer]. Ignoring the event
org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [com.xwiki.licensing.internal.enforcer.LicensingInitializer] identified by type [interface org.xwiki.observation.EventListener] and hint [LicensingInitializerListener]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
at org.xwiki.observation.internal.DefaultObservationManager.onEventListenerComponentAdded(DefaultObservationManager.java:383)
at org.xwiki.observation.internal.DefaultObservationManager.onComponentEvent(DefaultObservationManager.java:354)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:299)
at org.xwiki.component.internal.StackingComponentEventManager.sendEvent(StackingComponentEventManager.java:151)
at org.xwiki.component.internal.StackingComponentEventManager.flushEvents(StackingComponentEventManager.java:92)
at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:124)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4821)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5264)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
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.xwiki.component.manager.ComponentLookupException: Failed to lookup component [com.xwiki.licensing.internal.enforcer.DefaultLicensingSecurityCacheRuleInvalidator] identified by type [interface com.xwiki.licensing.internal.enforcer.LicensingSecurityCacheRuleInvalidator] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
… 19 common frames omitted
Caused by: org.xwiki.component.manager.ComponentLookupException: Can’t find descriptor for the component with type [interface org.xwiki.security.authorization.cache.internal.SecurityCache] and hint [default]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:212)
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
… 23 common frames omitted
May 12, 2021 5:46:51 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deployment of configuration descriptor /etc/tomcat8/Catalina/localhost/xwiki.xml has finished in 61,717 ms
2021-05-12 17:48:47,391 [XWiki initialization] WARN o.h.c.i.C3P0ConnectionProvider - HHH10001006: No JDBC Driver class was specified by property hibernate.connection.driver_class

May 12, 2021 5:49:44 PM org.apache.tomcat.util.net.NioEndpoint$SocketProcessor doRun
SEVERE:
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.resize(HashMap.java:704)
at java.util.HashMap.putVal(HashMap.java:663)
at java.util.HashMap.put(HashMap.java:612)
at org.xwiki.localization.internal.DefaultLocalizedTranslationBundle.addTranslation(DefaultLocalizedTranslationBundle.java:85)
at org.xwiki.localization.jar.internal.RootClassLoaderTranslationBundle.createBundle(RootClassLoaderTranslationBundle.java:89)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getSynchLocalizedBundle(AbstractCachedTranslationBundle.java:91)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getLocalizedBundle(AbstractCachedTranslationBundle.java:75)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getTranslation(AbstractCachedTranslationBundle.java:108)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getTranslation(AbstractCachedTranslationBundle.java:114)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getTranslation(AbstractCachedTranslationBundle.java:114)
at org.xwiki.localization.internal.DefaultLocalizationManager.getTranslation(DefaultLocalizationManager.java:76)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:364)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:341)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:314)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:215)
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.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
at org.apache.velocity.Template.merge(Template.java:358)
at org.apache.velocity.Template.merge(Template.java:262)

May 12, 2021 5:49:48 PM org.apache.tomcat.util.net.NioEndpoint$SocketProcessor doRun
SEVERE:
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.resize(HashMap.java:704)
at java.util.HashMap.putVal(HashMap.java:663)
at java.util.HashMap.put(HashMap.java:612)
at org.xwiki.localization.internal.DefaultLocalizedTranslationBundle.addTranslation(DefaultLocalizedTranslationBundle.java:85)
at org.xwiki.localization.jar.internal.RootClassLoaderTranslationBundle.createBundle(RootClassLoaderTranslationBundle.java:89)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getSynchLocalizedBundle(AbstractCachedTranslationBundle.java:91)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getLocalizedBundle(AbstractCachedTranslationBundle.java:75)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getTranslation(AbstractCachedTranslationBundle.java:108)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getTranslation(AbstractCachedTranslationBundle.java:114)
at org.xwiki.localization.internal.AbstractCachedTranslationBundle.getTranslation(AbstractCachedTranslationBundle.java:114)
at org.xwiki.localization.internal.DefaultLocalizationManager.getTranslation(DefaultLocalizationManager.java:76)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:364)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:341)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:314)
at org.xwiki.localization.script.LocalizationScriptService.render(LocalizationScriptService.java:215)
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.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
at org.apache.velocity.Template.merge(Template.java:358)
at org.apache.velocity.Template.merge(Template.java:262)

May 12, 2021 5:49:48 PM org.apache.tomcat.util.net.NioEndpoint checkParachute
SEVERE: SEVERE:Memory usage is low, parachute is non existent, your system may start failing.

I think there’s more than one problem here, can you help us understand what can we do to fix this?

Thanks

xwiki.cfg.txt (26.1 KB)

Are you sure this is a fresh install? It doesn’t seem so because the stacktrace mentions classes from the Licensing Application which is not installed by default. Or maybe you reused the permanent (data) directory of another XWiki instance?

In any case, the problem seems to be

java.lang.OutOfMemoryError: Java heap space

Did you allocate enough memory, as per https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/#HHardwareandSoftwarerequirements ?