<br><font size=2 face="sans-serif">Mariano,</font>
<br><font size=2 face="sans-serif">Other than its use of the following:</font>
<br>
<br><font size=3 face="Courier New">org.apache.xerces.dom.CoreDocumentImpl.getEncoding()</font>
<br>
<br><font size=2 face="sans-serif">I don't know of any. It would be nice if the baseline was changed to support xerces 2.x.</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br>
<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/11/2004 01:13 PM</font>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif">02/11/2004 01:13 PM</font>
<br>
<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>You are right, however you still have Xerces v1.4.4 which is fine, but<br>
as long you *don't* use Lucene.<br>
</tt></font>
<br><font size=2><tt>Anyway, it's good to know Tomcat 4.1.29 comes with Xerces 2.x, and how<br>
to avoid that in a simple manner.<br>
</tt></font>
<br><font size=2><tt>BTW, I checked out the CVS and saw that Opencms 5.3.1 still uses Xerces<br>
v1.4.4. Any particular reason for not updating?<br>
</tt></font>
<br><font size=2><tt>--mariano<br>
</tt></font>
<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: Martes, 10 de Febrero de 2004 07:04 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><font size=2><tt>Hi Mariano,<br>
Sorry I didn't get back to you sooner, thanks for the help. As mentioned<br>
in a further stream, getting opencms 5.0.1 to work with Tomcat 5.0.1x<br>
requires the following (shortest path):<br>
</tt></font>
<br><font size=2><tt>- remove the endorsed xerces jar file (2.x) in Tomcat<br>
($CATALINA_HOME/common/endorsed)<br>
- replacing above with xerces-1_4_4.jar file (from<br>
$CATALINA_HOME/webapps/opencms/WEB-INF/lib)<br>
- restart Tomcat<br>
</tt></font>
<br><font size=2><tt>Thanks,<br>
Reed<br>
</tt></font>
<br>
<br><font size=2><tt>Message from "Mariano Barcia"<br>
<mariano.barcia@colaborativa.net>@opencms.org received on 02/09/2004<br>
01:50 PM<br>
</tt></font>
<br><font size=2><tt>02/09/2004 01:50 PM<br>
Internal<br>
</tt></font>
<br>
<br><font size=2><tt>"Mariano Barcia" <mariano.barcia@colaborativa.net>@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:        RE: [opencms-dev] Tomcat 5.0.16 usage</tt></font>
<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:<br>
xercesImpl.jar -Xerces v2.5 consists of 3 JAR files: xercesImpl.jar<br>
xml-apis.jar xmlParserAPIs.jar -Tomcat/Catalina must be 4.1, and J2SDK<br>
must be 1.4.0 or 1.4.1. Have not tried with the new 1.4.2. Check if<br>
J2SDK is already bundled with Xerces 2.x -Have not yet tried with Xerces<br>
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 at<br>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica<br>
tionFilterChain.java:269)<br>
at<br>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt<br>
erChain.java:193)<br>
at<br>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv<br>
e.java:256)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv<br>
e.java:191)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241<br>
7)<br>
at<br>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java<br>
:180)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa<br>
lve.java:171)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)<br>
at<br>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java<br>
:172)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.<br>
java:174)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)<br>
at<br>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78<br>
1)<br>
at<br>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC<br>
onnection(Http11Protocol.java:549)<br>
at<br>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58<br>
9)<br>
at<br>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool<br>
.java:666)<br>
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;<br>
at<br>
com.opencms.template.CmsXmlXercesParser.getOriginalEncoding(CmsXmlXerces<br>
Parser.java:193)<br>
at<br>
com.opencms.template.CmsXmlXercesParser.getXmlText(CmsXmlXercesParser.ja<br>
va:131)<br>
at<br>
com.opencms.template.A_CmsXmlContent.getXmlText(A_CmsXmlContent.java:684<br>
)<br>
at<br>
com.opencms.template.A_CmsXmlContent.getXmlText(A_CmsXmlContent.java:673<br>
)<br>
at<br>
com.opencms.file.CmsResourceTypePage.copyResource(CmsResourceTypePage.ja<br>
va:391)<br>
at<br>
com.opencms.file.CmsObject.copyResource(CmsObject.java:684)<br>
at<br>
com.opencms.workplace.CmsXmlTemplateEditor.createTemporaryFile(CmsXmlTem<br>
plateEditor.java:100)<br>
at<br>
com.opencms.workplace.CmsXmlTemplateEditor.getContent(CmsXmlTemplateEdit<br>
or.java:444)<br>
at<br>
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:1<br>
71)<br>
at<br>
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)<br>
at<br>
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementC<br>
ache.java:149)<br>
at<br>
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:2<br>
85)<br>
at<br>
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)<br>
at<br>
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)<br>
at<br>
com.opencms.core.OpenCms.showResource(OpenCms.java:961)<br>
at<br>
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)<br>
at<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)<br>
at<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<br>
at<br>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica<br>
tionFilterChain.java:247)<br>
at<br>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt<br>
erChain.java:193)<br>
at<br>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv<br>
e.java:256)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv<br>
e.java:191)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241<br>
7)<br>
at<br>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java<br>
:180)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa<br>
lve.java:171)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)<br>
at<br>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java<br>
:172)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:641)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.<br>
java:174)<br>
at<br>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i<br>
nvokeNext(StandardPipeline.java:643)<br>
at<br>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4<br>
80)<br>
at<br>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<br>
at<br>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)<br>
at<br>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78<br>
1)<br>
at<br>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC<br>
onnection(Http11Protocol.java:549)<br>
at<br>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58<br>
9)<br>
at<br>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool<br>
.java:666)<br>
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<br>
</tt></font>
<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=2><tt>Attention: Attachment  "CmsXmlXercesParser.class" has been removed from<br>
this note on February 10 2004 by Reed McCauley/USTRA/NONABB<br>
</tt></font>
<br>
<br><font size=2><tt>(See attached file: C.htm)<br>
</tt></font>
<br><font size=2><tt>_______________________________________________<br>
This mail is send to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit</tt></font>
<br><font size=2><tt>http://mail.opencms.org/mailman/listinfo/opencms-dev</tt></font>
<br>
<br>