Fresh Docker Container not starting

Hi, I am trying to setup a docker instance of xwiki. It works fine on my development machine with the latest docker image xwiki:13-postgres-tomcat, which currently installs xwiki version 13.10.0. But when I try to start the docker container on my production server (4 vCPUs, 16GB RAM), it raises an exception and cannot start up.

Creating xwiki-postgres-tomcat-web ... done
Attaching to xwiki-postgres-tomcat-web
xwiki-postgres-tomcat-web | Configuring XWiki...
xwiki-postgres-tomcat-web | Setting environment variables
xwiki-postgres-tomcat-web |   Deploying XWiki in the 'ROOT' context
xwiki-postgres-tomcat-web | Replacing environment variables in files
xwiki-postgres-tomcat-web |   Generating authentication validation and encryption keys...
xwiki-postgres-tomcat-web |   Setting permanent directory...
xwiki-postgres-tomcat-web |   Configure libreoffice...
xwiki-postgres-tomcat-web |   Saving config file hibernate.cfg.xml...
xwiki-postgres-tomcat-web |   Saving config file xwiki.cfg...
xwiki-postgres-tomcat-web |   Saving config file xwiki.properties...
xwiki-postgres-tomcat-web | NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.043 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.55
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.046 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Nov 10 2021 08:26:45 UTC
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.046 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.55.0
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.046 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.047 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            4.19.0-10-amd64
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.047 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.047 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/local/openjdk-11
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.047 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.13+8
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.047 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.048 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.048 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.144 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.144 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024m
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.145 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.security.egd=file:/dev/./urandom
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms800m
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024m
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=utf-8
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.146 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseParallelGC
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.147 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxGCPauseMillis=100
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.147 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.147 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.147 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.147 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.151 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.152 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.152 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:08.154 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1k  25 Mar 2021]
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:10.050 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:10.336 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [3300] milliseconds
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:10.634 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:10.634 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.55]
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:10.642 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
xwiki-postgres-tomcat-web | 2021-12-07 09:26:32,152 [main] INFO  iPropertiesConfigurationSource - Loading [xwiki.properties] from [file:/usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.properties] 
xwiki-postgres-tomcat-web | 2021-12-07 09:26:33,040 [main] INFO  o.x.e.i.ServletEnvironment     - Using permanent directory [/usr/local/xwiki/data] 
xwiki-postgres-tomcat-web | 2021-12-07 09:26:55,260 [main] ERROR .o.i.DefaultObservationManager - Failed to lookup listeners 
xwiki-postgres-tomcat-web | org.xwiki.component.manager.ComponentLookupException: Failed to lookup component with type [interface org.xwiki.observation.EventListener] and hint [queryRegistrationHandler/nestedPages]
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:245)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:225)
xwiki-postgres-tomcat-web | 	at org.xwiki.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:166)
xwiki-postgres-tomcat-web | 	at org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:132)
xwiki-postgres-tomcat-web | 	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:283)
xwiki-postgres-tomcat-web | 	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:337)
xwiki-postgres-tomcat-web | 	at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:127)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4768)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1185)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1933)
xwiki-postgres-tomcat-web | 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
xwiki-postgres-tomcat-web | 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
xwiki-postgres-tomcat-web | 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
xwiki-postgres-tomcat-web | 	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1095)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
xwiki-postgres-tomcat-web | 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
xwiki-postgres-tomcat-web | 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
xwiki-postgres-tomcat-web | 	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
xwiki-postgres-tomcat-web | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
xwiki-postgres-tomcat-web | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
xwiki-postgres-tomcat-web | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
xwiki-postgres-tomcat-web | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
xwiki-postgres-tomcat-web | 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
xwiki-postgres-tomcat-web | Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory] identified by type [interface com.xpn.xwiki.store.hibernate.HibernateSessionFactory] and hint [default]
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:242)
xwiki-postgres-tomcat-web | 	... 47 common frames omitted
xwiki-postgres-tomcat-web | Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [com.xpn.xwiki.internal.store.hibernate.HibernateStore] identified by type [class com.xpn.xwiki.internal.store.hibernate.HibernateStore] and hint [default]
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
xwiki-postgres-tomcat-web | 	... 51 common frames omitted
xwiki-postgres-tomcat-web | Caused by: org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in URL file:/usr/local/tomcat/webapps/ROOT/WEB-INF/hibernate.cfg.xml. Message: null
xwiki-postgres-tomcat-web | 	at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:134)
xwiki-postgres-tomcat-web | 	at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:66)
xwiki-postgres-tomcat-web | 	at org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlUrl(ConfigLoader.java:94)
xwiki-postgres-tomcat-web | 	at org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:262)
xwiki-postgres-tomcat-web | 	at org.hibernate.cfg.Configuration.configure(Configuration.java:285)
xwiki-postgres-tomcat-web | 	at com.xpn.xwiki.internal.store.hibernate.HibernateStore.initialize(HibernateStore.java:225)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
xwiki-postgres-tomcat-web | 	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
xwiki-postgres-tomcat-web | 	... 55 common frames omitted
xwiki-postgres-tomcat-web | Caused by: javax.xml.bind.UnmarshalException: null
xwiki-postgres-tomcat-web | 	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:455)
xwiki-postgres-tomcat-web | 	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:433)
xwiki-postgres-tomcat-web | 	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:405)
xwiki-postgres-tomcat-web | 	at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:127)
xwiki-postgres-tomcat-web | 	... 64 common frames omitted
xwiki-postgres-tomcat-web | Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '<' (code 60) in content after '<' (malformed start element?).
xwiki-postgres-tomcat-web |  at [row,col {unknown-source}]: [92,54]
xwiki-postgres-tomcat-web | 	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:666)
xwiki-postgres-tomcat-web | 	at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2932)
xwiki-postgres-tomcat-web | 	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1122)
xwiki-postgres-tomcat-web | 	at com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:392)
xwiki-postgres-tomcat-web | 	at java.xml/javax.xml.stream.util.EventReaderDelegate.peek(EventReaderDelegate.java:98)
xwiki-postgres-tomcat-web | 	at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor$NamespaceAddingEventReader.peek(JaxbCfgProcessor.java:255)
xwiki-postgres-tomcat-web | 	at com.sun.xml.bind.v2.runtime.unmarshaller.StAXEventConnector.handleCharacters(StAXEventConnector.java:149)
xwiki-postgres-tomcat-web | 	at com.sun.xml.bind.v2.runtime.unmarshaller.StAXEventConnector.bridge(StAXEventConnector.java:111)
xwiki-postgres-tomcat-web | 	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:430)
xwiki-postgres-tomcat-web | 	... 66 common frames omitted
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:55.438 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [44,795] ms
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:55.444 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
xwiki-postgres-tomcat-web | 07-Dec-2021 09:26:55.535 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [45199] milliseconds

The container is completely fresh, the data directory is not existent and is being created by the xwiki docker container. So it should not be a faulty config.

I monitored the startup with htop. Memory is stable, when starting the xwiki container I have 5GB of free RAM at any time. But the CPU load goes very high, causing all my other docker containers to crash (general cpu load of those containers is below 5% on all cores). I added cpus: 0.5 to xwikis docker-compose service to limit the CPU load caused by that container. That worked so my other containers do not crash on startup anymore, but the xwiki container still raises the above exception.

Any suggestions how to solve this problem?

The error is in the stack trace:

Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ‘<’ (code 60) in content after ‘<’ (malformed start element?).

It means you’ve configured the hibernate.cfg.xml in a wrong way and it’s not valid XML.

Thank you for your immediate response! I found the error in the file. The database password is saved unescaped and unencoded in that XML file. Of course, I use different database passwords in DEV and PROD and my PROD-Password contained a < character, resulting in invalid XML :man_facepalming: