Clean install and HTTP 500 error

Hi,

I have just done clean install xwiki on Debian 11 (xwiki-tomcat9-mariadb)

added:

JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024m"

in
/etc/default/tomcat9

and after trying to open xwiki start page I am getting:

HTTP Status 500 – Internal Server Error
Type Exception Report

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.NullPointerException
	com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:682)
	com.xpn.xwiki.web.Utils.getComponent(Utils.java:739)
	com.xpn.xwiki.web.Utils.getComponent(Utils.java:768)
	com.xpn.xwiki.web.Utils.getComponent(Utils.java:721)
	org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:55)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
	org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
	org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
	org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/9.0.43 (Debian)

in /var/log/tomcat9:

06-Sep-2022 09:35:28.507 SEVERE [http-nio-8080-exec-9] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [action] in context with path [/xwiki] threw exception
        java.lang.NullPointerException
                at com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:682)
                at com.xpn.xwiki.web.Utils.getComponent(Utils.java:739)
                at com.xpn.xwiki.web.Utils.getComponent(Utils.java:768)
                at com.xpn.xwiki.web.Utils.getComponent(Utils.java:721)
                at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:55)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
                at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
                at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
                at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
                at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
                at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
                at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:887)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1684)
                at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
                at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.base/java.lang.Thread.run(Thread.java:829)

Any hints?

This looks more like a consequence of something else, you should check the very first error in the log after XWiki startup.

thx, but where to start troubleshooting? Any other xwiki logs?

Not sure I understand your question, it seems to did found where the XWiki log is located, but what you pasted looks like the last error in that log file.

Ok, I’m digging :wink:

After restarting tomcat9:


[2022-09-06 10:14:50] [info] 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>
[2022-09-06 10:14:51] [info] Server version name:   Apache Tomcat/9.0.43 (Debian)
[2022-09-06 10:14:51] [info] Server built:          Jan 4 1970 19:03:34 UTC
[2022-09-06 10:14:51] [info] Server version number: 9.0.43.0
[2022-09-06 10:14:51] [info] OS Name:               Linux
[2022-09-06 10:14:51] [info] OS Version:            5.10.0-17-amd64
[2022-09-06 10:14:51] [info] Architecture:          amd64
[2022-09-06 10:14:51] [info] Java Home:             /usr/lib/jvm/java-11-openjdk-amd64
[2022-09-06 10:14:51] [info] JVM Version:           11.0.16+8-post-Debian-1deb11u1
[2022-09-06 10:14:51] [info] JVM Vendor:            Debian
[2022-09-06 10:14:51] [info] CATALINA_BASE:         /var/lib/tomcat9
[2022-09-06 10:14:51] [info] CATALINA_HOME:         /usr/share/tomcat9
[2022-09-06 10:14:51] [info] Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
[2022-09-06 10:14:51] [info] Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
[2022-09-06 10:14:51] [info] Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
[2022-09-06 10:14:51] [info] Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
[2022-09-06 10:14:51] [info] Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[2022-09-06 10:14:51] [info] Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
[2022-09-06 10:14:51] [info] Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2022-09-06 10:14:51] [info] Command line argument: -Djava.awt.headless=true
[2022-09-06 10:14:51] [info] Command line argument: -Xmx1024m

[2022-09-06 10:14:51] [info] Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
[2022-09-06 10:14:51] [info] Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
[2022-09-06 10:14:51] [info] Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
[2022-09-06 10:14:51] [info] Command line argument: -Dignore.endorsed.dirs=
[2022-09-06 10:14:51] [info] Command line argument: -Dcatalina.base=/var/lib/tomcat9
[2022-09-06 10:14:51] [info] Command line argument: -Dcatalina.home=/usr/share/tomcat9
[2022-09-06 10:14:51] [info] Command line argument: -Djava.io.tmpdir=/tmp
[2022-09-06 10:14:51] [info] Loaded Apache Tomcat Native library [1.2.26] using APR version [1.7.0].
[2022-09-06 10:14:51] [info] APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
[2022-09-06 10:14:51] [info] APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
[2022-09-06 10:14:51] [info] OpenSSL successfully initialized [OpenSSL 1.1.1n  15 Mar 2022]
[2022-09-06 10:14:51] [info] Initializing ProtocolHandler ["http-nio-8080"]
[2022-09-06 10:14:51] [info] Server initialization in [1152] milliseconds
[2022-09-06 10:14:52] [info] Starting service [Catalina]
[2022-09-06 10:14:52] [info] Starting Servlet engine: [Apache Tomcat/9.0.43 (Debian)]
[2022-09-06 10:14:52] [info] Deploying deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml]
[2022-09-06 10:14:52] [warning] The path attribute with value [/xwiki] in deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml] has been ignored
[2022-09-06 10:14:59] [info] 2022-09-06 10:14:59,485 [main] INFO  iPropertiesConfigurationSource - Loading [xwiki.properties] from default location [/etc/xwiki/xwiki.properties]
[2022-09-06 10:14:59] [info] 2022-09-06 10:14:59,722 [main] INFO  o.x.e.i.ServletEnvironment     - Using permanent directory [/var/lib/xwiki/data]
[2022-09-06 10:15:08] [info] 2022-09-06 10:15:08,796 [main] ERROR .o.i.DefaultObservationManager - Failed to lookup listeners
[2022-09-06 10:15:08] [info] org.xwiki.component.manager.ComponentLookupException: Failed to lookup component with type [interface org.xwiki.observation.EventListener] and hint [queryRegistrationHandler/nestedPages]
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:245)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:225)
[2022-09-06 10:15:08] [info] #011at org.xwiki.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:166)
[2022-09-06 10:15:08] [info] #011at org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:132)
[2022-09-06 10:15:08] [info] #011at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:283)
[2022-09-06 10:15:08] [info] #011at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:337)
[2022-09-06 10:15:08] [info] #011at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:136)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5177)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:623)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1774)
[2022-09-06 10:15:08] [info] #011at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[2022-09-06 10:15:08] [info] #011at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2022-09-06 10:15:08] [info] #011at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2022-09-06 10:15:08] [info] #011at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1520)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
[2022-09-06 10:15:08] [info] #011at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2022-09-06 10:15:08] [info] #011at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2022-09-06 10:15:08] [info] #011at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.StandardService.startInternal(StandardService.java:434)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
[2022-09-06 10:15:08] [info] #011at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-09-06 10:15:08] [info] #011at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-09-06 10:15:08] [info] #011at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-09-06 10:15:08] [info] #011at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
[2022-09-06 10:15:08] [info] #011at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:477)
[2022-09-06 10:15:08] [info] 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.hi>
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:242)
[2022-09-06 10:15:08] [info] #011... 47 common frames omitted
[2022-09-06 10:15:08] [info] 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.hibe>
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
[2022-09-06 10:15:08] [info] #011... 51 common frames omitted
[2022-09-06 10:15:08] [info] Caused by: org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in URL file:/usr/lib/xwiki/WEB-INF/hibernate.cfg.xml. Message: null
[2022-09-06 10:15:08] [info] #011at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:134)
[2022-09-06 10:15:08] [info] #011at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:66)
[2022-09-06 10:15:08] [info] #011at org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlUrl(ConfigLoader.java:94)
[2022-09-06 10:15:08] [info] #011at org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:262)
[2022-09-06 10:15:08] [info] #011at org.hibernate.cfg.Configuration.configure(Configuration.java:285)
[2022-09-06 10:15:08] [info] #011at com.xpn.xwiki.internal.store.hibernate.HibernateStoreConfiguration.configure(HibernateStoreConfiguration.java:89)
[2022-09-06 10:15:08] [info] #011at com.xpn.xwiki.internal.store.hibernate.HibernateStore.initialize(HibernateStore.java:238)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)
[2022-09-06 10:15:08] [info] #011at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)
[2022-09-06 10:15:08] [info] #011... 55 common frames omitted
[2022-09-06 10:15:08] [info] Caused by: javax.xml.bind.UnmarshalException: null
[2022-09-06 10:15:08] [info] #011at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:455)
[2022-09-06 10:15:08] [info] #011at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:433)
[2022-09-06 10:15:08] [info] #011at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:405)
[2022-09-06 10:15:08] [info] #011at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:127)
[2022-09-06 10:15:08] [info] #011... 65 common frames omitted
[2022-09-06 10:15:08] [info] Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '5' (code 53) (expected a name start character)
[2022-09-06 10:15:08] [info]  at [row,col {unknown-source}]: [104,68]
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:666)
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.sr.StreamScanner.parseFullName(StreamScanner.java:1945)
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.sr.StreamScanner.parseEntityName(StreamScanner.java:2070)
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.sr.StreamScanner.fullyResolveEntity(StreamScanner.java:1536)
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4786)
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3810)
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1131)
[2022-09-06 10:15:08] [info] #011at com.ctc.wstx.evt.WstxEventReader.nextEvent(WstxEventReader.java:283)
[2022-09-06 10:15:08] [info] #011at java.xml/javax.xml.stream.util.EventReaderDelegate.nextEvent(EventReaderDelegate.java:83)
[2022-09-06 10:15:08] [info] #011at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor$NamespaceAddingEventReader.nextEvent(JaxbCfgProcessor.java:246)
[2022-09-06 10:15:08] [info] #011at com.sun.xml.bind.v2.runtime.unmarshaller.StAXEventConnector.bridge(StAXEventConnector.java:116)
[2022-09-06 10:15:08] [info] #011at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:430)
[2022-09-06 10:15:08] [info] #011... 67 common frames omitted
[2022-09-06 10:15:08] [info] Deployment of deployment descriptor [/etc/tomcat9/Catalina/localhost/xwiki.xml] has finished in [16,717] ms
[2022-09-06 10:15:08] [info] Deploying web application directory [/var/lib/tomcat9/webapps/ROOT]
[2022-09-06 10:15:09] [info] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during s>
[2022-09-06 10:15:09] [info] Deployment of web application directory [/var/lib/tomcat9/webapps/ROOT] has finished in [1,106] ms
[2022-09-06 10:15:09] [info] Starting ProtocolHandler ["http-nio-8080"]
[2022-09-06 10:15:10] [info] Server startup in [18009] milliseconds


Do You see anything interesting here?

may be this:

ERROR .o.i.DefaultObservationManager - Failed to lookup listeners

???

Yes. There seems to be a mistake in your hibernate.cfg.xml file:

Did you customize it ? It’s surprising for a clean Debian install.

No. It wasn’t edited

File begins with:

<?xml version="1.0" encoding="UTF-8"?>

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<!DOCTYPE hibernate-configuration PUBLIC
  "-//Hibernate/Hibernate Configuration DTD//EN"
  "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
  <session-factory>

    <!-- Please refer to the installation guide on
         https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/ for configuring your database.
         You'll need to do 2 things:
         1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory
         2) Uncomment the properties below for your specific DB (and comment the default
            database configuration if it doesn't match your DB)
    -->

seems OK for me.

I think I have found what was the problem.

I’ve installed it on a second machine but this time I have provided simpler password for database (no special characters) and it works now like a harm :slight_smile:

So the problematic was special characters in the database password I have provided during installation.

Ha, indeed, we need to improve the Debian install script to properly escape the password (it’s not so much a “special characters” general problem than an XML syntax character problem). It was reported already on Loading..., but never had time to look at it.

IMHO, for now, You should place warning in the Admin Guide not to use that characters in database password.

Would be great if you could insert this warning where you feel it make the most sense (you just need to register to edit most pages on xwiki.org) :wink: