Wednesday, August 26, 2009

Spring JS with Tomcat in Program Files on Windows Vista

Recently, I’ve got a new notebook came with Vista.  After migrating Spring Web Flow projects from the old XP machine, the dojo.js which Spring JS depends on would not load on the web pages.  Investigating further, every javascript file served through the ResourceServlet of Spring JS became empty on the browser.  CSS files, however, stayed intact.

At first, I thought it might be something to do with the Vista UAC, but couldn’t find anything on google.  Then thinking Java might have have some quirks on Vista, but turns out my problem have nothing to do with that.  Then an entry on Tomcat FAQ that is remotely related caught my attention.   The question is “Why aren't access logs showing up in Tomcat on Vista?”.  The answer says it’s folder permissions messing with logging function, however, some logs write through mysteriously.  When the word “mysteriously” comes out in diagnosing programming problems, it means it’s going to take a very long time to fix it, so I take the suggestion from the entry, moving tomcat folder out of “Program Files” folder.  Everything magically started working again.

No comments:

Post a Comment