[opencms-dev] Problems with starting up the product

Ivan Jelenic ivan.jelenic at nbs.yu
Wed Nov 5 08:16:01 CET 2003


Hi Alex,

Try to start Tomcat like this:

C:\j2sdk1.4.0_02\bin\java.exe -jar -Dfile.encoding="UTF-8" -Duser.dir="C:\To
mcat 4.1" "C:\Tomcat 4.1\bin\bootstrap.jar" start

This is my shortcut on W2K and change my UTF-8 with ISO-8859-1. It will
solve your problems. Cp1252 is a default encoding of your JVM.

Hope it will help.
Best regars,
Ivan.


----- Original Message ----- 
From: "Alex Bunardzic" <alexmyrmex at yahoo.com>
To: <opencms-dev at opencms.org>
Sent: Tuesday, November 04, 2003 6:26 PM
Subject: Re: [opencms-dev] Problems with starting up the product


> Hi Claus,
>
> Thank you very much for your help. I did exactly as
> you told me. I added CATALINA_OPTS="$CATALINA_OPTS
> -Dfile.encoding=ISO-8859-1" line to the
> \jakarta-tomcat-4.1.18\bin\startup.bat file, to no
> avail. I still get the error:
>
> System file.encoding 'Cp1252' not equal to OpenCms
> encoding 'ISO-8859-1'
>
> At this point, I'm totally lost. I don't know how to
> convince the stupid machine to give up on the dull and
> unsexy 'Cp1252' encoding and embrace the oh-so-much
> better and much more kosher 'ISO-8859-1' encoding.
>
> Thanks again, and please help me some more, if
> possible!
>
> Alex
>
>
> --- Claus Priisholm <cpr at codedroids.com> wrote:
> > Ups, there was a typo, it should read:
> >
> > CATALINA_OPTS="$CATALINA_OPTS
> > -Dfile.encoding=ISO-8859-1"
> >
> >
> > On tirsdag, nov 4, 2003, at 10:25 Europe/Copenhagen,
> > Claus Priisholm
> > wrote:
> >
> > > You need to set the encoding for Tomcat so it
> > matches OpenCms'
> > > expectations (ISO-8859-1 as default) - I usually
> > hack the
> > > $CATALINA_HOME/bin/startup.sh script to set it (by
> > adding this line
> > > just before the script executes the command):
> > >
> > > CATALINA_OPTS="$CATALINA_OPTS"
> > -Dfile.encoding=ISO-8859-1"
> > >
> > > There are other, less intrusive ways to achieve
> > the same, see the
> > > documentation (installation) or search the
> > mail-archives for
> > > alternatives.
> > >
> > > On tirsdag, nov 4, 2003, at 01:34
> > Europe/Copenhagen, Alex Bunardzic
> > > wrote:
> > >
> > >> Hi all,
> > >>
> > >> I'm new to this product (and to this list). I'm
> > >> experiencing problems starting the product. When
> > I go
> > >> to:
> > >>
> > >> http://localhost:8080/opencms/opencms/index.jsp
> > >>
> > >> the system throws an exception:
> > >>
> > >> javax.servlet.ServletException: OpenCms
> > initialization
> > >> error!
> > >>
> > >> Could not connect to the database. Is the
> > database up
> > >> and running?
> > >>
> > >>
> > >> MySQL is up and running at that point. However,
> > when I
> > >> look into the Tomcat console, I see the following
> > >> error:
> > >>
> > >> [Fatal Error] :1:40: Invalidencoding name
> > "Cp1252".
> > >>
> > >> How can I fix this error?
> > >>
> > >> Thanks so much in advance!
> > >>
> > >> Alex
> > >>
> > >>
> > >> __________________________________
> > >> Do you Yahoo!?
> > >> The New Yahoo! Shopping - with improved product
> > search
> > >> http://shopping.yahoo.com
> > >> _______________________________________________
> > >> This mail is send to you from the opencms-dev
> > mailing list
> > >> To change your list options, or to unsubscribe
> > from the list, please
> > >> visit
> > >>
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >>
> > >>
> > > --
> > > Claus Priisholm
> > > +45 48 22 46 46
> > > cpr at interlet.dk - cpr at codedroids.com
> > > http://www.interlet.dk - http://www.codedroids.com
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev
> > mailing list
> > > To change your list options, or to unsubscribe
> > from the list, please
> > > visit
> > >
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >
> > >
> > --
> > Claus Priisholm
> > +45 48 22 46 46
> > cpr at interlet.dk - cpr at codedroids.com
> > http://www.interlet.dk - http://www.codedroids.com
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev
> > mailing list
> > To change your list options, or to unsubscribe from
> > the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list