[xwiki-users] Diagnosing empty start page
Hi, It's been a while since I've installed XWiki from scratch, and last time it was for Ubuntu 14 with 7.1.1. It looks like enough things have changed since then that I'm doing something wrong. I'd appreciate any help in diagnosing the problem. This time I'm using Ubuntu 16.04.1 and Tomcat 8. I'm installing from the debian/Ubuntu xwiki-enterprise-tomcat8-pgsql package version 8.2.1, with Tomcat8 package 8.0.32-1ubuntu1.1. It's running (as before) via an AJP connector behind Apache2. https://mysite/xwiki correctly redirects to https://mysite/xwiki/bin/view/Main/ so it looks like something is happening, but I'm getting an empty page. The following are the Catalina log entries (please excuse the length) from restarting tomcat onwards. My experience has been that one always gets some warnings, but my guess is that one or more of the following are resulting in pages failing to load. 22-Aug-2016 10:11:46.465 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 22-Aug-2016 10:11:46.471 INFO [Thread-11] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina 22-Aug-2016 10:11:46.536 SEVERE [Catalina-startStop-2] org.apache.catalina.core.ContainerBase.stopInternal A child container failed during stop java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at java.util.concurrent.FutureTask.report(java.base@9-internal/FutureTask.java:123) at java.util.concurrent.FutureTask.get(java.base@9-internal/FutureTask.java:193) at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:972) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1413) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1158) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632) at java.lang.Thread.run(java.base@9-internal/Thread.java:804) Caused by: org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:228) ... 6 more Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[]] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:228) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5517) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) ... 6 more Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make member of class sun.rmi.transport.Target accessible: module java.rmi does not export sun.rmi.transport to unnamed module @4abdb505 at sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-internal/Reflection.java:420) at java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-internal/AccessibleObject.java:174) at java.lang.reflect.Field.checkCanSetAccessible(java.base@9-internal/Field.java:170) at java.lang.reflect.Field.setAccessible(java.base@9-internal/Field.java:164) at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesRmiTargets(WebappClassLoaderBase.java:2234) at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1553) at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1496) at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:446) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) ... 8 more 22-Aug-2016 10:12:07.202 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false] 22-Aug-2016 10:12:07.262 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false] 22-Aug-2016 10:12:07.271 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false] 22-Aug-2016 10:12:07.277 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false] 22-Aug-2016 10:12:07.281 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false] 22-Aug-2016 10:12:07.285 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false] 22-Aug-2016 10:12:08.760 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.32 (Ubuntu) 22-Aug-2016 10:12:08.763 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 6 2016 11:49:29 UTC 22-Aug-2016 10:12:08.768 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.32.0 22-Aug-2016 10:12:08.770 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 22-Aug-2016 10:12:08.772 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.4.0-28-generic 22-Aug-2016 10:12:08.772 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 22-Aug-2016 10:12:08.776 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-9-openjdk-amd64 22-Aug-2016 10:12:08.779 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 9-internal+0-2016-04-14-195246.buildd.src 22-Aug-2016 10:12:08.780 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 22-Aug-2016 10:12:08.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /var/lib/tomcat8 22-Aug-2016 10:12:08.784 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8 22-Aug-2016 10:12:08.798 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/var/lib/tomcat8/conf/logging.properties 22-Aug-2016 10:12:08.801 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 22-Aug-2016 10:12:08.808 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true 22-Aug-2016 10:12:08.812 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024m 22-Aug-2016 10:12:08.812 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseConcMarkSweepGC 22-Aug-2016 10:12:08.813 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/var/lib/tomcat8 22-Aug-2016 10:12:08.814 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8 22-Aug-2016 10:12:08.814 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/tmp/tomcat8-tomcat8-tmp 22-Aug-2016 10:12:08.823 SEVERE [main] org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent Failed to trigger creation of the GC Daemon thread during Tomcat start to prevent possible memory leaks. This is expected on non-Sun JVMs. java.lang.ClassNotFoundException: sun.misc.GC at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:384) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419) at java.lang.Class.forName0(java.base@9-internal/Native Method) at java.lang.Class.forName(java.base@9-internal/Class.java:294) at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99) at org.apache.catalina.startup.Catalina.load(Catalina.java:580) at org.apache.catalina.startup.Catalina.load(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484) 22-Aug-2016 10:12:09.194 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 22-Aug-2016 10:12:09.241 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 22-Aug-2016 10:12:09.256 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1838 ms 22-Aug-2016 10:12:09.350 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina 22-Aug-2016 10:12:09.352 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.32 (Ubuntu) 22-Aug-2016 10:12:09.389 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /etc/tomcat8/Catalina/localhost/xwiki.xml 22-Aug-2016 10:12:09.525 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'allowLinking' to 'true' did not find a matching property. 22-Aug-2016 10:12:12.567 INFO [localhost-startStop-1] org.apache.catalina.loader.WebappLoader.buildClassPath Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5f150435 class jdk.internal.loader.ClassLoaders$AppClassLoader 22-Aug-2016 10:12:56.206 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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 scanning can improve startup time and JSP compilation time. 22-Aug-2016 10:13:31.784 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /etc/tomcat8/Catalina/localhost/xwiki.xml has finished in 82,375 ms 22-Aug-2016 10:13:31.791 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /var/lib/tomcat8/webapps/ROOT 22-Aug-2016 10:13:31.828 INFO [localhost-startStop-1] org.apache.catalina.loader.WebappLoader.buildClassPath Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5f150435 class jdk.internal.loader.ClassLoaders$AppClassLoader 22-Aug-2016 10:13:32.824 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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 scanning can improve startup time and JSP compilation time. 22-Aug-2016 10:13:32.836 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /var/lib/tomcat8/webapps/ROOT has finished in 1,045 ms 22-Aug-2016 10:13:32.849 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] 22-Aug-2016 10:13:32.884 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 83627 ms Visiting the page in my browser then gets a blank page, and there are no further entries in the log. Can anyone advise what might be the next step in resolving things? Thanks, Bryn
Hi Bryn,
On 22 Aug 2016, at 12:37, Bryn Jeffries <[email protected]> wrote:
Hi,
It's been a while since I've installed XWiki from scratch, and last time it was for Ubuntu 14 with 7.1.1. It looks like enough things have changed since then that I'm doing something wrong. I'd appreciate any help in diagnosing the problem.
This time I'm using Ubuntu 16.04.1 and Tomcat 8. I'm installing from the debian/Ubuntu xwiki-enterprise-tomcat8-pgsql package version 8.2.1, with Tomcat8 package 8.0.32-1ubuntu1.1. It's running (as before) via an AJP connector behind Apache2.
https://mysite/xwiki correctly redirects to https://mysite/xwiki/bin/view/Main/ so it looks like something is happening, but I'm getting an empty page. The following are the Catalina log entries (please excuse the length) from restarting tomcat onwards. My experience has been that one always gets some warnings, but my guess is that one or more of the following are resulting in pages failing to load.
22-Aug-2016 10:11:46.465 INFO [Thread-11] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 22-Aug-2016 10:11:46.471 INFO [Thread-11] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina 22-Aug-2016 10:11:46.536 SEVERE [Catalina-startStop-2] org.apache.catalina.core.ContainerBase.stopInternal A child container failed during stop java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to stop component
[snip] You should try to stop tomcat fully and start it again. It seems you’re only stopping the webapp and there are issues with xwiki cleanup when doing so. Let us know if there are still errors. Thanks -Vincent
Visiting the page in my browser then gets a blank page, and there are no further entries in the log. Can anyone advise what might be the next step in resolving things?
Thanks,
Bryn
Hi Vincent,
From: Vincent Massol [mailto:[email protected]] Sent: Monday, 22 August 2016 8:48 PM
You should try to stop tomcat fully and start it again. It seems you’re only stopping the webapp and there are issues with xwiki cleanup when doing so.
Let us know if there are still errors.
I've stopped and started as you suggest, but I get the same result. The catalina.out log gives more data than the one I included before. Below are some selected lines. I recall that my previous installation generated a lot of warnings relating to Solr, but it's worrying that there are so many. Also, could the ClassLoader messages be part of the issue? Sorry to appear naïve. I've no idea which errors are tolerated in a typical installation and which are not. Bryn Aug 22, 2016 9:07:10 PM org.apache.catalina.core.JreMemoryLeakPreventionListener lifecycleEvent SEVERE: Failed to trigger creation of the GC Daemon thread during Tomcat start to prevent possible memory leaks. This is expected on non-Sun JVMs. java.lang.ClassNotFoundException: sun.misc.GC [...] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484) [...] Aug 22, 2016 9:07:14 PM org.apache.catalina.loader.WebappLoader buildClassPath INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5f150435 class jdk.internal.loader.ClassLoaders$AppClassLoader Aug 22, 2016 9:08:04 PM org.apache.jasper.servlet.TldScanner scanJars 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 scanning can improve startup time and JSP compilation time. 2016-08-22 21:08:32,827 [localhost-startStop-1] INFO o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server... 2016-08-22 21:08:32,888 [localhost-startStop-1] INFO o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [/var/lib/xwiki/data/solr] 2016-08-22 21:08:39,654 [coreLoadExecutor-6-thread-1] WARN o.i.j.ResourceDMBean - ISPN000042: Did not find queried attribute with name coreHashCode [many more lines line this] 2016-08-22 21:08:39,726 [coreLoadExecutor-6-thread-1] ERROR o.a.s.c.CoreContainer - Error creating core [xwiki]: Error opening new searcher org.apache.solr.common.SolrException: Error opening new searcher at org.apache.solr.core.SolrCore.<init>(SolrCore.java:820) [...] at java.lang.Thread.run(java.base@9-internal/Thread.java:804) Caused by: org.apache.solr.common.SolrException: Error opening new searcher at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1662) [...] at org.apache.solr.core.SolrCore.<init>(SolrCore.java:793) ... 9 common frames omitted Caused by: java.io.IOException: Unable to unmap the mapped buffer: MMapIndexInput(path="/var/lib/xwiki/data/solr/xwiki/data/index/segments_1") at org.apache.lucene.store.MMapDirectory$2.freeBuffer(MMapDirectory.java:329) [...] at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1631) ... 12 common frames omitted Caused by: java.lang.IllegalAccessException: class org.apache.lucene.store.MMapDirectory$2$1 cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module @ 65abf25c at sun.reflect.Reflection.throwIllegalAccessException(java.base@9-internal/Reflection.java:411) [...] at org.apache.lucene.store.MMapDirectory$2.freeBuffer(MMapDirectory.java:314) ... 22 common frames omitted 2016-08-22 21:08:39,729 [localhost-startStop-1] ERROR .o.i.DefaultObservationManager - Failed to lookup listeners org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [role = [interface org.xwiki.observation.EventListener] hint = [solr.availablelocales]] at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:216) [...] at java.lang.Thread.run(java.base@9-internal/Thread.java:804) Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.SolrInstanceProvider] identified by [role = [javax.inject.Provider<org.xwiki.search.solr.internal.api.SolrInstance>] hint = [default]] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:394) [...] at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:214) ... 19 common frames omitted Caused by: org.xwiki.component.phase.InitializationException: Failed to lookup configured Solr instance type [embedded] at org.xwiki.search.solr.internal.SolrInstanceProvider.initialize(SolrInstanceProvider.java:73) [...] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392) ... 24 common frames omitted Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.EmbeddedSolrInstance] identified by [role = [interface org.xwiki.search.solr.internal.api.SolrInstance] hint = [embedded]] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:394) at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190) at org.xwiki.search.solr.internal.SolrInstanceProvider.initialize(SolrInstanceProvider.java:71) ... 28 common frames omitted Caused by: org.xwiki.component.phase.InitializationException: Failed to initialize the Solr embedded server with home directory set to [/var/lib/xwiki/data/solr] at org.xwiki.search.solr.internal.EmbeddedSolrInstance.initialize(EmbeddedSolrInstance.java:103) [...] at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392) ... 30 common frames omitted Caused by: org.apache.solr.client.solrj.SolrServerException: Failed to initialize the Solr core. Please check the configuration and log messages. at org.xwiki.search.solr.internal.EmbeddedSolrInstance.createCoreContainer(EmbeddedSolrInstance.java:113) at org.xwiki.search.solr.internal.EmbeddedSolrInstance.initialize(EmbeddedSolrInstance.java:96) ... 34 common frames omitted 2016-08-22 21:08:39,876 [Finalizer] ERROR o.a.s.u.SolrIndexWriter - SolrIndexWriter was not closed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!! 2016-08-22 21:08:39,883 [Finalizer] ERROR o.a.s.u.SolrIndexWriter - Error closing IndexWriter java.lang.NullPointerException: null at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3128) [...] at java.lang.ref.Finalizer$FinalizerThread.run(java.base@9-internal/Finalizer.java:217) Aug 22, 2016 9:08:40 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor /etc/tomcat8/Catalina/localhost/xwiki.xml has finished in 89,728 ms Aug 22, 2016 9:08:40 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /var/lib/tomcat8/webapps/ROOT Aug 22, 2016 9:08:41 PM org.apache.catalina.loader.WebappLoader buildClassPath INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5f150435 class jdk.internal.loader.ClassLoaders$AppClassLoader Aug 22, 2016 9:08:41 PM org.apache.jasper.servlet.TldScanner scanJars 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 scanning can improve startup time and JSP compilation time. Aug 22, 2016 9:08:41 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory /var/lib/tomcat8/webapps/ROOT has finished in 981 ms Aug 22, 2016 9:08:41 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-nio-8009"] Aug 22, 2016 9:08:42 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 90900 ms
I wrote:
You should try to stop tomcat fully and start it again. It seems you’re only stopping the webapp and there are issues with xwiki cleanup when doing so.
Let us know if there are still errors.
I've stopped and started as you suggest, but I get the same result. The catalina.out log gives more data than the one I included before. Below are some selected lines. I recall that my previous installation generated a lot of warnings relating to Solr, but it's worrying that there are so many. Also, could the ClassLoader messages be part of the issue?
Just closing the loop on this thread (and mixing my metaphors in the process) the problem seems to be that XWiki is not compatible with openjdk-9. The package xwiki-enterprise-common requires (java8-runtime-headless | java8-runtime | openjdk-8-jre-headless), and in Ubuntu 16.04 (server) the chosen package fulfilling this dependency was openjdk-9-jre-headless (Provides: java-runtime-headless, java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless, java9-runtime-headless). To fix, I had to install the OpenJDK 8 version (sudo apt-get install openjdk-8-jre-headless) and then remove the OpenJDK9 version (sudo apt-get remove openjdk-9-jre-headless). Bryn
On 25 Aug 2016, at 04:02, Bryn Jeffries <[email protected]> wrote:
I wrote:
You should try to stop tomcat fully and start it again. It seems you’re only stopping the webapp and there are issues with xwiki cleanup when doing so.
Let us know if there are still errors.
I've stopped and started as you suggest, but I get the same result. The catalina.out log gives more data than the one I included before. Below are some selected lines. I recall that my previous installation generated a lot of warnings relating to Solr, but it's worrying that there are so many. Also, could the ClassLoader messages be part of the issue?
Just closing the loop on this thread (and mixing my metaphors in the process) the problem seems to be that XWiki is not compatible with openjdk-9.
The package xwiki-enterprise-common requires (java8-runtime-headless | java8-runtime | openjdk-8-jre-headless), and in Ubuntu 16.04 (server) the chosen package fulfilling this dependency was openjdk-9-jre-headless (Provides: java-runtime-headless, java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless, java9-runtime-headless).
To fix, I had to install the OpenJDK 8 version (sudo apt-get install openjdk-8-jre-headless) and then remove the OpenJDK9 version (sudo apt-get remove openjdk-9-jre-headless).
Ok, thanks for posting back! Maybe this should be documented somewhere? Thanks -Vincent
Bryn
participants (2)
-
Bryn Jeffries -
Vincent Massol