[opencms-dev] Using templates problem.

Bott, Lukasz Lukasz.bott at datacom.pl
Thu Feb 12 12:47:00 CET 2004


Hello,

I'm trying to write a simple html page using not-very-complicated template.
To be honest, I'm following step-by-step examples in "Howto-template"
documentation. After editing the new page in WYSIWYG editor, when I'm
closing and saving the page I get such an error:

com.opencms.core.CmsException: 20 Wrong XML content type. Detailed error:
XML document /lukas_demo/test3html.html is not of the expected type. This
document is "page", but it should be "XMLTEMPLATE" (OpenCms XML template
file).. 
	at
com.opencms.template.A_CmsXmlContent.throwException(A_CmsXmlContent.java:194
3)
	.... [the whole exception stack below the message] ....

Can anyone tell me what's going on ? This error also appears while using
Alkacon templates.

Best regards,
	Lukas

-------------------
Ɓukasz Bott
Datacom Software
tel. 0 601 912 017
-------------------

com.opencms.core.CmsException: 20 Wrong XML content type. Detailed error:
XML document /lukas_demo/test3html.html is not of the expected type. This
document is "page", but it should be "XMLTEMPLATE" (OpenCms XML template
file).. 
	at
com.opencms.template.A_CmsXmlContent.throwException(A_CmsXmlContent.java:194
3)
	at
com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1165)
	at
com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1029)
	at
com.opencms.template.CmsXmlTemplateFile.<init>(CmsXmlTemplateFile.java:107)
	at
com.opencms.template.CmsXmlTemplate.getOwnTemplateFile(CmsXmlTemplate.java:3
99)
	at
com.opencms.workplace.CmsXmlTemplateEditor.getContent(CmsXmlTemplateEditor.j
ava:460)
	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
com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:331)
	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(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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:2417)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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:193)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
	at java.lang.Thread.run(Thread.java:536)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040212/8cf03437/attachment.htm>


More information about the opencms-dev mailing list