Trac: Summary: Update README to get a development environment for metrics-lib going to Update README to get a development environment for metrics-web going Type: task to enhancement
Alright, I made a start in updating the README in my task-23830 branch. However, I can't determine whether we ever needed that r-cran-[r]java package, and I ran into issues with JSTL packages being missing in Stretch that were still present in Jessie.
iwakeh, did you succeed in setting up a metrics-web instance? If so, can you resolve that JSTL mystery? If not, can you try setting up an instance and, erm, resolve that JSTL mystery? ;) If not, I'll give it another try another time.
From talking to iwakeh: we might want to look into switching ExoneraTor and then metrics-web from Tomcat to Jetty, and maybe that will magically resolve the JSTL mystery.
Whatever is easier. That's why I wrote ExoneraTor first, because it is so much smaller. And metrics-web is not on fire at the moment. Whatever is easier.
There is a patch branch of metrics-web available now on ticket #24175 (moved). It is not completely finished yet, but usable for web testing and looking at how to integrate a new module, see #24175#comment:2 for more details especially //How to test web related things and new modules//.
The list of packages won't be part of the future 'readme', b/c releases contain all necessary libraries and enable a better way of reproducing the productive environment as well as a faster start for a development environment. The debian packages also contain way more libraries than necessary.
All referenced jar (except metrics-lib) are available on debian stretch and their packages can be identified with the following query:
https://packages.debian.org/search?suite=stretch&searchon=contents&keywords=xyz.jar
Here the list of debian packages for jetty based metrics-web:
libcommons-codec-javalibcommons-lang3-javalibcommons-lang-javalibcommons-compress-javaliblogback-javalibslf4j-javalibgoogle-gson-javar-cran-rserve or r-cran-rjava both supply REngine.jar and Rserve.jarlibservlet3.1-javalibxz-javalibjetty9-javalibjetty9-extra-javalibasm-javalibtaglibs-standard-spec-javalibtomcat8-embed-javalibecj-java
I found that I also required tomcat8-annotations-api-8.5.24.jar but this may be due to me using different versions on Debian testing. Next year I'll get a Debian stable virtual machine set up for doing development/testing on.
I also had to disable duplicate="fail" for the war target in the ant script. This is probably suboptimal although I don't really understand what that does. Maybe it's only working for me by chance.
Other than that, using iwakeh's task-24175-stepbystep branch, I was able to set up a development instance! (:
I found that I also required tomcat8-annotations-api-8.5.24.jar but this may be due to me using different versions on Debian testing. Next year I'll get a Debian stable virtual machine set up for doing development/testing on.
Thanks for running it!
Hopefully, we get out a release before that. Our releases always include a full set of dependencies. The end of jar hunting.
I also had to disable duplicate="fail" for the war target in the ant script. This is probably suboptimal although I don't really understand what that does. Maybe it's only working for me by chance.
That might be due to the additional dependency; another dependency gets tweaked in order to only include one file of each. This (i.e. disabling the duplication check) will also not be necessary after a release anymore.
Other than that, using iwakeh's task-24175-stepbystep branch, I was able to set up a development instance! (:
Note that I had to install libtaglibs-standard-impl-java as well.
(Looks like it's a dependency of libjetty9-extra-java which I didn't install explicitly. Might be okay to leave it out, though it wouldn't hurt to list it as well.)
The README should contain a note that a missing taglibs-standard-impl-1.2.5.jar will not be noticed during build time but cause the following error log entry:
... org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application ...