Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
Auditya manikanta Vadrevu
Liferay Captcha in custom portlets
May 21, 2009 6:06 AM
Answer

Auditya manikanta Vadrevu

Rank: Liferay Master

Posts: 621

Join Date: May 6, 2008

Recent Posts

hi all,

i have tried to implement liferay captcha in one of my custom portlet. I have kept neccessary tld files (liferay-ui) and made entries in web.xml also. but

<liferay-ui:captcha url="<%= captchaURL %>" />


is not displaying the captcha field in the jsp. Any idea about how to enable it ? whether am i missing any thing ?


Thanks in Advance,
V.Auditya.
Alexey Kakunin
RE: Liferay Captcha in custom portlets
September 6, 2009 8:23 AM
Answer

Alexey Kakunin

Rank: Expert

Posts: 370

Join Date: July 7, 2008

Recent Posts

Hi!
Not sure if question still actual
But I just implemented it in my project and shared some info in my blog
Auditya manikanta Vadrevu
RE: Liferay Captcha in custom portlets
September 6, 2009 10:07 PM
Answer

Auditya manikanta Vadrevu

Rank: Liferay Master

Posts: 621

Join Date: May 6, 2008

Recent Posts

hi Alexey Kakunin ,

thanks for the solution.
vaseem bari
RE: Liferay Captcha in custom portlets
September 6, 2009 11:53 PM
Answer

vaseem bari

Rank: Junior Member

Posts: 79

Join Date: March 26, 2008

Recent Posts

Hai,

You can also use the third party captcha . refer the link below......
http://recaptcha.net/resources.html

Rgds
Vaseem bari
Alexey Kakunin
RE: Liferay Captcha in custom portlets
September 7, 2009 3:24 AM
Answer

Alexey Kakunin

Rank: Expert

Posts: 370

Join Date: July 7, 2008

Recent Posts

Yes, of course - but I'm personally like to reuse as much functionality from Liferay core as possible (especially in case Liferay core already have many-many things implemented). Also - it is good from UI consistency side - user may be surprised in case, then different captcha used during registration process and some custom plugin
PRAKASH HARIGOPAL
RE: Liferay Captcha in custom portlets
October 28, 2010 4:08 PM
Answer

PRAKASH HARIGOPAL

Rank: Regular Member

Posts: 101

Join Date: June 23, 2010

Recent Posts

Hi Alexey,

I have followed your article in blog , and tried to integrate CAPTCHA in custom portlet and its not working. Am trying to develop the JSF (Icefaces Portlet) and having the custom registration page ,trying to integrate the CAPTCHA.

And for the below lines of code

1<portlet:resourceURL var="captchaURL"/>
2<liferay-ui:captcha url="<%= captchaURL %>"/>


replaced the portlet:resourceURL by getting the ResourceURL from FacesContext and accessing that from the bean variable. And tried to include the CAPTCHA as follows

1<liferay-ui:captcha url="#{Registration.resourceURL}"/>


After this am getting the big exception stacktrace as follows


  1
  2
  322:19:03,738 ERROR [Parser:165] Failed to execute JSP lifecycle.
  4java.lang.UnsupportedOperationException
  5        at com.icesoft.faces.webapp.parser.StubHttpServletRequest.getAttribute(StubHttpServletRequest.java:116)
  6        at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:228)
  7        at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
  8        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:239)
  9        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 10        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 11        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 12        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 13        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 14        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 15        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 16        at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:159)
 17        at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:500)
 18        at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
 19        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
 20        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
 21        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
 22        at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
 23        at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
 24        at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161)
 25        at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
 26        at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
 27        at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:56)
 28        at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
 29        at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
 30        at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
 31        at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
 32        at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:106)
 33        at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
 34        at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
 35        at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
 36        at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
 37        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 38        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 39        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 40        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 41        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
 42        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
 43        at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:315)
 44        at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:133)
 45        at com.icesoft.faces.webapp.http.portlet.MainPortlet.doInclude(MainPortlet.java:122)
 46        at com.icesoft.faces.webapp.http.portlet.MainPortlet.doView(MainPortlet.java:55)
 47        at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 48        at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 49        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)
 50        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
 51        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
 52        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 53        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 54        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 55        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 56        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
 57        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
 58        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:638)
 59        at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:723)
 60        at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:425)
 61        at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1440)
 62        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 63        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 64        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
 65        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 66        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 67        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 68        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 69        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 70        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 71        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
 72        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
 73        at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3723)
 74        at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1180)
 75        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:160)
 76        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:94)
 77        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:256)
 78        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:181)
 79        at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:821)
 80        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 81        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 82        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
 83        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 84        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 85        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 86        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 87        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 88        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 89        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
 90        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
 91        at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:361)
 92        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:618)
 93        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229)
 94        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 95        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 96        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152)
 97        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 98        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 99        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
100        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
101        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
102        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
103        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
104        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
105        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
106        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
107        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
108        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
109        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
110        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
111        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
112        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
113        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
114        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
115        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
116        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
117        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
118        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
119        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
120        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
121        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
122        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
123        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
124        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
125        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
126        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
127        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
128        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
129        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
130        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
131        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
132        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
133        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
134        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
135        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
136        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
137        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
138        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
139        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
140        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
141        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:133)
142        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
143        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
144        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
145        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
146        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
147        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
148        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
149        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
150        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
151        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
152        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
153        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
154        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:261)
155        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
156        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
157        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
158        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
159        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
160        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
161        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
162        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
163        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:126)
164        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
165        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
166        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
167        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
168        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
169        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
170        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
171        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
172        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
173        at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:221)
174        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
175        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
176        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
177        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
178        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
179        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
180        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
181        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
182        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:385)
183        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
184        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
185        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
186        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
187        at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
188        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
189        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
190        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
191        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
192        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
193        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
194        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
195        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
196        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
197        at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
198        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
199        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
200        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
201        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
202        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
203        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
204        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
205        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
206        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
207        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:239)
208        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
209        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
210        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
211        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
212        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
213        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
214        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
215        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
216        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
217        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
218        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
219        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
220        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
221        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
222        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
223        at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
224        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
225        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
226        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
227        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
228        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
229        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
230        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
231        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
232        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
233        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
234        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
235        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
236        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
237        at java.lang.Thread.run(Thread.java:619)
23822:19:03,744 ERROR [jsp:154] java.lang.UnsupportedOperationException
239        at com.icesoft.faces.webapp.parser.StubHttpServletRequest.getAttribute(StubHttpServletRequest.java:116)
240        at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:228)
241        at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
242        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:239)
243        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
244        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
245        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
246        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
247        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
248        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
249        at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
250        at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:159)
251        at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:500)
252        at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
253        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
254        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
255        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
256        at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
257        at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
258        at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161)


Pls let me know how can i resolve this.

regds
Prakash.
Alexey Kakunin
RE: Liferay Captcha in custom portlets
October 31, 2010 5:46 PM
Answer

Alexey Kakunin

Rank: Expert

Posts: 370

Join Date: July 7, 2008

Recent Posts

Hi!

Sorry, but it looks like IceFaces and Liferay integration issue, since I never used IceFaces (and never like it) I'm not sure I can help

==
Alexey Kakunin
EmForge: Liferay Based Project Hosting Service
Vasily N. Kharitonov
RE: Liferay Captcha in custom portlets
December 20, 2010 5:18 AM
Answer

Vasily N. Kharitonov

Rank: New Member

Posts: 19

Join Date: December 30, 2009

Recent Posts

Hi Alexey.
First time I used your article it with portlet It worked fine. But then I touched with problem.
(java.lang.ClassNotFoundException: com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl)
I didn't understand what happened but after some time of development captcha didn't appear.

I created new test - portlet on new liferay installation (I use liferay-portal-tomcat-6.0.5).
I did like in your article.
My code is.



 1
 2   @Override
 3    public void serveResource(
 4            ResourceRequest resourceRequest,
 5            ResourceResponse resourceResponse) throws IOException, PortletException {
 6            try {
 7                System.out.println("GetCaptcha");
 8               System.out.println(resourceRequest+ " " + resourceResponse);
 9                com.liferay.portal.kernel.captcha.CaptchaUtil
10                        .serveImage(resourceRequest , resourceResponse);
11            
12
13            } catch (Exception e) {
14               System.out.println("exeption________");
15                e.printStackTrace();
16                System.out.println("_______________");
17            }
18    }



When I request resource URL I have the same error.
  1
  2
  3GetCaptcha
  413:20:01,512 INFO  [CaptchaImpl:127] Initializing com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl
  513:20:01,513 ERROR [CaptchaImpl:136] java.lang.ClassNotFoundException: com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl
  6java.lang.ClassNotFoundException: com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl
  7    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
  8    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
  9    at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:52)
 10    at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27)
 11    at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:69)
 12    at com.liferay.portal.captcha.CaptchaImpl._initialize(CaptchaImpl.java:130)
 13    at com.liferay.portal.captcha.CaptchaImpl.serveImage(CaptchaImpl.java:86)
 14    at com.liferay.portal.kernel.captcha.CaptchaUtil.serveImage(CaptchaUtil.java:73)
 15    at com.test.NewPortlet.serveResource(NewPortlet.java:32)
 16    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:119)
 17    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
 18    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
 19    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 20    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 21    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 22    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 23    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
 24    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
 25    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
 26    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:635)
 27    at com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:747)
 28    at com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:504)
 29    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:847)
 30    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:602)
 31    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229)
 32    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 33    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 34    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152)
 35    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 36    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 37    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 38    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
 39    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
 40    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 41    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 42    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 43    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 44    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 45    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 46    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 47    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 48    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 49    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 50    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 51    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 52    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
 53    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 54    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 55    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 56    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 57    at com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter.processFilter(ThemePreviewFilter.java:88)
 58    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 59    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 60    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 61    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 62    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
 63    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 64    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 65    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 66    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 67    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
 68    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 69    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 70    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 71    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 72    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
 73    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 74    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 75    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 76    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 77    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
 78    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
 79    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
 80    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:133)
 81    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 82    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 83    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 84    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 85    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 86    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 87    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 88    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 89    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 90    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 91    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 92    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 93    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
 94    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 95    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 96    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 97    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 98    at com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter.processFilter(ThemePreviewFilter.java:88)
 99    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
100    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
101    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
102    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
103    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
104    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
105    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
106    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
107    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
108    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
109    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
110    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
111    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
112    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
113    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:221)
114    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
115    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
116    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
117    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
118    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
119    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
120    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
121    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
122    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
123    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
124    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
125    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
126    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
127    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
128    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
129    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
130    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
131    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
132    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
133    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
134    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
135    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
136    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
137    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
138    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
139    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
140    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
141    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
142    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
143    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
144    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
145    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
146    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:239)
147    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
148    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
149    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
150    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
151    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
152    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
153    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
154    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
155    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
156    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
157    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
158    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
159    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
160    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
161    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
162    at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
163    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
164    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
165    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
166    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
167    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
168    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
169    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
170    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
171    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
172    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
173    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
174    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
175    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
176    at java.lang.Thread.run(Thread.java:619)
177exeption________
178java.lang.NullPointerException
179    at com.liferay.portal.captcha.CaptchaImpl.serveImage(CaptchaImpl.java:88)
180    at com.liferay.portal.kernel.captcha.CaptchaUtil.serveImage(CaptchaUtil.java:73)
181    at com.test.NewPortlet.serveResource(NewPortlet.java:32)
182    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:119)
183    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
184    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
185    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
186    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
187    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
188    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
189    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
190    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
191    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
192    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:635)
193    at com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:747)
194    at com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:504)
195    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:847)
196    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:602)
197    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229)
198    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
199    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
200    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152)
201    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
202    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
203    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
204    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
205    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
206    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
207    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
208    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
209    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
210    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
211    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
212    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
213    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
214    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
215    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
216    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
217    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
218    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
219    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
220    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
221    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
222    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
223    at com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter.processFilter(ThemePreviewFilter.java:88)
224    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
225    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
226    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
227    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
228    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
229    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
230    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
231    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
232    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
233    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
234    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
235    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
236    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
237    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
238    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
239    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
240    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
241    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
242    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
243    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
244    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
245    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
246    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:133)
247    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
248    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
249    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
250    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
251    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
252    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
253    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
254    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
255    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
256    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
257    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
258    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
259    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
260    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
261    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
262    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
263    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
264    at com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter.processFilter(ThemePreviewFilter.java:88)
265    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
266    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
267    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
268    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
269    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
270    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
271    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
272    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
273    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
274    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
275    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
276    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
277    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
278    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
279    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:221)
280    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
281    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
282    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
283    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
284    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
285    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
286    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
287    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
288    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
289    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
290    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
291    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
292    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
293    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
294    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
295    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
296    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
297    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
298    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
299    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
300    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
301    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
302    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
303    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
304    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
305    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
306    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
307    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
308    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
309    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
310    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
311    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
312    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:239)
313    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
314    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
315    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
316    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
317    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
318    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
319    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
320    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
321    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
322    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
323    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
324    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
325    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
326    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
327    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
328    at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
329    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
330    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
331    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
332    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
333    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
334    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
335    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
336    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
337    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
338    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
339    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
340    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
341    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
342    at java.lang.Thread.run(Thread.java:619)
343_______________
Manish Kumar Gupta
RE: Liferay Captcha in custom portlets
December 20, 2010 6:02 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

I think, you hit this issue.
Vasily N. Kharitonov
RE: Liferay Captcha in custom portlets
December 20, 2010 6:31 AM
Answer

Vasily N. Kharitonov

Rank: New Member

Posts: 19

Join Date: December 30, 2009

Recent Posts

I think you are right.

I made logout,have loaded create new account page, after some seconds captcha appeared. After this I loaded page with my captcha and it worked fine again!


So liferay-create-account captcha appeared without errors, but captcha called by my application according to Alexey's article didn't appear before I called first one.
Vasily N. Kharitonov
RE: Liferay Captcha in custom portlets
December 20, 2010 6:52 AM
Answer

Vasily N. Kharitonov

Rank: New Member

Posts: 19

Join Date: December 30, 2009

Recent Posts

in liferay register form captcha called with actionURL not resourseURL. May be this is a difference.

\ROOT\html\portlet\login\create_account.jsp

 1
 2...
 3<portlet:actionURL windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>" var="captchaURL">
 4<portlet:param name="struts_action" value="/login/captcha"/>
 5</portlet:actionURL>
 6
 7<liferay-ui:captcha url="<%= captchaURL %>" />
 8
 9...
James Zhang
RE: Liferay Captcha in custom portlets
March 24, 2011 3:17 PM
Answer

James Zhang

Rank: New Member

Posts: 1

Join Date: February 17, 2011

Recent Posts

Is there any code sample on how to do reCaptcha in custom portlets. I applied simpleCaptcha, and it works fine. The same ui:captcha tag would render the reCaptcha image correctly in the front-end, but how to do the validation on the server side? Any comments or hints would be appreciated.
stephan t
RE: Liferay Captcha in custom portlets
May 18, 2011 2:11 AM
Answer

stephan t

Rank: Junior Member

Posts: 48

Join Date: October 19, 2010

Recent Posts

Hi Alexey,

thanks for your simple but clear blog post about the captcha.
I tried it and am getting some weird errors which are caused by calling CaptchaUtil.serveImage(renderRequest, renderResponse); in my doView() method.
Later in the rendering my JSP cannot be rendered because of:
Exception: "Cannot obtain Writer because OutputStream is already in use"
(Looks like this is related: http://issues.liferay.com/browse/LPS-13720)

Do you or anybody else have some experience with this error. Even with the LPS issue I can't get it to work and am kind of lost.
Am working with 6.0.11.

thanks for any hints
Stephan
stephan t
RE: Liferay Captcha in custom portlets
May 18, 2011 2:23 AM
Answer

stephan t

Rank: Junior Member

Posts: 48

Join Date: October 19, 2010

Recent Posts

answering my own question:
doView() is the wrong method. I wasn't paying attention to the method Alexey is calling the serveImage from. As stated in his blog post linked above it should be
 1@Override
 2    public void serveResource(ResourceRequest resourceRequest,
 3                             ResourceResponse resourceResponse) throws IOException, PortletException {
 4        try {
 5            com.liferay.portal.kernel.captcha.CaptchaUtil.serveImage(resourceRequest, resourceResponse);
 6        } catch (Exception e) {
 7            log.error(e);
 8        }
 9    }


Happy Humpday
Stephan
Rahul Saraswat
RE: Liferay Captcha in custom portlets
February 5, 2013 2:21 AM
Answer

Rahul Saraswat

Rank: New Member

Posts: 18

Join Date: January 9, 2013

Recent Posts

Hi Alexey,

I need your help.
I am trying to insert liferay captcha in my custom portlet. But I am getting an exception which says:

09:53:27,871 INFO [http-bio-8080-exec-1607][CaptchaSamplePortlet:103] INFO: .[doView()]-->START()
09:53:27,872 INFO [http-bio-8080-exec-1607][CaptchaSamplePortlet:111] INFO: .[include()]-->START()
09:53:27,875 ERROR [http-bio-8080-exec-1607][IncludeTag:253] Current URL /web/demo-site/home generates exception: null
09:53:27,876 ERROR [http-bio-8080-exec-1607][IncludeTag:154] java.lang.NullPointerException
at com.liferay.taglib.aui.InputTag.updateFormValidators(InputTag.java:270)
at com.liferay.taglib.aui.InputTag.doEndTag(InputTag.java:45)
at org.apache.jsp.html.taglib.ui.captcha.simplecaptcha_jsp._jspx_meth_aui_005finput_005f0(simplecaptcha_jsp.java:535)
at org.apache.jsp.html.taglib.ui.captcha.simplecaptcha_jsp._jspService(simplecaptcha_jsp.java:467)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345)
at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
at org.apache.jsp.html.taglib.ui.captcha.page_jsp._jspService(page_jsp.java:428)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345)
at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245)

09:53:27,876 INFO [http-bio-8080-exec-1607][CaptchaSamplePortlet:119] INFO: .[include()]-->END()
09:53:27,876 INFO [http-bio-8080-exec-1607][CaptchaSamplePortlet:106] INFO: [ViewingPortlet.[doView()]-->END()
09:53:28,156 INFO [http-bio-8080-exec-1607][CaptchaSamplePortlet:42] [CaptchaSamplePortlet].[serveResource()]--START()
09:53:28,210 INFO [http-bio-8080-exec-1607][CaptchaSamplePortlet:46] [CaptchaSamplePortlet].[serveResource()]--END()

I have followed the following link by you.
http://www.emforge.net/web/akakunin/blogs/-/blogs/implement-captcha-in-liferay-portlet

Hope to get a reply from you end.

Thanks in Advance

Thanks & Regards
Rahul Saraswat
Patricia Hevia
RE: Liferay Captcha in custom portlets
May 14, 2014 3:14 AM
Answer

Patricia Hevia

Rank: New Member

Posts: 22

Join Date: March 24, 2011

Recent Posts

Hello,

I have the same problem, could you resolve it?, what is the solution?

Thank very much
Meera Prince
RE: Liferay Captcha in custom portlets
May 14, 2014 3:22 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 838

Join Date: February 8, 2011

Recent Posts

Hi
Please have a look into following link it may help

http://www.liferaysavvy.com/2013/12/liferay-captcha-plugin-portlet.html


Regards,
meera prince
Patricia Hevia
RE: Liferay Captcha in custom portlets
May 14, 2014 3:46 AM
Answer

Patricia Hevia

Rank: New Member

Posts: 22

Join Date: March 24, 2011

Recent Posts

Thank you very much!

I have resolved the problem. I have updated tag <form> to <aui:form>.

Thank.