-
1. Re: Guvnor/Tomcat/Mysql - dueling repository.xml's
mrctrevisan Jul 27, 2012 4:59 AM (in response to mcfeber)It MAY be due to the fact that the working directory ($wd) on which Tomcat is running is $CATALINA_HOME.
this might be the case if you run tomcat by issuing the shell command from $CATALINA_HOME (something like "cd $CATALINA_HOME; ./bin/startup.sh").
Since in my opinion it's not straightforward to depend on the working directory to locate my working datastore, I solved the problem editing WEB-INF/components.xml in the drools-guvnor.war archive, uncommenting the "repository.root.directory" property (as suggested for production environments):
<!-- JackRabbit -->
<property name="properties">
<key>org.drools.repository.configurator</key><value>org.drools.repository.jackrabbit.JackrabbitRepositoryConfigurator</value>
<!-- the root directory for the repo storage the directory must exist. -->
<key>repository.root.directory</key><value>/opt/myDirectory</value>
</property>
See also: http://www.integratingstuff.com/2011/01/28/setting-up-drools-guvnor/
Hope this helps. Cheers,
Marco