title: JSF 2.0: wrong language selected after deploying to another server
body: <p>I made a web-application with JSF 2.0. It supports german (default) and english, which is selected by the languages, sent in the http-header.</p>
  
  <p>On my local server (Tomcat 6.0) the automatic language-selection was correct, if I had "german" on  the highest priority, the application was german. The same for english.</p>
  
  <p>But now I deployed it to my webserver (Tomcat 6.0 behind an Apache Webserver, using ModJk) and now it is only in english. But the http header is still the same:</p>
  
  <pre><code>Accept-Language:      de-de,en-us;q=0.8,de;q=0.5,en;q=0.3
  (Fetched from Firebug)
  </code></pre>
  
  <p>The entry for the language-packs in my faces-config.xml looks like this:</p>
  
  <pre><code>&lt;application&gt;
      &lt;locale-config&gt;
          &lt;default-locale&gt;de&lt;/default-locale&gt;
          &lt;supported-locale&gt;en&lt;/supported-locale&gt;
      &lt;/locale-config&gt;
      &lt;resource-bundle&gt;
          &lt;base-name&gt;de.citkomm.tbm.locale.Lang&lt;/base-name&gt;
          &lt;var&gt;lang&lt;/var&gt;
      &lt;/resource-bundle&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>Files "Lang.properties" and "Lang_en.properties" in de.citkomm.tbm.locale are correctly deployed.</p>
  
  <p>Is this a problem with Apache + ModJk + Tomcat 6.0 or is something misconfigured? Does anyone have an idea why the wrong language is selected by Tomcat?</p>
  
  <p>Thanks in advance!</p>