-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate search (lucene) and systemd
PostPosted: Tue Apr 26, 2016 2:02 am 
Newbie

Joined: Tue Apr 26, 2016 1:56 am
Posts: 1
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?


Top
 Profile  
 
 Post subject: Re: Hibernate search (lucene) and systemd
PostPosted: Tue Apr 26, 2016 7:57 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
This conversation continued on: http://stackoverflow.com/questions/3684 ... ning-under

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.