Hello,
I tried to install xwiki on a Oracle Linux (Oracle Linux Server 8.6 x86_64
) machine.
java 17
(which is the latest LTS from oracle), Postgresql 14
and tomcat9
were used.
I followed the WAR installation guide.
Configured the database, included the http proxy of the company in catalina.sh.
But when I access xwiki in the browser via hostname:8080/xwiki
I get the following error message:
**Type** Exception Report
**Message** Cannot invoke "org.xwiki.component.manager.ComponentManager.getInstance(java.lang.reflect.Type, String)" because "com.xpn.xwiki.web.Utils.rootComponentManager" is null
**Description** The server encountered an unexpected condition that prevented it from fulfilling the request.
**Exception**
java.lang.NullPointerException: Cannot invoke "org.xwiki.component.manager.ComponentManager.getInstance(java.lang.reflect.Type, String)" because "com.xpn.xwiki.web.Utils.rootComponentManager" is null 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.
I can see this in the tomcat logs:
/opt/apache-tomcat-9.0.64/logs # cat localhost.2022-07-27.log
27-Jul-2022 09:34:52.019 SEVERE [http-nio-8080-exec-6] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [action] in context with path [/xwiki] threw exception
java.lang.NullPointerException: Cannot invoke "org.xwiki.component.manager.ComponentManager.getInstance(java.lang.reflect.Type, String)" because "com.xpn.xwiki.web.Utils.rootComponentManager" is null
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:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
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:360)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1787)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:833)
# java -version
openjdk version "17.0.3" 2022-04-19 LTS
OpenJDK Runtime Environment 21.9 (build 17.0.3+7-LTS)
OpenJDK 64-Bit Server VM 21.9 (build 17.0.3+7-LTS, mixed mode, sharing)
Do you need further information?