[resolved] XWiki 18.2 upgrade woes (xwiki.tomcat.cacheMaxSize undefined?)

I just upgraded XWiki and then had to find and fix two problems to get the server running again

1/ unable to find hibernate.cfg.xml (bug already found and fixed I see, Loading... )

2/ and xwiki.tomcat.cacheMaxSize is referenced in the xwiki-tomcat10.xml file, but it does not appear to be defined.

The new version provided by the upgrade has the following:

<Resources allowLinking=“true” cachingAllowed=“true” cacheMaxSize="${xwiki.tomcat.cacheMaxSize} />

and Tomcat quickly rewards me with the following error:

[warning] Match [Context/Resources] failed to set property [cacheMaxSize] to [${xwiki.tomcat.cacheMaxSize}]

I’ve changed it to the following to work around the issue

<Resources allowLinking="true" cachingAllowed="true" cacheMaxSize="1048576" cacheObjectMaxSize="16384" />

Should xwiki.tomcat.cacheMaxSize be defined somewhere, like in the xwiki.cfg file?

Hello, sorry about that, please see https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/18.2.0/ which links to Loading...

We’re releasing 17.10.6 and 18.2.1 ASAP.

Thanks

1 Like

Hi @vmassol, thanks. Yes, I found that after I fixed the hibernate.cfg.xml problem manually.

I don’t see anything in the 18.2.0 notes about the 2nd issue I ran into. Did I find a new problem/oversight?

It’s Loading....

Those notes are unfortunately not very good at gathering all the problems. It’s a 18.2.0RC1 regression so it’s not listed in 18.2.0.

2 Likes