Dotan Cohen wrote:and other than the use of a package (which I deliberately am not doing yet)
Bear Bibeault wrote:Why is test under ROOT?
And foo.html as a mapping is folly. You're going to screw up the caching because everything assumes that anything ending with .html is a static resource.
Dotan Cohen wrote:Because ROOT is the tomcat webroot.
Though to be honest, even on production dynamic sites I do prefer the .html ending and the proper headers to prevent caching.
The nice thing about that is that I can use different technologies under the hood (Python, PHP). But that is a whole other discussion, to be sure!
Bear Bibeault wrote:
Dotan Cohen wrote:Because ROOT is the tomcat webroot.
It is not. It is the root web application. You are trying to put one web app inside another.
For automatic deployment, web apps should have their context root (folder with WEB-INF) in the webapps folder.
Maximum folly. All you will do is to create non-deterministic behavior. If you want to prevent caching, just do so with the proper HTTP headers.
There is no nice thing about it. It will lead to eventual disaster. I have the scars to prove it. Use mappings without any associated file type.
Bear Bibeault wrote:Read the Tomcat documentation. Get the manager app running.
Bear Bibeault wrote:Time to look in the logs. Something is keeping your app from deploying.
Ulf Dittmer wrote:What are the contents of web.xml now?
Also, none of the later "tree" outputs shows any class files inside of WEB-INF/classes.
Don't get me started about those stupid light bulbs. |