XWikiCloudFormation template update Aurora serverless V2

I’ve been trying to get XWiki running on AWS with mysql aurora serverless v2. I’ve tried updating the template and it builds without errors but when I connect to the server it responds with a host of errors headed: HTTP Status 500 – Internal Server Error.

The first error I can find in the CloudWatch Logs is:
[XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
The CloudWatch log, server errors, and my changed template are attached.

I’ve tried activating the DataAPI for the database but that didn’t work either. If someone could point me in the right direction I’d be most grateful.

CloudWatch Log.txt (676.8 KB)
xwiki.template.json.txt (41.0 KB)
internal server error.txt (51.4 KB)

Hi @btimmer,

It looks like MySQL JDBC Driver JAR (named mysql-connector-java*.jar) is missing from /WEB-INF/lib/.
Check the https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationMySQL/#HInstallationSteps.

Hope it helps,
Alex

Thank you Acotiuga, I’ll have a look at that.

If the JDBC driver is not there, I assume that it means that it’s not required for the serverless v1 install, since that works with the same image.