[opencms-dev] Web Forms Captcha not showing - NoClassDefFoundError

Tobias Karrer kartobi at gmail.com
Fri Apr 7 15:25:41 CEST 2017


Hmm, did you check-out latest branch of 
https://github.com/alkacon/modules-v8 and compile jars and module with 
Java 8 ?

Best regards,
Tobias


Am 06.04.2017 um 08:44 schrieb Asif G. Khan:
>
> Hello All,
>
>  We have both V8 and plain versions of WebForms installed. Everything 
> is working fine except Captcha. For Captcha no image is being 
> generated and opencms is throwing following exception:
>
> Please note that Jcaptcha jar is available and I am using JRE-8. What 
> can be the possible problem and how can I get it solved … Any 
> suggestions?
>
> An error occurred.<br />java.lang.NoClassDefFoundError: Could not 
> initialize class com.octo.captcha.image.gimpy.GimpyFactory
>
> javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could 
> not initialize class com.octo.captcha.image.gimpy.GimpyFactory
>
> at 
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:909)
>
> at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:838)
>
> at 
> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_alkacon_opencms_v8_formgenerator.pages.captcha_jsp._jspService(captcha_jsp.java:138)
>
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
> at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
>
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
>
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
>
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
>
> at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:715)
>
> at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:581)
>
> at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:517)
>
> at 
> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:191)
>
> at 
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:165)
>
> at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:658)
>
> at 
> org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:441)
>
> at 
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
>
> at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:980)
>
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:531)
>
> at 
> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1191)
>
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1776)
>
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:159)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
>
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
>
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
>
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
>
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
>
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>
> at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
>
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
>
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>
> at 
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
>
> at 
> org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:580)
>
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
>
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
>
> at 
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:495)
>
> at 
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>
> at 
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:767)
>
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1347)
>
> at 
> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>
> at 
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>
> at java.lang.Thread.run(Thread.java:745)
>
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
> com.octo.captcha.image.gimpy.GimpyFactory
>
> at 
> com.alkacon.opencms.v8.formgenerator.CmsCaptchaEngine.initGimpyFactory(CmsCaptchaEngine.java:250)
>
> at 
> com.alkacon.opencms.v8.formgenerator.CmsCaptchaEngine.<init>(CmsCaptchaEngine.java:114)
>
> at 
> com.alkacon.opencms.v8.formgenerator.CmsCaptchaService.<init>(CmsCaptchaService.java:68)
>
> at 
> com.alkacon.opencms.v8.formgenerator.CmsCaptchaServiceCache.getCaptchaService(CmsCaptchaServiceCache.java:155)
>
> at 
> com.alkacon.opencms.v8.formgenerator.CmsCaptchaField.writeCaptchaImage(CmsCaptchaField.java:243)
>
> at 
> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_alkacon_opencms_v8_formgenerator.pages.captcha_jsp._jspService(captcha_jsp.java:124)
>
> ... 46 more
>
> Thanks
>
> *A.G. Khan*
>
> Associate Architect
>
> Global Rescue LLC
>
> Ph: 92-51-2804125
>
> agkhan at globalrescue.com <mailto:agkhan at globalrescue.com>
>
> In the event of an emergency, please contact the Global Rescue 
> Operations Center at 617-459-4200
>
> *CONFIDENTIALITY & PRIVACY NOTICE*- The information transmitted in 
> this email is intended only for the person or entity to which it is 
> addressed and may contain confidential, proprietary and/or privileged 
> material.
>
> Any review, retransmission, dissemination or other use of or taking of 
> any action in reliance upon this information by persons or entities 
> other than the intended recipient is prohibited.
>
> If you received this email in error, please advise the sender and 
> permanently delete this message, all copies and any attachments from 
> your records immediately.
>
>
>
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170407/ac05fd10/attachment.htm>


More information about the opencms-dev mailing list