Hi Andy,
On Apr 27, 2011, at 1:25 PM, andyp wrote:
Hi all,
I'm trying to install the XWiki war file on a Ubuntu virtual machine (KVM)
but as yet with no success. I've installed and configured java, jboss and
mysql using all the information I could find from your website:
[snip]
01:36:10,087 WARN [ClassLoaderManager] Unexpected
error during load
of:org.apache.jackrabbit.core.query.lucene.WildcardQuery$WildcardQueryWeight:
java.lang.IncompatibleClassChangeError: Implementing class
[snip]
01:36:10,936 WARN [ClassLoaderManager] Unexpected
error during load
of:org.apache.jackrabbit.core.query.lucene.MatchAllWeight:
java.lang.IncompatibleClassChangeError: Implementing class
[snip]
As you can see in the error above the problem is an incompatible version. JBoss uses
Jackrabbit in a given version and XWiki users another version of Jackrabbit.
It's the role of the appserver to isolate classloader so that a webapp can use
whatever version it wants in WEB-INF/lib.
You need to configure JBoss to provide this isolation. You need to check Jboss's doc
for that.
Alternatively you could remove xwiki'ds jackrabbit version from WEB-INF/lib (make
sure the version used by jboss is greater than the one used by xwiki).
Thanks
-Vincent
Can anyone see what I'm doing wrong? All the
information on the web seems a
little old – I'm using JBoss 6. I would be grateful if anyone could help
shed any light on this issue.
Cheers,
Andy