[opencms-dev] Weird XML Error while attempting to view a HTML file inside OpenCMS

Joe Desbonnet jdesbonnet at gmail.com
Tue Aug 30 11:52:32 CEST 2005


Seems to me that there is a problem with your template. Something in your 
template is trying to parse 
/system/modules/scanline/templates/template.xml as an XML file and it must 
be corrupt (perhaps by being edited by hand). Make sure that file contains 
well formed XML. Click on "Edit Sourcecode" to view/edit the XML. 

Which version of OpenCms are you using? 

Joe.


On 8/30/05, Martin Edge <medge at dodo.com.au> wrote:
> 
> Hey Guys,
> 
> I go to view any HTML file in OpenCMS and I am currently getting the
> following error:
> 
> com.opencms.core.CmsException: 21 XML parsing error. Detailed error: 
> Cannot
> parse XML file "/system/modules/scanline/templates/template.xml".
> org.xml.sax.SAXParseException: The markup in the document preceding the 
> root
> element must be well-formed..
> at
> com.opencms.template.A_CmsXmlContent.throwException
> (A_CmsXmlContent.java:194
> 3)
> at com.opencms.template.A_CmsXmlContent.parse(A_CmsXmlContent.java:1363)
> at com.opencms.template.A_CmsXmlContent.parse(A_CmsXmlContent.java:1338)
> at com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1012)
> at
> com.opencms.template.CmsXmlTemplateFile.<init>(CmsXmlTemplateFile.java
> :107)
> at
> com.opencms.template.CmsXmlTemplate.getOwnTemplateFile(CmsXmlTemplate.java
> :3
> 99)
> at com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:160)
> at
> com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java
> :171)
> at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
> at
> com.opencms.template.cache.CmsElementCache.callCanonicalRoot
> (CmsElementCache
> .java:149)
> at
> com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java
> :285)
> at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
> at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
> at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
> at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (Application
> FilterChain.java:200)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterCh
> ain.java:146)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.ja
> va:209)
> at
> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:596)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.ja
> va:144)
> at
> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:596)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :133
> )
> at
> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:596)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke
> (ErrorDispatcherValve.
> java:118)
> at
> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:594)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :116
> )
> at
> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:594)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java
> :127)
> at
> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:596)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> :433)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at
> 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:705)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.jav
> a:683)
> at java.lang.Thread.run(Thread.java:534)
> 
> This system has had another administrator play with it, but I cannot see 
> any
> visible damage that would cause this error. I have had to reinstall Tomcat
> 4.1 again, but retained all data within the webapps folder.
> 
> The template it speaks of is fine. The data within it is: c:\program
> files\tomcat 4.1\webapps\opencms\export\system\modules\scanline\templates\
> 
> <?xml version="1.0" encoding="ISO-8859-1"?> <xmltemplate>
> <template>
> <element name="jsp"/>
> </template>
> <!-- Define the stylesheet for the WYSIWYG editor -->
> 
> <stylesheet>/system/modules/scanline/resources/style.css</stylesheet>
> <elementdef name="jsp">
> <class>com.opencms.flex.CmsJspTemplate</class>
> <template>../jsptemplates/template.jsp</template>
> </elementdef>
> </xmltemplate>
> 
> Any ideas?
> 
> Thanks
> Martin
> 
> 
> 
> 
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050830/418f2a31/attachment.htm>


More information about the opencms-dev mailing list