Help needed: xwiki docker renders an invalid hibernate.cfg.xml on start

Hi folks, I’m running xwiki using the oficial docker images. This week we updated our running image to the latest lts-xwiki-tomcat:latest image and the application broke with an error in the stack trace indicating that the hibernate.cfg.xml is invalid.

I investigated this issue by accessing the file inside the container and noticed that at the end of the xml file there was two text line related to a plugin that we already disabled, hence rendering an invalid xml and producing the error.

Since I’m not 100% familiar with the startup process but it seems this file is being updated when the application starts, but I couldn’t figure what is how fix this.

The lines below are being appended to the end of the XML file:

xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.GroovyAuthServiceImpl
xwiki.authentication.groovy.pagename=xwiki:GoogleApps.AuthService

Anyone knows how can I fix this? where this information may be coming from (so I can delete it)?

Thanks for any help

Hi,

I’ve added some info about it here: xwiki-docker/README.md at master · xwiki/xwiki-docker · GitHub

thanks @vmassol. After some investigation I found my error. The container I’m using has a mapped volume for the container’s /usr/local/xwiki and this content seems to be used as source for the tomcat web application during startup. the original (and broken) hibernate conf was stored there. Once I fixed it the container started as expected.

Thanks!