Begin forwarded message:
From: Vincent Massol
Subject: Re: Get started with XWiki
Date: 14 May 2018 at 09:10:06 CEST
To: XXX
Cc: XXX
Hi Christian,
On 12 May 2018, at 14:25, Christian XXX wrote:
It's not working.
And as usual ith java, the log does not help. Maybe if I were an expert? But an app is
supposed to be installed by just 'smart' users, not experts.
If you choose the easy installation methods we propose then it’s easy and you have
nothing to do.
Which distribution did you choose and use?
And there is no help from the website.
Oracle Linux 7.
Linux localhost.localdomain 4.1.12-124.14.5.el7uek.x86_64 #2 SMP Fri May 4 15:26:53 PDT
2018 x86_64 x86_64 x86_64 GNU/Linux
Java 10
Xwiki 10.3
tomcat.
If it is not compatible whith this java. It should not install.
It’s just not been tested with Java 10 yet. It’s not even fully working with Java 9.
Note that it’s hard to check for the java version for all the distributions since XWiki
is a webapp and the XWiki WAR can just be dropped in a servlet container and thus we don’t
have a startup script and a place where we can put a check. All we could do is have a
Servlet Listener that would emit a big stack trace (like the one you got) and that would
say at the innermost level that XWiki requires Java <= 8. But even that wouldn’t be
good since it would prevent testing in Java 9+. We want feedback from users about what
works/what doesn’t work so improve support for Java 9 and 10.
If it is compatible with only one version of
java, which one?
You need to read the installation page ;)
See
http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/ and
especially:
http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/#…
Here is the error:
Error number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm
Error number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while evaluating velocity
template colorThemeInit.vm
[snip]
Caused by: java.lang.IllegalStateException: No
standard field found for reverse order comparator!
at org.jboss.marshalling.river.Protocol.<clinit>(Protocol.java:276)
... 249 mor
[snip
Caused by: java.lang.IllegalStateException: No
standard field found for reverse order comparator!
at org.jboss.marshalling.river.Protocol.<clinit>(Protocol.java:276)
... 249 mor
What this says is that JBoss Infinispan (which we use) is not compatible with Java 10.
Apparently this is fixed in recent version of JBoss Marshalling:
https://issues.jboss.org/browse/JBMAR-216. We probably just need to wait for JBoss
Infinispan to release a new version that uses JBoss Marshalling 2.1.0.Final.
What would be awesome would be for you to report the problem of using XWiki with Java 10
on
https://jira.xwiki.org so that we can have an issue for it and work to make it work.
Note that I’m replying to this message to help you out but it’s not the right place to
post a question and get help normally. For that we have a user forum at
https://forum.xwiki.org/.
I’m sorry you had some issues. OTOH you’re looking for trouble by trying with Java 10.
There are very few (if any!) java app that currently work with Java 9 and 10. You’d be
much better off using Java 8. On the positive side, if you raise the issue on
https://jira.xwiki.org, then you will transform your negative experience into a positive
one, by contributing to the development of XWiki and helping out future users.
Thanks
-Vincent Massol