Open pmauduit opened 4 years ago
It actually fails only if the webapp is generated without having generated the web resources before (npm
).
But even if this is ok with the web ones, I still encounter the same issue with some other resources:
mapstore2_1 | 2019-11-15 17:35:22.479:WARN:oejs.HttpChannel:qtp1709537756-21: /GeOrchestra/pdf.worker.js
mapstore2_1 | javax.servlet.ServletException: javax.servlet.ServletException: java.lang.IllegalStateException: WRITER
[...]
mapstore2_1 | Caused by:
mapstore2_1 | java.lang.IllegalStateException: WRITER
mapstore2_1 | at org.eclipse.jetty.server.Response.getOutputStream(Response.java:1019)
mapstore2_1 | at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:93)
mapstore2_1 | at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:89)
Hi @pmauduit I think the errors you get are related to missing static resources (js, css). The filter is probably called after the web container already sent an error response (404), so it cannot be applied. I will check why/when it's looking for pdf.worker.js and why it is missing.
We did an investigation, and the missing file is not mandatory, the printing functionality works also without it. We still want to check if having the js file in the deploy is useful for performance or anything else.
Encountered on a tomcat image (using the dockerfile provided in the repository):
Encountering a similar issue trying the generated webapp in a Jetty container: