This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

If you are having problems with Tomcat 5.x and JSPWiki with UTF-8, please note the following!

You have to edit server.xml of Tomcat (is in the conf-directory of Tomcat). Please add to

<Connector port="8080"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000" 
               disableUploadTimeout="true"/>

the term 'URIEncoding="UTF-8"'.

It should look like that:

<Connector port="8080"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000" 
               disableUploadTimeout="true" 
               URIEncoding="UTF-8"/>

Remember that if you use mod_jk, you should define the URIEncoding for the AJK Connector, too.


WARNING: Our Wikis running on 2.2.33 with jspwiki.properties set to UTF-8 did not display pages anymore that contained Umlaute after setting this. I had to disable the URIEncoding again.

--Christoph Sauer 2-Sep.2006


This is my successful configuration. (Suse10.1 / Tomcat5.0 / JSPWiki v2.4.87)

/etc/tomcat5/base/server.xml (based on "server-minimal.xml" by SuSE)

<Server port=8005 shutdown="SHUTDOWN">
.........
  <service name="Catalina">
    <connector port="8080" />
   
    <connector protocol="AJP/1.3" uriencoding="UTF-8" port="8009" />

    <engine name="Catalina" defaulthost="localhost">
      <logger classname="org.apache.catalina.logger.FileLogger" />
      <realm resourcename="UserDatabase" 
       classname="org.apache.catalina.realm.UserDatabaseRealm" />
      <host appbase="webapps" / name="localhost">
    </engine>
  </service>
</server>
--Kei Watanabe 10-jan.2007

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 24-Oct-2007 17:57 by 82.181.5.170.