[opencms-dev] OpenCMS 8 upgrade problem

gleb makarov gleb.a.makarov at gmail.com
Mon May 30 12:19:19 CEST 2011


Hello everyone,

Our problem was solved by updating the JDBC driver. Installation was
completed without any problems after that.

But now we have another problem: to display XML content, we use the code
listed below in the templates of our web pages.

After last upgrade, system started showing this error: The method
hasMoreContent() is undefined for the type I_CmsXmlContentContainer. So my
question is: whether this method is not supported since 8.0 version, and how
should we update our code to fix this issue without too much effort (we have
this code in the most part of our templates).

Any information would be appreciated. Thank you in advance.

Code example of displaying XML contents with Java:
    ...
    I_CmsXmlContentContainer contentContainer =
thisPage.contentload("singleFile", param, false);
    I_CmsXmlContentContainer elementContainer = null;
    while(contentContainer.hasMoreContent()){
        elementContainer = thisPage.contentloop(contentContainer, "Offer");
        while(elementContainer.hasMoreContent()){
            out.writeln(thisPage.contentshow(contentContainer, "Title"));
             ...
        }
    }
    ...

2011/5/27 gleb makarov <gleb.a.makarov at gmail.com>

> Hi Michael,
>
> Thank you for the fast reply.
>
> First version of the CMS was 7.0.2. All folders have been cleared, admin
> user has default settings. We`ve tried the installation again from 7.5.4 and
> now the log contains this error on the same step:
>
>
> org.apache.catalina.core.StandardWrapperValve invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.NoClassDefFoundError: org/opencms/setup/db/CmsUpdateDBManager
>
>  at
> org.apache.jsp.update.step_005f0_005fdbsettings_jsp._jspService(step_005f0_005fdbsettings_jsp.java:65)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> ...
>
>
>
> 2011/5/27 Michael Emmerich <m.emmerich at alkacon.com>
>
>> Gleb,
>>
>> have you previously updated this OpenCms installation from 6 to 7?
>> Please clear the Tomcat work folder and try again.
>> If you have used another updater on this installation before, please
>> make sure, that you deleted the "updater" folder in your webapp before
>> you copy the new "updater" folder of the OpenCms 8 updater there.
>>
>> Additionally, please check the settings of the Admin user in your
>> current installation if he has a non-default setting for the
>> upload-applet.
>>
>> Kind Regards,
>> Michael.
>>
>>
>>
>> Am 27.05.2011 10:04, schrieb gleb makarov:
>> > Hello everyone,
>> >
>> > Trying to upgrade form 7.5.3 version to 8.0.0, using Upgrade Wizard. All
>> > modifications were done according to the instruction (update of folders
>> > /update, /lib etc), but on the step0 of the Wizard system reports an
>> error:
>> >
>> > org.apache.catalina.core.StandardWrapperValve invoke
>> > SEVERE: Servlet.service() for servlet jsp threw exception
>> > java.lang.NoClassDefFoundError:
>> > org/opencms/setup/update6to7/CmsUpdateDBManager
>> >      at
>> >
>> org.apache.jsp.update.step_005f0_005fdbsettings_jsp._jspService(step_005f0_005fdbsettings_jsp.java:65)
>> >      at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> >      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> >      at
>> >
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
>> >      at
>> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> >      at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> >      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >      at
>> >
>> com.paragonsoftware.opencms.adwords.filter.Filter.doFilter(Filter.java:39)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >      at ru.paragon.util.RedirectFilter.doFilter(RedirectFilter.java:87)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >      at
>> >
>> org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
>> >      at
>> > org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
>> >      at
>> >
>> org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
>> >      at
>> >
>> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >      at
>> >
>> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
>> >      at
>> >
>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> >      at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >      at
>> >
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> >      at
>> >
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> >      at
>> >
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>> >      at
>> >
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> >      at
>> >
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> >      at
>> >
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>> >      at
>> >
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
>> >      at
>> >
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>> >      at
>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>> >      at java.lang.Thread.run(Thread.java:662)
>> >
>> > Maybe someone has the same problem or knows something about it? Last
>> > updates were completed without any errors...
>> > Thank you in advance.
>> > --
>> > Best regards,
>> > Gleb Makarov
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > This mail is sent to you from the opencms-dev mailing list
>> > To change your list options, or to unsubscribe from the list, please
>> visit
>> > http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>> --
>> Kind Regards,
>> Michael.
>>
>> -------------------
>> Michael Emmerich
>>
>> Alkacon Software GmbH  - The OpenCms Experts
>> http://www.alkacon.com - http://www.opencms.org
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>
>
>
> --
> Best regards,
> Gleb Makarov
>



-- 
Best regards,
Gleb Makarov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110530/73e7a7de/attachment.htm>


More information about the opencms-dev mailing list