[opencms-dev] Error using Alkacon OAMP Webuser Registration Module with openCMS 7.0.4

Bozidar Ilievski bozidar.ilievski at netcetera.com.mk
Mon Mar 17 22:18:05 CET 2008


Hi.

I have the same problem with this module.
I think it is a bug in their code.
Checking if those three fields (which are mandatory) are present should 
be done when saving the document, not while still editing.

To overcome this problem do the following:
Open the control code of you Webuser Registration Form.
(Left click on the icon, select Advanced, and then Edit controlcode).
Replace the <InputField> element with these three elements:

<InputField>
       <FieldType><![CDATA[text]]></FieldType>
       <FieldLabel><![CDATA[Login:|login]]></FieldLabel>
       <FieldMandatory>true</FieldMandatory>
</InputField>
<InputField>
       <FieldType><![CDATA[text]]></FieldType>
       <FieldLabel><![CDATA[Password:|password]]></FieldLabel>
       <FieldMandatory>true</FieldMandatory>
</InputField>
<InputField>
       <FieldType><![CDATA[text]]></FieldType>
       <FieldLabel><![CDATA[Email:|email]]></FieldLabel>
       <FieldMandatory>true</FieldMandatory>
</InputField>

Save, and exit.

After this, you will be able to edit the registration form with the editor.

Best Regards,
Bobi.

Stéphane Martin wrote:
> Dear list members,
> 
> we are using openCMS 7.0.4 and have installed the webuser OAMP module 
> without any error. After restarting tomcat we have created a new 
> index.html using the "Alkacon Webuser Registration Form". After filling 
> the header text which will be displayed before the fields we wanted to 
> set the footer text which should be displayed after the form fields. As 
> soon as we activate this field we get the message:
> 
> "The following fields are missing [email, password, login]"
> 
> This error also occurs when adding further fields.
> 
> The full error message is:
> 
> org.opencms.main.CmsException: The following fields are missing [email, 
> password, login]
> 	at 
> com.alkacon.opencms.registration.CmsRegistrationXmlContentHandler.prepareForWrite(CmsRegistrationXmlContentHandler.java:127)
> 	at 
> org.opencms.file.types.CmsResourceTypeXmlContent.writeFile(CmsResourceTypeXmlContent.java:299)
> 	at org.opencms.file.CmsObject.writeFile(CmsObject.java:4226)
> 	at 
> org.opencms.workplace.editors.CmsXmlContentEditor.writeContent(CmsXmlContentEditor.java:1661)
> 	at 
> org.opencms.workplace.editors.CmsXmlContentEditor.actionToggleElement(CmsXmlContentEditor.java:606)
> 	at 
> org.opencms.workplace.editors.CmsXmlContentEditor.initWorkplaceRequestValues(CmsXmlContentEditor.java:1098)
> 	at 
> org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:1943)
> 	at org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:259)
> 	at org.opencms.workplace.tools.CmsToolDialog.<init>(CmsToolDialog.java:94)
> 	at org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:268)
> 	at 
> org.opencms.workplace.editors.CmsEditorBase.<init>(CmsEditorBase.java:59)
> 	at org.opencms.workplace.editors.CmsEditor.<init>(CmsEditor.java:205)
> 	at 
> org.opencms.workplace.editors.CmsXmlContentEditor.<init>(CmsXmlContentEditor.java:197)
> 	at 
> org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.xmlcontent.editor_005fform_jsp._jspService(editor_005fform_jsp.java:49)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
> 	at 
> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
> 	at 
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
> 	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1172)
> 	at 
> org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
> 	at 
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
> 	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:1206)
> 	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1150)
> 	at 
> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> 	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1494)
> 	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> 	at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> 	at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> 	at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> 	at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:548)
> 	at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> 	at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
> 	at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
> 	at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> 	at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> 	at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> 	at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
> 	at java.lang.Thread.run(Thread.java:619)
> 

-- 
Bozidar Ilievski | bozidar.ilievski at netcetera.com.mk
phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495
Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk



More information about the opencms-dev mailing list