<br><font size=2 face="sans-serif">Hi Mariano,</font>
<br><font size=2 face="sans-serif">Sorry I didn't get back to you sooner, thanks for the help. As mentioned in a further stream, getting opencms 5.0.1 to work with Tomcat 5.0.1x requires the following (shortest path):</font>
<br>
<br><font size=2 face="sans-serif">- remove the endorsed xerces jar file (2.x) in Tomcat ($CATALINA_HOME/common/endorsed)</font>
<br><font size=2 face="sans-serif">- replacing above with xerces-1_4_4.jar file (from $CATALINA_HOME/webapps/opencms/WEB-INF/lib)</font>
<br><font size=2 face="sans-serif">- restart Tomcat</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Reed</font>
<br>
<br>
<br><font size=1 color=white face="Arial">Message from "Mariano Barcia" <mariano.barcia@colaborativa.net>@opencms.org received on 02/09/2004 01:50 PM</font>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif">02/09/2004 01:50 PM</font>
<br><font size=1 face="sans-serif">Internal</font>
<br>
<td>
<td><font size=1 face="sans-serif"><b>"Mariano Barcia" <mariano.barcia@colaborativa.net>@opencms.org</b></font>
<br>
<br><font size=1 color=red face="sans-serif">Please respond to opencms-dev@opencms.org</font>
<br><font size=1 color=red face="sans-serif">Sent by opencms-dev-admin@opencms.org</font></table>
<br>
<table width=100%>
<tr valign=top>
<td>
<div align=center>
<br></div>
<td><font size=1 face="sans-serif"> To: <opencms-dev@opencms.org></font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: RE: [opencms-dev] Tomcat 5.0.16 usage</font></table>
<br>
<br>
<br><font size=2><tt>Reed,<br>
</tt></font>
<br><font size=2><tt>I am sure that Xerces being used in your environment is still v2.5,<br>
probably because of the J2SDK 1.4.2 (I strongly recommend you using<br>
J2SDK 1.4.1). I attach you here a tiny patch for your exception, HTH<br>
</tt></font>
<br><font size=2><tt>Brief instructions:<br>
Once opencms.war is deployed, stop the context, and replace the Xerces<br>
library under WEB-INF/lib, then overwrite the .class file in<br>
WEB-INF/classes/com/opencms/template (CmsXmlXercesParser.class) with<br>
this one attached, and restart the context.<br>
</tt></font>
<br><font size=2><tt>Notes:<br>
-Xerces v1.4.4 (bundled in opencms v5) consists of 1 JAR file:</tt></font>
<br><font size=2><tt>xercesImpl.jar<br>
-Xerces v2.5 consists of 3 JAR files:</tt></font>
<br><font size=2><tt>xercesImpl.jar<br>
xml-apis.jar<br>
xmlParserAPIs.jar</tt></font>
<br><font size=2><tt>-Tomcat/Catalina must be 4.1, and J2SDK must be 1.4.0 or 1.4.1. Have not<br>
tried with the new 1.4.2. Check if J2SDK is already bundled with Xerces<br>
2.x<br>
-Have not yet tried with Xerces v2.6<br>
</tt></font>
<br><font size=2><tt>--mariano<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>-----Mensaje original-----<br>
De: opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org]<br>
En nombre de reed.mccauley@us.abb.com<br>
Enviado el: Lunes, 09 de Febrero de 2004 04:22 p.m.<br>
Para: opencms-dev@opencms.org<br>
CC: opencms-dev@opencms.org; opencms-dev-admin@opencms.org<br>
Asunto: Re: [opencms-dev] Tomcat 5.0.16 usage<br>
</tt></font>
<br>
<br>
<br>
<br>
<br>
<br>
<br><font size=2><tt>Hi,<br>
Well, as recommended, I installed an older version of Tomcat (4.1.29).<br>
Unfortunately, it yields similar errors (see below). I'm just trying<br>
going through the "test demo" portion of the opencms user's manual. Is<br>
this not how folks get up to speed on this product? It's not a classpath<br>
issue as I've set it to "." before starting Tomcat; it is using the<br>
xerces code that comes bundled with it. As mentioned farther down, this<br>
is a standared W2K installation with JDK 1.4.2-02. Thanks for any help,<br>
Reed type Exception report message description The server encountered an<br>
internal error () that prevented it from fulfilling this request.<br>
exception<br>
javax.servlet.ServletException: Servlet execution threw an exception</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica<br>
tionFilterChain.java:269)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt<br>
erChain.java:193)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv<br>
e.java:256)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv<br>
e.java:191)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241<br>
7)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java<br>
:180)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa<br>
lve.java:171)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java<br>
:172)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.<br>
java:174)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)</tt></font>
<br><font size=2><tt>at<br>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78<br>
1)</tt></font>
<br><font size=2><tt>at<br>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC<br>
onnection(Http11Protocol.java:549)</tt></font>
<br><font size=2><tt>at<br>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58<br>
9)</tt></font>
<br><font size=2><tt>at<br>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool<br>
.java:666)</tt></font>
<br><font size=2><tt>at java.lang.Thread.run(Thread.java:534)<br>
</tt></font>
<br><font size=2><tt>root cause<br>
java.lang.NoSuchMethodError:<br>
org.apache.xerces.dom.CoreDocumentImpl.getEncoding()Ljava/lang/String;</tt></font>
<br><font size=2><tt>at<br>
com.opencms.template.CmsXmlXercesParser.getOriginalEncoding(CmsXmlXerces<br>
Parser.java:193)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.template.CmsXmlXercesParser.getXmlText(CmsXmlXercesParser.ja<br>
va:131)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.template.A_CmsXmlContent.getXmlText(A_CmsXmlContent.java:684<br>
)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.template.A_CmsXmlContent.getXmlText(A_CmsXmlContent.java:673<br>
)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.file.CmsResourceTypePage.copyResource(CmsResourceTypePage.ja<br>
va:391)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.file.CmsObject.copyResource(CmsObject.java:684)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.workplace.CmsXmlTemplateEditor.createTemporaryFile(CmsXmlTem<br>
plateEditor.java:100)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.workplace.CmsXmlTemplateEditor.getContent(CmsXmlTemplateEdit<br>
or.java:444)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1<br>
71)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC<br>
ache.java:149)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2<br>
85)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.core.OpenCms.showResource(OpenCms.java:961)</tt></font>
<br><font size=2><tt>at<br>
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)</tt></font>
<br><font size=2><tt>at<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)</tt></font>
<br><font size=2><tt>at<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica<br>
tionFilterChain.java:247)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt<br>
erChain.java:193)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv<br>
e.java:256)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv<br>
e.java:191)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241<br>
7)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java<br>
:180)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa<br>
lve.java:171)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java<br>
:172)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.<br>
java:174)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)</tt></font>
<br><font size=2><tt>at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)</tt></font>
<br><font size=2><tt>at<br>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)</tt></font>
<br><font size=2><tt>at<br>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78<br>
1)</tt></font>
<br><font size=2><tt>at<br>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC<br>
onnection(Http11Protocol.java:549)</tt></font>
<br><font size=2><tt>at<br>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58<br>
9)</tt></font>
<br><font size=2><tt>at<br>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool<br>
.java:666)</tt></font>
<br><font size=2><tt>at java.lang.Thread.run(Thread.java:534)<br>
</tt></font>
<br>
<br><font size=2><tt>Apache Tomcat/4.1.29<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>Message from Reed McCauley/USTRA/NONABB@ABB_US01@opencms.org received on<br>
02/06/2004 02:16 PM<br>
</tt></font>
<br><font size=2><tt>02/06/2004 02:16 PM<br>
Internal<br>
</tt></font>
<br>
<br><font size=2><tt>Reed McCauley/USTRA/NONABB@ABB_US01@opencms.org<br>
</tt></font>
<br><font size=2><tt>Please respond to opencms-dev@opencms.org<br>
Sent by opencms-dev-admin@opencms.org<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>To: opencms-dev@opencms.org<br>
cc:<br>
Subject: [opencms-dev] Tomcat 5.0.16 usage</tt></font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><font size=2><tt>Hi,<br>
I've installed the opencms (Tomcat (5.0.16), MySQL (4.0.17) and opencms<br>
(5.0.1)) environment on W2K. I'm trying out "the demo" listed in Ch 5.2<br>
section 1 of the opencms manual. The step to "Edit pages" fails. On<br>
different installation/test run phases I get different results. Here's<br>
the most common: type Exception report message description The server<br>
encountered an internal error () that prevented it from fulfilling this<br>
request. exception<br>
javax.servlet.ServletException: Servlet execution threw an exception<br>
</tt></font>
<br><font size=2><tt>root cause<br>
java.lang.NoSuchMethodError:<br>
org.apache.xerces.dom.CoreDocumentImpl.getEncoding()Ljava/lang/String;<br>
</tt></font>
<br><font size=2><tt>com.opencms.template.CmsXmlXercesParser.getOriginalEncoding(CmsXmlXerces<br>
Parser.java:193)<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>com.opencms.template.CmsXmlXercesParser.getXmlText(CmsXmlXercesParser.ja<br>
va:131)<br>
</tt></font>
<br>
<br><font size=2><tt>com.opencms.template.A_CmsXmlContent.getXmlText(A_CmsXmlContent.java:684<br>
)<br>
</tt></font>
<br>
<br><font size=2><tt>com.opencms.template.A_CmsXmlContent.getXmlText(A_CmsXmlContent.java:673<br>
)<br>
</tt></font>
<br>
<br><font size=2><tt>com.opencms.file.CmsResourceTypePage.copyResource(CmsResourceTypePage.ja<br>
va:391)<br>
</tt></font>
<br>
<br><font size=2><tt>com.opencms.file.CmsObject.copyResource(CmsObject.java:684)<br>
</tt></font>
<br><font size=2><tt>com.opencms.workplace.CmsXmlTemplateEditor.createTemporaryFile(CmsXmlTem<br>
plateEditor.java:100)<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>com.opencms.workplace.CmsXmlTemplateEditor.getContent(CmsXmlTemplateEdit<br>
or.java:444)<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1<br>
71)<br>
</tt></font>
<br>
<br><font size=2><tt>com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)<br>
</tt></font>
<br><font size=2><tt>com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC<br>
ache.java:149)<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2<br>
85)<br>
</tt></font>
<br>
<br><font size=2><tt>com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)<br>
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)<br>
com.opencms.core.OpenCms.showResource(OpenCms.java:961)<br>
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<br>
</tt></font>
<br>
<br><font size=2><tt>Note that I'm using Tomcat 5.0.16. I get a compability warning during<br>
installation saying that opencms has not been tested against it. Is this<br>
the problem?<br>
</tt></font>
<br><font size=2><tt>Thanks for any help on this,<br>
</tt></font>
<br><font size=2><tt>Reed<br>
</tt></font>
<br><font size=2><tt>(See attached file: C.htm)<br>
</tt></font>
<br><font size=2><tt>Attention: Attachment "C.htm" has been removed from this note on<br>
February 09 2004 by Reed McCauley/USTRA/NONABB<br>
</tt></font>
<br>
<br><font size=2><tt>(See attached file: C.htm)<br>
</tt></font>
<br>
<br><font size=1 color=red face="sans-serif">Attention: Attachment "CmsXmlXercesParser.class" has been removed from this note on February 10 2004 by Reed McCauley/USTRA/NONABB</font>
<br>
<br>