I deployed the .war archive to Tomcat 7.0.22 (Java 1.6, MacOS Lion). The war is called "myapp.war", so Tomcat serves http: // localhost / myapp (extending the war to / webapps / myapp). This is the usual behavior.
When accessing the URL corresponding to the directory, it must add "/". For static files (.css, .js ..) to work correctly, it is necessary, but so far it works with examples of sites that come with Tomcat (for example, visiting http://127.0.0.1:8080/examples
unexpectedly migrates to http://127.0.0.1:8080/examples/
), on my site tomcat does not add "/", which leads to a failure of the search for static files. When manually calling localhost:8080/myapp/
(<- I add a slash) everything works fine.
What should be? Keep in mind that I did not touch on Tomcat settings, I am just experimenting with what comes directly from the Apache ZIP file!
thanks
source share