Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I solved the problem. The evil is <strong>Win7's File Virtualization</strong> feature. By default, Win7 will enable this feature on several well-known folders, e.g. Windows, Program Files, ProgramData, etc. The effect is that under some conditions, a file will have dual contents and this just happen to occur on my server.xml.</p> <p>The workaround is clean things in '<strong>c:\Users\&lt;user account&gt;\AppData\local\VirtualStore</strong>'. The long-time solution is "Don't install Tomcat in these well-know folders. If you insist, be sure not to install-'n-uninstall too many times."</p> <p><em>~~~ How I find this problem (you may not need to see this) ~~~</em></p> <p>Two words: "Pure luck". When I use some xml editor to edit tomcat-users.xml and add a user 'test'. I restart Tomcat but can't login to use manager UI. I recheck tomcat-users.xml and see that user is indeed set. Even I uninstall-'n-install different version of Tomcat, login still fails.</p> <p>Then I use notepad to edit tomcat-users.xml and I'm astonished to see it's the original version Tomcat has installed. After editing it with notepad and restart Tomcat, I can login now.</p> <p>Very quickly, my thoughts flashes to server.xml and I use notepad to see it. Ah Ha! There's no <em>URIEncoding</em> attrbutes in connector tag. After fixing it, The problem is solved.</p> <p><em>Eiplog</em></p> <p>In my case, my xml editor and IE both show wrong version, but my other browers and notepad show correct version. I still don't know what algorithm does Win7 uses on File Virtualization, so I think workaround will live for a while.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload