Provide dataminer as a war file and not a zip one
|Status:||Closed||Start date:||May 12, 2017|
|Assignee:||Lucio Lelii||% Done:|
|Sprint:||zz - Dataminer distribution|
the dataminer distribution is actually a zip file, built by Gianpaolo Coro with a complex procedure.
A war should be better maintainable.
#1 Updated by Andrea Dell'Amico over 2 years ago
There's some progress already, partly discussed in another ticket. I'm copying it here:
The war distribution does not contain the algorithms, that must be downloaded separately.
Problem is, dataminer searches them in WEB-INF/lib only. @email@example.com Is it possible to extend the classpath to find them outside the wps webapp directory or at least into a WEB-INF/lib subdirectory?
The first option would be the ideal one, so that we could use subversion to have the algorithms up to date and upgrade dataminer without reinstalling all the algorithms.
#7 Updated by Lucio Lelii 2 days ago
adding the file $APP.xml with the following content:
<!-- http://tomcat.apache.org/tomcat-7.0-doc/config/context.html -->
It seems to work, but I need more tests to be sure.
#2 Updated by Andrea Dell'Amico over 2 years ago
A newer version of the catalina configuration:
<Context path="/wps" reloadable="true"> <!-- http://tomcat.apache.org/tomcat-7.0-doc/config/context.html --> <Loader className="org.apache.catalina.loader.VirtualWebappLoader" searchVirtualFirst="true" virtualClasspath="/home/gcube/wps_algorithms/algorithms/*.jar"/> <JarScanner scanAllDirectories="true"/> </Context>