Re: [xwiki-users] Fw : Re: Could not use Java8 with xwiki on 7.0.1 (and 8.2.1)
> Caused by: org.infinispan.jmx.JmxDomainConflictException: Domain already > registered org.xwiki.infinispan when trying to register: > type=CacheManager,name="xwiki" This usually means you have two instances of XWiki running in the same JVM (the cache manager already been registered by the first instance). On Tue, Aug 30, 2016 at 11:14 AM, Pascal BASTIENwrote: > > > --- En date de : Mar 30.8.16, Thomas Mortagne a > écrit : > >> De: Thomas Mortagne >> Objet: Re: [xwiki-users] Could not use Java8 with xwiki on 7.0.1 (and 8.2.1) >> À: "Pascal BASTIEN" , "XWiki Users" >> >> Date: Mardi 30 août 2016, 10h54 >> On Tue, Aug 30, 2016 at >> 10:39 AM, Pascal BASTIEN >> >> wrote: >> > Hi, >> > >> > I use xwiki 7.0.1 / tomcat-7.0.47 and I >> didn't manage to upgrade xwiki to xwiki 8.2.1. >> > Then I tried to use java8/tomcat-8.5.4 to >> launch my current xwiki7.0.1 but I failed with these error >> message. >> > >> > To >> resume, with apache-tomcat-8.5.4 if I use java7, I can use >> Xwiki 7.0.1 but if I simply modify bin/catalina.sh with >> JAVA_HOME=/opt/jre1.8.0_102 xwiki crash with theses error >> :-( >> > >> > Any idea what >> is the problem? >> >> I don't >> think it has anything to do with Java 8. I'm using Java8 >> since >> a very long time and it always worked >> well. I would bet for a mistake >> in the >> configuration or something to do with this version of >> Tomcat >> but hard to say without the root >> error. > > Yes I agree but I passed 2 days to identify that: I change java from 7 to 8 > to crash xwiki. > >> > >> > My tomcat launch only on xwiki (without >> other xwiki or application) and I launch tomcat with root >> account. > > I launch tomcat with: > JAVA_HOME=/opt/jre1.8.0_102 > CATALINA_HOME=/home/opt/apache-tomcat-8.5.4 > JAVA_OPTS="-server -Xms1724m -Xmx1724m -Dfile.encoding=utf-8 > -Djava.awt.headless=true -XX:+UseParallelGC -XX:MaxGCPauseMillis=100 > -Dhttp.proxyHost=MyProxy -Dhttp.proxyPort=MyPort" > > JAVA_OPTS="$JAVA_OPTS -Dappserver.home=$CATALINA_HOME > -Dappserver.base=$CATALINA_HOME" > > and xwiki is on the root on my tomcat server > path="/" reloadable="true" antiResourceLocking="false" antiJARLocking="false"> > > I confirm I'm far to be an expert on Tomcat > >> > >> 2016-08-29 15:50:52,750 [Core extension repository updater] >> ERROR o.i.j.JmxUtil - ISPN34: >> There's already an cache manager instance registered >> under 'org.xwiki.infinispan' JMX domain. If you want >> to allow multiple instances configured with same JMX domain > >> > at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:622) >> > >> > >> >> Those >> errors are a consequence of a failed initialization of >> XWiki, >> not a cause. You should indicate the >> first errors you get when Tomcat >> starts. >> > > > Be carefull at your eyes, here my catalina.out with java8 :-/ > > > 30-Aug-2016 11:03:12.953 WARNING [main] > org.apache.catalina.startup.SetAllPropertiesRule.begin > [SetAllPropertiesRule]{Server/Service/Connector} Setting property > 'maxSpareThreads' to '75' did not find a matching property. > 30-Aug-2016 11:03:12.958 WARNING [main] > org.apache.catalina.startup.SetAllPropertiesRule.begin > [SetAllPropertiesRule]{Server/Service/Connector} Setting property > 'maxHttpHeaderSize' to '8192' did not find a matching property. > 30-Aug-2016 11:03:12.958 WARNING [main] > org.apache.catalina.startup.SetAllPropertiesRule.begin > [SetAllPropertiesRule]{Server/Service/Connector} Setting property > 'maxSpareThreads' to '75' did not find a matching property. > 30-Aug-2016 11:03:12.959 WARNING [main] > org.apache.catalina.startup.SetAllPropertiesRule.begin > [SetAllPropertiesRule]{Server/Service/Connector} Setting property > 'disableUploadTimeout' to 'true' did not find a matching property. > 30-Aug-2016 11:03:12.984 WARNING [main] > org.apache.tomcat.util.digester.Digester.endElement No rules found matching > 'Server/Service/Engine/Host/Logger'. > 30-Aug-2016 11:03:13.009 WARNING [main] > org.apache.catalina.core.StandardContext.setPath A context path must either > be an empty string or start with a '/' and do not end with a '/'. The path > [/] does not meet these criteria and has been changed to [] > 30-Aug-2016 11:03:13.010 WARNING [main] > org.apache.tomcat.util.digester.SetPropertiesRule.begin > [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property > 'antiJARLocking' to 'false' did not find a matching property. > 30-Aug-2016 11:03:13.021 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Server version: > Apache Tomcat/8.5.4 > 30-Aug-2016 11:03:13.021 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Server built: > Jul 6 2016 08:43:30 UTC > 30-Aug-2016 11:03:13.021 INFO [main] >
[xwiki-users] Fw : Re: Could not use Java8 with xwiki on 7.0.1 (and 8.2.1)
--- En date de : Mar 30.8.16, Thomas Mortagnea écrit : > De: Thomas Mortagne > Objet: Re: [xwiki-users] Could not use Java8 with xwiki on 7.0.1 (and 8.2.1) > À: "Pascal BASTIEN" , "XWiki Users" > Date: Mardi 30 août 2016, 10h54 > On Tue, Aug 30, 2016 at > 10:39 AM, Pascal BASTIEN > > wrote: > > Hi, > > > > I use xwiki 7.0.1 / tomcat-7.0.47 and I > didn't manage to upgrade xwiki to xwiki 8.2.1. > > Then I tried to use java8/tomcat-8.5.4 to > launch my current xwiki7.0.1 but I failed with these error > message. > > > > To > resume, with apache-tomcat-8.5.4 if I use java7, I can use > Xwiki 7.0.1 but if I simply modify bin/catalina.sh with > JAVA_HOME=/opt/jre1.8.0_102 xwiki crash with theses error > :-( > > > > Any idea what > is the problem? > > I don't > think it has anything to do with Java 8. I'm using Java8 > since > a very long time and it always worked > well. I would bet for a mistake > in the > configuration or something to do with this version of > Tomcat > but hard to say without the root > error. Yes I agree but I passed 2 days to identify that: I change java from 7 to 8 to crash xwiki. > > > > My tomcat launch only on xwiki (without > other xwiki or application) and I launch tomcat with root > account. I launch tomcat with: JAVA_HOME=/opt/jre1.8.0_102 CATALINA_HOME=/home/opt/apache-tomcat-8.5.4 JAVA_OPTS="-server -Xms1724m -Xmx1724m -Dfile.encoding=utf-8 -Djava.awt.headless=true -XX:+UseParallelGC -XX:MaxGCPauseMillis=100 -Dhttp.proxyHost=MyProxy -Dhttp.proxyPort=MyPort" JAVA_OPTS="$JAVA_OPTS -Dappserver.home=$CATALINA_HOME -Dappserver.base=$CATALINA_HOME" and xwiki is on the root on my tomcat server I confirm I'm far to be an expert on Tomcat > > > 2016-08-29 15:50:52,750 [Core extension repository updater] > ERROR o.i.j.JmxUtil - ISPN34: > There's already an cache manager instance registered > under 'org.xwiki.infinispan' JMX domain. If you want > to allow multiple instances configured with same JMX domain > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:622) > > > > > > Those > errors are a consequence of a failed initialization of > XWiki, > not a cause. You should indicate the > first errors you get when Tomcat > starts. > Be carefull at your eyes, here my catalina.out with java8 :-/ 30-Aug-2016 11:03:12.953 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property. 30-Aug-2016 11:03:12.958 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxHttpHeaderSize' to '8192' did not find a matching property. 30-Aug-2016 11:03:12.958 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property. 30-Aug-2016 11:03:12.959 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'disableUploadTimeout' to 'true' did not find a matching property. 30-Aug-2016 11:03:12.984 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement No rules found matching 'Server/Service/Engine/Host/Logger'. 30-Aug-2016 11:03:13.009 WARNING [main] org.apache.catalina.core.StandardContext.setPath A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to [] 30-Aug-2016 11:03:13.010 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'antiJARLocking' to 'false' did not find a matching property. 30-Aug-2016 11:03:13.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.4 30-Aug-2016 11:03:13.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 6 2016 08:43:30 UTC 30-Aug-2016 11:03:13.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.4.0 30-Aug-2016 11:03:13.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 30-Aug-2016 11:03:13.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.16.0-4-amd64 30-Aug-2016 11:03:13.022 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 30-Aug-2016 11:03:13.022 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /home/opt/jre1.8.0_102 30-Aug-2016 11:03:13.022 INFO [main]