[opencms-dev] Exeption at html page generate (V 5.01)

Claus Priisholm cpr at codedroids.com
Wed Sep 29 09:16:43 CEST 2004


Most likely this is in infamous xerces problem. Search the mail archive  
for more information, there is plenty of messages regading this error.

There is a patched opencms.jar  that'll work with the new Xerces  
included in current Tomcats - you can download it from  
http://www.codedroids.com/community/opencms - just replace the one you  
have in $CATALINA_HOME/webapps/opencms/WEB-INF/lib with this one and  
restart.

On 29/9-2004, at 8.47, Stefan Sabolowitsch wrote:

> Hi all,
>
> If I want to create a new for html page, i get following error message.
>
> My System:
>
> OS=Win2K
> Java=JDK 1.4.X
> Tomcat=4.0.X (latest)
> OpenCMS=5.01
>
> #-#-#-#-#-#-#-#-#-#
>
> javax.servlet.ServletException: Servlet execution threw an exception
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic 
> ation
> FilterChain.java:269)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil 
> terCh
> ain.java:193)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal 
> ve.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(StandardContextVal 
> ve.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: 
> 2422)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav 
> a:180
> )
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV 
> alve.
> java:171)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav 
> a:163
> )
> 	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:199)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
> 828)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process 
> Conne
> ction(Http11Protocol.java:700)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
> 584)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo 
> l.jav
> a:683)
> 	at java.lang.Thread.run(Thread.java:534)
> root cause
> java.lang.NoSuchMethodError:
> org.apache.xerces.dom.CoreDocumentImpl.getEncoding()Ljava/lang/String;
> 	at
> com.opencms.template.CmsXmlXercesParser.getOriginalEncoding(CmsXmlXerce 
> sPars
> er.java:193)
> 	at
> com.opencms.template.CmsXmlXercesParser.getXmlText(CmsXmlXercesParser.j 
> ava:1
> 31)
> 	at
> com.opencms.workplace.CmsNewResourcePage.createPagefile(CmsNewResourceP 
> age.j
> ava:118)
> 	at
> com.opencms.workplace.CmsNewResourcePage.getContent(CmsNewResourcePage. 
> java:
> 194)
> 	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(CmsElement 
> Cache
> .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:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic 
> ation
> FilterChain.java:247)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil 
> terCh
> ain.java:193)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal 
> ve.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(StandardContextVal 
> ve.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: 
> 2422)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav 
> a:180
> )
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV 
> alve.
> java:171)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav 
> a:163
> )
> 	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:199)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
> 828)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process 
> Conne
> ction(Http11Protocol.java:700)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
> 584)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo 
> l.jav
> a:683)
> 	at java.lang.Thread.run(Thread.java:534)
>
> Does anyone have an idea?
>
> Another second issue.
>
> What must I do so that I can edit the CMSDemo?
> I would like individual elements (html pages etc.) edit, however the  
> Menu
> items are gray (Offline).
>
> To thanks for every aid / tip
>
> Stefan
>
>
>
> _______________________________________________
> 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
>
>
OpenCms links & API's: http://www.codedroids.com/community/opencms
--
Claus Priisholm
+45 48 22 46 46
cpr <you know what> codedroids.com
http://www.codedroids.com




More information about the opencms-dev mailing list