library/roles/smartgears/dataminer_app: Install the catalina configuration to extend the classpath.

This commit is contained in:
Andrea Dell'Amico 2017-05-12 19:28:09 +02:00
parent 2f4d7656be
commit 9c36221e11
2 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,11 @@
template: src=wps-config-fixer.j2 dest=/usr/local/bin/wps-config-fixer owner=root group=root mode=0555 template: src=wps-config-fixer.j2 dest=/usr/local/bin/wps-config-fixer owner=root group=root mode=0555
with_items: '{{ tomcat_m_instances }}' with_items: '{{ tomcat_m_instances }}'
- name: Install the catalina additional configuration
template: src={{ dataminer_wps_name }}.xml.j2 dest={{ item.instance_path }}/conf/Catalina/localhost/{{ dataminer_wps_name }}.xml
with_items: '{{ tomcat_m_instances }}'
notify: Restart smartgears
- name: Fix the WPS config file - name: Fix the WPS config file
shell: /usr/local/bin/wps-config-fixer shell: /usr/local/bin/wps-config-fixer
# notify: Restart smartgears # notify: Restart smartgears

View File

@ -0,0 +1,6 @@
<Context path="/{{ dataminer_wps_name }}" reloadable="true">
<!-- http://tomcat.apache.org/tomcat-7.0-doc/config/context.html -->
<Loader className="org.apache.catalina.loader.VirtualWebappLoader" searchVirtualFirst="true"
virtualClasspath="{{ smartgears_user_home }}/wps_algorithms/algorithms/*.jar"/>
<JarScanner scanAllDirectories="true"/>
</Context>