[opencms-dev] Xerces 2.0 problem when installing

elvin chan elvinchan at hotmail.com
Thu Mar 17 07:12:30 CET 2005


Hi everyone,

Mind to help me out here, I go this problem when saving a file after 
editing. These error is shown once i click the save button.

Earlier when installing i got error saying my xerces in Tomcat was ver 1.0 
and cms require ver 2.0.

So i d/l ver 2.6 from apache, but they dont come with xerces.jar, so i 
rebuild the file following instruction given eg. build.bat depreciatejars. 
This gives me a supposely ver2 xerces.jar. But i still get the error saying 
my xerces is ver1 when installing after i put in the new xerces.jar which i 
build.

My pc spec: Tomcat 4.1.24, MySQL4.1, IE5.5, Win2K, OpenCMS6.0

Any suggestion?

Here is the error from Tomcat:


org.opencms.xml.CmsXmlException: XML validation error:

<errors>
  <error column="71" line="19">src-resolve: Cannot resolve the name 
'OpenCmsLocale' to a(n) type definition component.</error>
  <error column="71" line="19">src-resolve: Cannot resolve the name 
'OpenCmsLocale' to a(n) simpleType definition component.</error>
  <error column="89" line="17">src-resolve: Cannot resolve the name 
'OpenCmsHtml' to a(n) type definition component.</error>
</errors>
<warnings/>

The verified XML content was:
-------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
  <page language="de">
    <element name="text1">
      <links/>
      <content><![CDATA[]]></content>
    </element>
    <element name="text2">
      <links/>
      <content><![CDATA[]]></content>
    </element>
    <element name="text3">
      <links/>
      <content><![CDATA[]]></content>
    </element>
    <element name="text4">
      <links/>
      <content><![CDATA[]]></content>
    </element>
  </page>
  <page language="en">
    <element name="text1">
      <links/>
      <content><![CDATA[<p>HELLO THERE </p>
<p>  </p>]]></content>
    </element>
    <element name="text2" enabled="false">
      <links/>
      <content><![CDATA[]]></content>
    </element>
    <element name="text3">
      <links/>
      <content><![CDATA[<H1>Lorem ipsum row 2 column 1</H1>
<P>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse 
molestie
consequat, vel illum dolore eu feugiat nulla facilisis at vero et accumsan 
et
iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore 
magna
aliquam erat volutpat.</P>]]></content>
    </element>
    <element name="text4">
      <links/>
      <content><![CDATA[<H1>Lorem ipsum row 2 column 2</H1>
<P>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper 
suscipit
lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure
dolor in hendrerit in vulputate velit esse molestie consequat, vel illum 
dolore
eu feugiat nulla facilisis at vero et accumsan et iusto odio
dignissim.</P>]]></content>

    </element>
  </page>
</pages>

-------------------------------------------------------------------

[Code 400 - Error in xml processing]
	at org.opencms.xml.CmsXmlUtils.validateXmlStructure(CmsXmlUtils.java:552)
	at 
org.opencms.xml.A_CmsXmlDocument.validateXmlStructure(A_CmsXmlDocument.java:441)
	at 
org.opencms.file.types.CmsResourceTypeXmlPage.writeFile(CmsResourceTypeXmlPage.java:192)
	at org.opencms.file.CmsObject.writeFile(CmsObject.java:3036)
	at 
org.opencms.workplace.editors.CmsDefaultPageEditor.performSaveContent(CmsDefaultPageEditor.java:550)
	at 
org.opencms.workplace.editors.CmsDefaultPageEditor.actionSave(CmsDefaultPageEditor.java:257)
	at org.apache.jsp.editor_jsp._jspService(editor_jsp.java:93)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
	at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
	at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
	at 
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:357)
	at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:410)
	at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)
	at 
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:210)
	at 
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:245)
	at 
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:190)
	at org.apache.jsp.editor_main_jsp._jspService(editor_main_jsp.java:49)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
	at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
	at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
	at 
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:357)
	at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:410)
	at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:293)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:442)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:387)
	at 
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:648)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1346)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:103)
	at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:114)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	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:171)
	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:594)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the opencms-dev mailing list