Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Srividhya Mohanasundaram
Liferay Captcha JSF 2 not working
March 21, 2013 4:27 PM
Answer

Srividhya Mohanasundaram

Rank: New Member

Posts: 20

Join Date: June 29, 2012

Recent Posts

Hi

I am trying to use Liferay Captcha for my project and here is the code:

Here is my code:
CaptchaBean.java:
 1package com.versign.vcc.prototype.wizard;
 2
 3import java.io.Serializable;
 4
 5import javax.faces.application.FacesMessage;
 6import javax.faces.bean.ManagedBean;
 7import javax.faces.context.FacesContext;
 8import javax.faces.event.ActionEvent;
 9
10import com.liferay.portal.kernel.util.GetterUtil;
11import com.liferay.portal.kernel.util.PropsKeys;
12import com.liferay.portal.kernel.util.PropsUtil;
13
14@ManagedBean
15public class CaptchaBean implements Serializable
16{
17
18    /**
19     *
20     */
21    private static final long serialVersionUID = -7115962680931544850L;
22    /**
23     *
24     */
25    private String captchaText;
26    private Boolean captchaRendered;
27
28    public void submit(ActionEvent event)
29    {
30        FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Correct", "Correct");
31
32        FacesContext.getCurrentInstance().addMessage(null, msg);
33
34    }
35
36    public boolean isCaptchaRendered()
37    {
38        if (getCaptchaRendered() == null)
39        {
40            setCaptchaRendered(Boolean.valueOf(GetterUtil.getBoolean(PropsUtil.get(PropsKeys.CAPTCHA_CHECK_PORTAL_CREATE_ACCOUNT))));
41        }
42
43        return getCaptchaRendered().booleanValue();
44    }
45
46    public String getCaptchaText()
47    {
48        return captchaText;
49    }
50
51    public void setCaptchaText(String captchaText)
52    {
53        this.captchaText = captchaText;
54    }
55
56    public Boolean getCaptchaRendered()
57    {
58        return captchaRendered;
59    }
60
61    public void setCaptchaRendered(Boolean captchaRendered)
62    {
63        this.captchaRendered = captchaRendered;
64    }
65}


captcha.xhtml:
 1<?xml version="1.0" encoding="UTF-8"?>
 2<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
 3    xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
 4    xmlns:aui="http://liferay.com/faces/aui" xmlns:aui-cc="http://liferay.com/faces/aui-cc"
 5    xmlns:liferay-ui="http://liferay.com/faces/ui" xmlns:liferay-util="http://liferay.com/faces/util">
 6
 7
 8    <h:head>
 9    </h:head>
10    <h:form>
11        <h:body>
12            <aui:form id="f">
13                <aui:layout>
14                    <h:messages showDetail="true" />
15
16                    <liferay-ui:captcha rendered="#{captchaBean.captchaRendered}" />
17                    <aui-cc:input inlineMessage="true" label="Please Fill in the Blank" value="#{captchaBean.captchaText}"
18                        required="true">
19                        <liferay-util:validateCaptcha for="inputText" />
20                    </aui-cc:input>
21                    <h:commandButton actionListener="#{captchaBean.submit}" styleClass="aui-button-input aui-button-input-submit"
22                        value="Submit" />
23                </aui:layout>
24            </aui:form>
25        </h:body>
26    </h:form>
27</f:view>


I am following the link:

Liferay Captcha Example

Here are the list of jars in my classpath:
1<include name="**/portlet-api-2.0.jar" />
2<include name="**/portlet-bridge-api-2.0.0.jar" />
3<include name="**/liferay-faces-bridge-api-3.1.1-ga2.jar" />
4<include name="**/liferay-faces-bridge-impl-3.1.0-RC1.jar" />
5<include name="**/liferay-faces-util-3.1.1-ga2.jar" />
6<include name="**/liferay-faces-alloy-3.1.1-ga2.jar" />
7<include name="**/jsf-api-2.1.9.jar" />
8<include name="**/jsf-impl-2.1.9.jar" />


Please let me know what I am doing wrong here. I am using JSF 2.0 and Liferay 6.1.10. And here is the error:
  1SEVERE: Error Rendering View[/WEB-INF/xhtml/prototype/wizard/captcha.xhtml]
  2java.io.NotSerializableException: com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImpl
  3    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
  4    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
  5    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
  6    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
  7    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
  8    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
  9    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
 10    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
 11    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
 12    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
 13    at java.util.ArrayList.writeObject(ArrayList.java:570)
 14    at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
 15    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 16    at java.lang.reflect.Method.invoke(Method.java:597)
 17    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
 18    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
 19    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
 20    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
 21    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
 22    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
 23    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
 24    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
 25    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
 26    at java.util.HashMap.writeObject(HashMap.java:1001)
 27    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
 28    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 29    at java.lang.reflect.Method.invoke(Method.java:597)
 30    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
 31    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
 32    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
 33    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
 34    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
 35    at com.sun.faces.renderkit.ClientSideStateHelper.doWriteState(ClientSideStateHelper.java:338)
 36    at com.sun.faces.renderkit.ClientSideStateHelper.writeState(ClientSideStateHelper.java:181)
 37    at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:122)
 38    at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:113)
 39    at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225)
 40    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:441)
 41    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
 42    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
 43    at com.liferay.faces.bridge.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:91)
 44    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
 45    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 46    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 47    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:45)
 48    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:241)
 49    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:84)
 50    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:82)
 51    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
 52    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 53    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
 54    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 55    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
 56    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
 57    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
 58    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 59    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 60    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 61    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 62    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 63    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 64    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 65    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:71)
 66    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 67    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
 68    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 69    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
 70    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
 71    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:637)
 72    at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:722)
 73    at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:426)
 74    at jsp_servlet._html._portal.__render_portlet._jspService(__render_portlet.java:1244)
 75    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
 76    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 77    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 78    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 79    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 80    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 81    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 82    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 83    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:71)
 84    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 85    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
 86    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
 87    at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:4984)
 88    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1508)
 89    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:187)
 90    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:122)
 91    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:309)
 92    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:234)
 93    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:110)
 94    at jsp_servlet._html._portal._layout._view.__portlet._jspService(__portlet.java:528)
 95    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
 96    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 97    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 98    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 99    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
100    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
101    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
102    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
103    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:71)
104    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
105    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
106    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
107    at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:414)
108    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:682)
109    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:246)
110    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
111    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
112    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
113    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
114    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
115    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
116    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:538)
117    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:515)
118    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
119    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
120    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
121    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
122    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
123    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
124    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
125    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
126    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
127    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
128    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
129    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
130    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
131    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:289)
132    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
133    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
134    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
135    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
136    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:247)
137    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
138    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
139    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
140    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:71)
141    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
142    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
143    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
144    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
145    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
146    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
147    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
148    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
149    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
150    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
151    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
152    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
153    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
154    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
155    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
156    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
157    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
158    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
159    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
160    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
161    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
162    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:289)
163    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
164    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
165    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
166    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
167    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
168    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
169    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
170    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
171    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
172    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
173    at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:411)
174    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
175    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
176    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
177    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
178    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)
179    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
180    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
181    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
182    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
183    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:247)
184    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
185    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
186    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
187    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
188    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
189    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
190    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
191    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
192    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
193    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
194    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
195    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
196    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
197    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:158)
198    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
199    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:55)
200    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
201    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
202    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
203    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
204    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
205    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
206    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
207    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
208    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
209    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
210    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
211    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
212    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
213    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
214    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
215    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
216    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
217    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
218    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
219    at com.verisign.vcc.common.filters.BusinessAnalyticsFilter.doFilter(BusinessAnalyticsFilter.java:70)
220    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
221    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
222    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
223    at java.lang.reflect.Method.invoke(Method.java:597)
224    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:54)
225    at $Proxy713.doFilter(Unknown Source)
226    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
227    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
228    at com.verisign.vcc.servlet.filter.InternalPortletsSecurityFilter.doFilter(InternalPortletsSecurityFilter.java:57)
229    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
230    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
231    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
232    at java.lang.reflect.Method.invoke(Method.java:597)
233    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:54)
234    at $Proxy713.doFilter(Unknown Source)
235    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
236    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
237    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:71)
238    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
239    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
240    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
241    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
242    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
243    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
244    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
245    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
246    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
247    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)



Please let me know if I am missing something
Neil Griffin
RE: Liferay Captcha JSF 2 not working
March 28, 2013 2:22 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2179

Join Date: July 26, 2005

Recent Posts

I would recommend that you try the Liferay Faces jsf2-registration-portlet demo. It has a working example of the liferay-ui:captcha component for JSF/Facelets.