Re: [opencms-dev] New page cannot be created
lists at rueth.info
lists at rueth.info
Tue Jan 11 08:00:01 CET 2005
Hi Asawari,
I had the same error message a year ago or so, so I cannot remember any
details. But it seems to have to do with the Xerces version you are
using. Locate the current xerces version of your Tomcat installation (I
think it is in libs or libs/endorsed) and replace it with a newer
Xerces version.
By the way: Why are you still using frame-, content- and mastertemplate
when creating a new page? As far as I am informed, this functionality
won't be supported starting with OpenCms version 6. I therefore
_strongly_ recommend to switch to the jsp template mechanism, which was
firstly described in the OpenCms 5 documentation modules (can be
downloaded from the OpenCms homepage).
Regards
Ulrich
asawari pujari <asawari_bhalchandra at yahoo.com> schrieb am 11.01.2005,
07:27:01:
>
> Hello All,
>
> I have created a mastertemplate, a frametemplate and a contenttempate..all this as shown in the documentation ...with the same > piece of code. I am using version 5.0
>
> At the last step it says that a page has to be created in the root folder.I Enter the required information in new file dialog box.The master template that i craeted is also there in the template list.
>
> But when i say finish it, gives the following Exception and fails to create a new page.
>
> "
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it from fulfilling this request.
>
> exception
> javax.servlet.ServletException: Servlet execution threw an exception
>
>
>
> root cause
> java.lang.NoSuchMethodError: org.apache.xerces.dom.CoreDocumentImpl.getEncoding()Ljava/lang/String; > com.opencms.template.CmsXmlXercesParser.getOriginalEncoding(CmsXmlXercesParser.java:193) com.opencms.template.CmsXmlXercesParser.getXmlText(CmsXmlXercesParser.java:131) com.opencms.workplace.CmsNewResourcePage.createPagefile(CmsNewResourcePage.java:118) com.opencms.workplace.CmsNewResourcePage.getContent(CmsNewResourcePage.java:194) com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171) com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185) com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149) com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285) com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341) com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274) com.opencms.core.OpenCms.showResource(OpenCms.java:961)
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
>
> note The full stack trace of the root cause is available in the Tomcat logs.
>
>
> "
>
> Can some one please tell me why this happens and what can i do to successfully create a page
>
> Regards,
> Asawari Pujari
>
More information about the opencms-dev
mailing list