[opencms-dev] Date: Thu, 13 Mar 2003 10:31:18 +0100 [Deutsche Boerse Systems: Virus checked]

Peter.Trumpp at entory.com Peter.Trumpp at entory.com
Thu Mar 13 13:06:38 CET 2003


Hi Parul,

I had the same problem and think that setting CATALINA_OPTS does not work,
because this environment variable is only used, if tomcat is started via
D:\Program Files\Apache Group\Tomcat 4.1\bin\startup.bat and  D:\Program
Files\Apache Group\Tomcat 4.1\bin\catalina.bat respectivly.

But a standard installation of Tomcat 4.1 will provide a "Start Tomcat" entry in
the "Start -> Programs -> Apache Tomcat 4.1" Menu, which points to something
like (depending on the directory of your JKD and Tomcat installation ...)

D:\j2sdk1.4.1_02\bin\java.exe  -jar -Duser.dir="d:\Program Files\Apache
Group\Tomcat 4.1" "d:\Program Files\Apache Group\Tomcat   4.1\bin\bootstrap.jar"
start

Changing this to something like

D:\j2sdk1.4.1_02\bin\java.exe -Dfile.encoding=ISO-8859-1 -jar
-Duser.dir="d:\Program Files\Apache Group\Tomcat 4.1" "d:\Program
Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" start

solved the problem for me.

Regards,
Peter



|-------+-------------------------->
|       |                          |
|       | "Parul Rajdev"           |
|       | <Parul_Rajdev at infosys.com|
|       | >                        |
|       |                          |
|       | 13.03.2003 12:53         |
|       | Please respond to        |
|       | opencms-dev              |
|       |                          |
|-------+-------------------------->
  >------------------------------------------------------------------>
  |                                                                  |
  |     To:  opencms-dev at www.opencms.org                             |
  |     cc:  (bcc: Peter Trumpp/ENTORY/GDB)^                         |
  |     Subject:  RE: [opencms-dev] Date: Thu, 13 Mar 2003 10:31:18  |
  | +0100 [Deutsche Boerse Systems: Virus checked]                   |
  >------------------------------------------------------------------>
  >--------------------|
  |                    |
  >--------------------|





Hi Andras,
I changed the encoding in the opencms.properties and in the CATALINA_OPTS
variable but it is still giving the following error.
do I need to make any other change somewhere?



type Exception report

message

description The server encountered an internal error () that prevented it from
fulfilling this request.

exception

javax.servlet.ServletException: OpenCms initialization error!



Trouble creating the com.opencms.core.CmsObject. Please check the root cause for
more information.





     at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:231)

     at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)

     at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666)

     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)

     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)


     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)

     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)

     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)


     at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)

     at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)


     at java.lang.Thread.run(Thread.java:484)



root cause

java.lang.Exception: OpenCms startup failure: System file.encoding 'Cp1252' not
equal to OpenCms encoding 'ISO-8859-1'

     at com.opencms.core.OpenCms.(OpenCms.java:212)

     at com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:225)

     at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)

     at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666)

     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)

     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)


     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)

     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)


     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)


     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)

     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)


     at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)

     at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)


     at java.lang.Thread.run(Thread.java:484)



  _____


Apache Tomcat/4.1.17



***********************************
Regards,
Parul Rajdev

-----Original Message-----
From: Andras Balogh [  <mailto:java at reea.net> mailto:java at reea.net]
Sent: Thursday, March 13, 2003 4:09 PM
To: opencms-dev at www.opencms.org
Subject: Re: [opencms-dev] Date: Thu, 13 Mar 2003 10:31:18 +0100



----- Original Message -----
From: "Parul Rajdev" <Parul_Rajdev at infosys.com>
To: <opencms-dev at www.opencms.org>
Sent: Thursday, March 13, 2003 12:23
Subject: RE: [opencms-dev] Date: Thu, 13 Mar 2003 10:31:18 +0100


> Hi,
> I also have a problem similar to Gezahegn
>
> I'm using Windows 2000, Tomcat 4.1.18, mySQL 3.23.55 , IE6 and JDK1.3. I
made the configuration for the Tomcat - I setted the environment variables
JAVA_HOME, CATALINA_HOME and also CATALINA_OPTS. My Tomcat is working
properly. I unzipped OpenCms_5.0_rc_2.zip and copied the opencms.war file
into CATALINA_HOME/webapps directory. Then I started Tomcat as Standalone. I
located the browser to  <http://localhost:8080/opencms/ocsetup>
http://localhost:8080/opencms/ocsetup and followed
instruction to install.
> The workplace is imported and the setup is complete.
> On accessing the link  <http://localhost:8080/opencms/opencms/index.jsp>
http://localhost:8080/opencms/opencms/index.jsp I am
getting the following exception report.Is there something else I've
forgotten to do. Here is the list of exceptions, which I am pasting here.
> { it says check if the database is up n running. ????}
>
> Regards,
>
> Parul Rajdev

Hi,

The error says exactly what is wrong: "Invalid encoding name "Cp1252".. "

Try to add -Dfile.encoding=ISO-8859-1 to CATALINA_OPTS  and see what
happens.


BW,

Andras.







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030313/bd84444c/attachment.htm>


More information about the opencms-dev mailing list