HI Minos!
I am currently just working in the cargo build ... but the issue will be exactly the same during actually deployment. Here is some background: The ViewerJS component wraps the PDF.js stuff but has an entry point which is an HTML file. It is designed to be deployed as a folder under the root of a website (e.g.
http://localhost:8080/site/ViewerJS/). Then one addresses a locally stored PDF file using an anchor tag (e.g. <a href="
http://localhost:8080/site/ViewerjsJS/#../docs/pdf-sample.pdf">). Inside of the ViewerJS folder there is an "index.html" file which is the entry point for the component. That html file uses the argument (e.g. "../docs/pdf-sample.pdf") to obtain the file to display. Here is a link to the basic info on it if that would help: "
http://viewerjs.org/instructions/".
It is obvious that the site.war unpacks to include my ViewerJS folder in the root of 'site'. But I cannot access the index.html file. I can access the docs/pdf-sample.pdf file though.
My belief is that the index.html - which is the entry point - is inaccessible since it is not mapped in the sitemap, nor is there any prefix exclude type function that could prevent some kind of URL rewriting. If I could figure out how to allow the tomcat to access the ViewerJS folder without URL rewriting for the html files(s) then I think it would work.
Please ask more questions - maybe I will see where the issue really is or how to fix!
Thanks!!
-John