javax.servlet.ServletException: java.util.zip.ZipException: zip file is empty #2
Comments
I can confirm the issue (but strangely only on one of my machines). Looking into this … |
The
|
Now I have got it up running. The issue should be related to the web container image. Instead of using jetty:alpine, I use tomcat:7-jre8 instead. I tried some other web container images too, such as tomcat:8-jre8 and tomcat:9-jre8, and none of these would work. So tomcat:7-jre8 is the only container that works for me for the moment. And the conflict between the two versions of saxon seems not the root cause of this issue. I solved the conflict as @egh pointed, but the issued remained. The issue was not solved until I tried using the tomcat:7-jre8 image. |
The image works for me but for one machine which is behind a proxy. Is that by chance your setup as well? |
there seems to be some issue? see peterstadler/oxgarage-docker#2
There's a subtle classpath issue that causes this error. I ran into it while working on adding XSLT 3.0 support (using my Mac laptop). The version of Jing-Trang OxGarage gets from Maven has a dependency on Saxon 8.7. So you end up with a saxon-8.7.jar and a Saxon-HE-9.8.0-7.jar. On a Linux system, with a case-sensitive filesystem (which is the default), Jar files are loaded in lexicographic order, so Saxon-HE-9.8.0-7.jar comes first and wins. Mac HFS+ filesystems are by default case-insensitive, so saxon-8.7.jar is loaded first and your A quick and dirty solution is to rename saxon-8.7.jar (in ege-webservice/WEB-INF/lib) to something like Zsaxon-8.7.jar. Using a case-sensitive filesystem also works, obviously. Longer term, maybe we should look at whether there's anything we can do about the transitive dependency on the old version of Saxon. |
For the time being I switched to Tomcat7 as suggested by @yucigou and it works nicely – many thanks for the hint! NB: I did that change in the Docker image at https://hub.docker.com/r/teic/oxgarage/ which is based on the GitHub repo at https://github.com/TEIC/oxgarage. I will tear down this repo here, so please continue to report any issues there, thanks! |
I followed the readme file of this docker. I built the image and started the container. All seemed fine.
Then I tried to test it with the follow command (which is from the read me file at https://github.com/TEIC/oxgarage):
But I got errors in the log saying:
Any ideas please? Thanks.
The text was updated successfully, but these errors were encountered: