Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8074309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:36:43+00:00 2026-06-05T14:36:43+00:00

I deploy a war to my Tomcat 6.0.35 on Win7 64bit and when I

  • 0

I deploy a war to my Tomcat 6.0.35 on Win7 64bit and when I use full-interface query page (I mean form.jsp) in Solr Admin to query 2 Chinese character (say it’s C1C2) , the debug info shows:

<lst name="debug">
  <str name="rawquerystring">æ°è</str>
  <str name="querystring">æ°è</str>
  <str name="parsedquery">NEWSID:æ°è</str>
  <str name="parsedquery_toString">NEWSID:æ°è</str>
...

You can see C1C2 becomes æ°è. I deploy same war file to Tomcat on Linux or on another Win7 64bit of my colleagues’ computer, the encoding acts well. Does anyone know why and how can I avoid this problem?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:36:45+00:00Added an answer on June 5, 2026 at 2:36 pm

    I solved the problem. The evil is Win7’s File Virtualization 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.

    The workaround is clean things in ‘c:\Users\<user account>\AppData\local\VirtualStore‘. 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.”

    ~~~ How I find this problem (you may not need to see this) ~~~

    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.

    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.

    Very quickly, my thoughts flashes to server.xml and I use notepad to see it. Ah Ha! There’s no URIEncoding attrbutes in connector tag. After fixing it, The problem is solved.

    Eiplog

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use tomcat-maven-plugin to deploy my war to a server. What I have to
Possible Duplicate: deploy war in Tomcat I Deployed solr.war in tomcat webapps folder and
Once i deploy solr.war to tomcat under webapps folder, if i wanna test some
I'm adding a task to deploy war files to Tomcat .. the only thing
When I deploy my war file in tomcat, the SEVERE errors thrown by Catalina
I am trying to deploy a WAR on the mentioned tomcat application server. However
I'm trying to deploy a war to a Apache Tomcat server (Build 6.0.24) using
I'm trying to deploy a war file onto my server which is tomcat 6
I have a web application (WAR) that I want to deploy in Tomcat 5.
I am trying to deploy a war file to tomcat 6.0.27. This war file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.