On May 3, 2011, at 9:58 AM, Sergiu Dumitriu wrote:

> On 05/03/2011 09:40 AM, Vincent Massol wrote:
>> 
>> On May 3, 2011, at 9:39 AM, Vincent Massol wrote:
>> 
>>> 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.
>> 
>> I just googled it quickly and found
>> http://community.jboss.org/wiki/ClassLoadingConfiguration
> 
> Should we create a jboss-web.xml configuration file as well?
> 
> We recently added a sun-web.xml file to fix another classloading 
> problem, this time for GlassFish.

We could...

Personally I don't like that too much since those special container-specific 
files are container-specific and they're up to the admin deployer to set up. 
Usually admins provide their own and it really depends how they set up their 
appserver (there isn't a single way). The alternative is to simply document 
this in the install notes (or even provide the xml file as an attachment in the 
release notes as an example).

Normally people who install WARs and who don't use the standalone version 
should have admin qualifications and *must* know their app server and how to 
configure it.

Let's say I'm +0

Thanks
-Vincent

>> Hope it helps,
>> -Vincent
>> 
>>> 
>>> 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
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to