I use Hibernate Search in an application running on wildfly 9.0.2. The data-layer for the application is packed in an ejb, where persistence.xml also lives. The ejb is included in the application war. In persistence.xml lucene index directory is '<property name="hibernate.search.default.indexBase" value="/var/lucene/indexes"/>'. Wildfly runs on Ubuntu 16.04. Now, when I set up wildfly under systemd, the indexBase property, and possibly others from persistence.xml, is ignored, and / is used instead, where wildfly is not allowed to write.
Adding the property to the command line (in wildfly.service); -Dhibernate.search.default.indexBase=/var/lucene/indexes resolves the problem. But why does hibernate search ignore properties in persistence.xml under systemd?
|