How to configure xwiki on servlet

Hi, I haven’t any expiriens with deploying application on servlet. I’ve installed wildfly and I need to configure database connection. Should I change war file to set correct settings or there is another way?

Hi, see the doc at

Thanks for answer.
There is written that I have to modify WEB-INF/hibernate.cfg.xml configuration file. Eventually, I setup pgsql driver like this using Then I’ve got two files modules/org/postgresql/main/module.xml

<?xml version='1.0' encoding='UTF-8'?>
    <resource-root path="postgresql-42.2.9.jar"/>

    <module name="javax.api"/>
    <module name="javax.transaction.api"/>

and file standalone/configuration/standalone.xml became to: (some lines is cut)

    <datasource jndi-name="java:jboss/datasources/XWikiDS" pool-name="XWikiDS">
            <driver name="h2" module="com.h2database.h2">
            <driver name="postgres" module="org.postgresql">

The next step is editing hibernate.cfg.xml to set properly connection but then I have to edit war file. Default hibernate.cfg.xml has a hsqldb connection. Is it necessary to rebild war file to set properly connection? Or is there another way to say xwiki get wildfly settings to connect DB. Thanks.

When I did this, I exploded the xwiki WAR on the filesystem, see