I keep getting issues when i try to start tomcat with a xwiki17.6 installation.
I use mariadb-java-client-3.5.4.jar for the DB connection.
openjdk version “17.0.15” 2025-04-15 LTS
OpenJDK Runtime Environment (Red_Hat-17.0.15.0.6-1) (build 17.0.15+6-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-17.0.15.0.6-1) (build 17.0.15+6-LTS, mixed mode, sharing)
When I comment everything in hibernate.cfg.xml for the mariadb connection, it starts, when I uncomment the MariaDB section from the file, it failing, I can’t see why. It is complaining about some syntax / formatting issue.
Caused by: org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number -1 and column -1 in URL
file:/data/tomcat/webapps/xwiki/WEB-INF/hibernate.cfg.xml.
Message: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘{“http://www.hibernate.org/xsd/orm/cfg”:property}’.
One of ‘{“http://www.hibernate.org/xsd/orm/cfg”:mapping, “http://www.hibernate.org/xsd/orm/cfg”:class-cache, “http://www.hibernate.org/xsd/orm/cfg”:collection-cache, “http://www.hibernate.org/xsd/orm/cfg”:event, “http://www.hibernate.org/xsd/orm/cfg”:listener}’ is expected.
<property name="hibernate.connection.url">jdbc:mariadb://localhost/xwiki?useSSL=false</property>
<property name="hibernate.connection.username">xwiki</property>
<property name="hibernate.connection.password">xwiki</property>
<property name="hibernate.connection.driver_class">org.mariadb.jdbc.Driver</property>
<property name="hibernate.dbcp.poolPreparedStatements">true</property>
<property name="hibernate.dbcp.maxOpenPreparedStatements">20</property>
<property name="hibernate.connection.charSet">UTF-8</property>
<property name="hibernate.connection.useUnicode">true</property>
<property name="hibernate.connection.characterEncoding">utf8</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="instance.hbm.xml"/>
<mapping resource="notification-filter-preferences.hbm.xml"/>
<mapping resource="mailsender.hbm.xml"/>