[opencms-dev] Problem using webform made with module 1.4.1. in OpenCms 8

Yves Glodt yg at mind.lu
Thu Oct 27 13:13:08 CEST 2011


I need to mention as well that I do not use a containerpage with this site.
Generally, the site is build with xmlpages.

The site is imported 1:1 from the OpenCms 7.5 system.

Everything works, except the webforms. Even I installed the same version of
the webform module on OpenCms 8 than 7.5.


Please help ! :-)


On 27 October 2011 10:51, Yves Glodt <yg at mind.lu> wrote:

> I tried once again to copy exactly the template and form control-code from
> OpenCms 8 , to the 7.5, where it works as expected. So there is really an
> issue I guess
>
> Sorry for spamming the list, but the fact that the message-numbers in the
> mailing list archive has changed does not provide to be helpful when using
> google to search the archives... :-)
>
>
> On 27 October 2011 09:59, Yves Glodt <yg at mind.lu> wrote:
>
>> More information:
>>
>> To have the form rendered I use the following include in my template:
>>
>>
>> <cms:include
>> file="/system/modules/com.alkacon.opencms.formgenerator/pages/form.jsp"
>> editable="false" />
>>
>> This works fine in 7.5, but fails with the given exception in 8.
>>
>>
>>
>>
>> On 27 October 2011 09:42, Yves Glodt <yg at mind.lu> wrote:
>>
>>> Sorry for spamming the list but I am stuck with this problem.
>>>
>>> What I did now is the following:
>>>
>>> - uninstall webform 2.0 from my OpenCms 8 instance
>>> - restart tomcat
>>> - install webform 1.4.1
>>> - restart tomcat
>>> - create a new simple form in my site with 2 fields
>>> - use the same template code which worked fine in OpenCms 7.5.3
>>> - fail:
>>>
>>> javax.servlet.jsp.JspException: javax.servlet.ServletException:
>>> javax.servlet.jsp.JspException: org.opencms.xml.CmsXmlException: Resource
>>> "/form.html" is not of required type XML content.
>>> Reason: javax.servlet.jsp.JspException: org.opencms.xml.CmsXmlException:
>>> Resource "/form.html" is not of required type XML content.
>>> Reason: Resource "/form.html" is not of required type XML content.
>>>
>>> Any idea what is going on ?
>>>
>>> Thanks in advance,
>>> Yves
>>>
>>>
>>> On 26 October 2011 09:37, Yves Glodt <yg at mind.lu> wrote:
>>>
>>>> Hi,
>>>>
>>>> any idea on how to correctly set up the template for the webform in
>>>> OpenCms 8 ?
>>>>
>>>>
>>>>
>>>>
>>>> On 25 October 2011 10:05, Yves Glodt <yg at mind.lu> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a webform  which I created with the formgenerator module version
>>>>> 1.4.1, on OpenCms 7.5.4, and which worked fine.
>>>>>
>>>>> The actual displaying of the form was done by including             *<cms:include
>>>>> file="/system/modules/com.alkacon.opencms.formgenerator/pages/form.jsp"
>>>>> editable="false" />*
>>>>>
>>>>> The property *template-elements* of the form is set to the actual jsp
>>>>> template of the site.
>>>>>
>>>>>
>>>>> Now I installed OpenCms 8.0.2, and installed the webform module version
>>>>> 2.0, imported the site.
>>>>>
>>>>> Everything seems to work, except the forms, with the following
>>>>> exception:
>>>>>
>>>>> Errorjavax.servlet.jsp.JspException: javax.servlet.ServletException:
>>>>> File "/system/modules/com.alkacon.opencms.formgenerator/pages/form.jsp" not
>>>>> found
>>>>> Reason: File
>>>>> "/system/modules/com.alkacon.opencms.formgenerator/pages/form.jsp" not found
>>>>>
>>>>>
>>>>> The mentioned jsp does really not exist anymore. So I tried using
>>>>> /system/modules/com.alkacon.opencms.formgenerator/elements/form.jsp, but
>>>>> then I get the exception shown at the end of the mail.
>>>>>
>>>>> I read the documentation but did not see what I need to change to get
>>>>> the form running on OpenCms 8 with the webform module 2.0.
>>>>>
>>>>> Does someone have a pointer ?
>>>>>
>>>>>
>>>>> best regards,
>>>>> Yves
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> javax.servlet.ServletException: javax.servlet.jsp.JspException:
>>>>> org.opencms.main.CmsException: Error while reading element bean from request
>>>>>     at
>>>>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
>>>>>     at
>>>>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
>>>>>     at
>>>>> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_mycompany_v3.templates.template_jsp._jspService(yougenio_jsp.java:1146)
>>>>>     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:377)
>>>>>     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
>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
>>>>>     at
>>>>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
>>>>>     at
>>>>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
>>>>>     at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:612)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
>>>>>     at
>>>>> org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:886)
>>>>>     at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:517)
>>>>>     at
>>>>> org.opencms.loader.A_CmsXmlDocumentLoader.load(A_CmsXmlDocumentLoader.java:224)
>>>>>     at
>>>>> org.opencms.loader.CmsXmlContentLoader.load(CmsXmlContentLoader.java:44)
>>>>>     at
>>>>> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1062)
>>>>>     at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1598)
>>>>>     at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>>>>     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
>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
>>>>>     at
>>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
>>>>>     at
>>>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
>>>>>     at
>>>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
>>>>>     at
>>>>> org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
>>>>>     at
>>>>> org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
>>>>>     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.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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
>>>>>     at
>>>>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
>>>>>     at
>>>>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
>>>>>     at
>>>>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
>>>>>     at
>>>>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
>>>>>     at
>>>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
>>>>>     at java.lang.Thread.run(Thread.java:662)
>>>>> Caused by: org.opencms.main.CmsException: Error while reading element
>>>>> bean from request
>>>>>     at
>>>>> org.opencms.ade.configuration.CmsADEManager.getCurrentElement(CmsADEManager.java:351)
>>>>>     at
>>>>> org.opencms.jsp.CmsJspTagFormatter.init(CmsJspTagFormatter.java:195)
>>>>>     at
>>>>> org.opencms.jsp.CmsJspTagFormatter.doStartTag(CmsJspTagFormatter.java:119)
>>>>>     at
>>>>> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_alkacon_opencms_formgenerator.elements.form_jsp._jspService(form_jsp.java:244)
>>>>>     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:377)
>>>>>     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
>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
>>>>>     at
>>>>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
>>>>>     at
>>>>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
>>>>>     at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:612)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
>>>>>     at
>>>>> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
>>>>>     at
>>>>> org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:356)
>>>>>     at
>>>>> org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:232)
>>>>>     at
>>>>> org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:467)
>>>>>     at
>>>>> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_mycompany_v3.templates.template_jsp._jspx_meth_cms_005finclude_005f4(yougenio_jsp.java:2499)
>>>>>     at
>>>>> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_mycompany_v3.templates.template_jsp._jspService(yougenio_jsp.java:988)
>>>>>     ... 51 more
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111027/d1bbe042/attachment.htm>


More information about the opencms-dev mailing list