Tomcat on Windows Issue - Attack of the WEB-INF
Last night, I was completing the Railo install with Tomcat on Windows 7. As I was wrapping up, I noticed something odd. Railo's WEB-INF directories were all over the place in Tomcat's subfolders and they weren't supposed to be. It's because of my server.xml <host> was wrong.
I had:
<Host name="testhost1">
<Context path="" docBase="C:/Dev/websites/testhost1" />
</Host>
<Host name="testhost2">
<Context path="" docBase="C:/Dev/websites/testhost2" />
</Host>
When it should have been:
<Host name="testhost1" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">>
<Context path="" docBase="C:/Dev/websites/testhost1" />
</Host>
<Host name="testhost2" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">>
<Context path="" docBase="C:/Dev/websites/testhost2" />
</Host>
Thanks to Sean Corfield and Jamie Krug for the assist. As soon as they mentioned it, I facepalmed. I figured because I wasn't setting up Railo wars, that I could do away with all the extra attributes and it was a bad assumption on my part.
I've already fixed my previous blog post. Sorry for the issues.
Leigh wrote on 12/15/09 4:56 PM
"Attack of the killer WEB-INF Folders" ... playing now in a theatre near you