[opencms-dev] Error on OpenCMS 5.0rc2 Setup - encoding JavaVM is different from OpenCMS
Steven J. Hawkins
shawkins at go-integral.com
Wed Feb 5 21:14:48 CET 2003
Peter and Dimitri,
I'm attempting to install RC2 as well and I'm getting the same error. The instructions I read said that encoding is now ISO-8859-1. I run Tomcat as a service and added the appropriate CATALINA_OPTS environment variable.
I noticed in the opencms.properties file that the file.encoding was still UTF-8 but the content_encoding.jsp displays the following:
Error: the encoding of your Java VM is different from the OpenCms encoding!
Java VM file encoding: Cp1252
OpenCms encoding: ISO-8859-1
To continue the setup process:
Change the encoding of your Java VM. To do that you must modify the file.encoding setting. Using Apache Tomcat, a different encoding can be set in the environment variable CATALINA_OPTS by the -D parameter e.g.:
CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
If you want to use an encoding different from ISO-8859-1, you must also adjust the defaultContentEncoding setting in WEB-INF/config/opencms.properties.
Unless you have specific encoding requirements, you should use the default ISO-8859-1 setting. Please refer to the Sun documentation for a list of supported encodings for your OS.
Has anyone had any luck with installing RC2? Any ideas where I might have mis-stepped?
Steve
-----Original Message-----
From: Dimitri Bougoulias [mailto:D.Bougoulias at ieee.org]
Sent: Wednesday, February 05, 2003 12:16 PM
To: opencms-dev at www.opencms.org
Subject: RE: [opencms-dev] Error on OpenCMS 5.0rc2 Setup - encoding
JavaVM is different from OpenCMS
Hi Peter,
You obviously running tomcat using the icons (shortcuts) that windows
tomcat setup, creates..
You have two options:
1) Either run tomcat using the startup.bat file (in ..\Tomcat 4.1\bin) - it
takes the environment variable into account...
Or...
2) Edit the shortcut "Start Tomcat" so that target is like:
C:\Java\j2sdk1.4.1\bin\java.exe -jar -Dfile.encoding=UTF-8
-Duser.dir="C:\Java\Tomcat 4.1" "C:\Java\Tomcat 4.1\bin\bootstrap.jar" start
(You just add the file encoding to the already existing target...)
Hope this solves your problem...
Dimitri
-----Original Message-----
From: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Peter Burri
Sent: Wednesday, February 05, 2003 7:37 PM
To: opencms-dev at www.opencms.org
Subject: [opencms-dev] Error on OpenCMS 5.0rc2 Setup - encoding JavaVM is
different from OpenCMS
Hello,
i tried to setup the new OpenCMS 5.0 RC2.
At a very first step, the setup wizard checks the encoding character sets.
Here the OpenCMS Setup fails with the message 'Error: the encoding of yout
JavaVM (cp1252) is different form the OpenCms encoding (ISO-8859-1)'.
How/Where can I set the correct JavaVM encoding?
My Configuration:
- Windows2000 (english version)
- Java SDK 1.4.1
- Tomcat 4.1.12
I've tried to set the encoding with the CATALINE_OPTS environment variable,
but result is the same. Thanks and Regards Peter Burri
More information about the opencms-dev
mailing list