Combination View Flat View Tree View
Threads [ Previous | Next ]
S P
getting session problem while doing Liferay signin portlet using jsf
December 18, 2012 6:02 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi All,
I have created a simple login jsf page and manage bean called as LoginManageBean
here is the method in the manage bean,all is well and its validating sucessfully but when i forward to a landing page and in that landing page i have some hyperlinks which will be visible only if the user is signed in and proper session value is there,although i have checked proper user id but still session is coming new everytime..is there any mechanism required to set the session after UserLocalServiceUtil.authenticateByScreenName(companyId,username, password, headerMap, parameterMap, null);.

can i try LoginUtil class...currently i am using Liferay6.1 ce edition.
Please suggest your thoughts/experience.
or do i need to use simliar way which is there in this following link
https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portlet/login/util/LoginUtil.java
 1
 2public String login(){
 3        FacesContext facesContext = FacesContext.getCurrentInstance();
 4        ExternalContext externalContext = facesContext.getExternalContext();
 5        FacesMessage msg = new FacesMessage();
 6        PortletRequest portletRequest = (PortletRequest) externalContext.getRequest();
 7        HttpServletRequest request = PortalUtil.getHttpServletRequest(portletRequest);
 8        PortletResponse portletResponse = (PortletResponse)    externalContext.getResponse();
 9        HttpServletResponse response = PortalUtil.getHttpServletResponse(portletResponse);
10        int authResult = 0;
11         try {
12             if (Validator.isNotNull(username) && Validator.isNotNull(password)) {
13                
14                 authResult = checkUserDetail(request);
15                  if(authResult==1){
16                     return "login";
17                      }else{
18                      return "failure";
19                      }
20             }
21
22        } catch (Exception e) {
23            // TODO Auto-generated catch block
24            e.printStackTrace();
25        }
26        return null;
27
28    }
29
30public int checkUserDetail(HttpServletRequest request){
31         long companyId=1;
32         int authResult = 0;
33         try
34         {
35         long userId = 0;
36         Company company = PortalUtil.getCompany(request);
37         Map headerMap = new HashMap();
38         Map parameterMap = request.getParameterMap();
39         authResult = UserLocalServiceUtil.authenticateByScreenName(companyId,username, password, headerMap, parameterMap, null);
40          ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY);
41          if(themeDisplay.isSignedIn()){
42          User usr = themeDisplay.getUser();
43          }
44         
45         }
46         catch (Exception e)
47         {
48         e.printStackTrace();
49         }
50         
51     return authResult;
52     }
S P
RE: getting session problem while doing Liferay signin portlet using jsf
December 18, 2012 6:40 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

as i am using liferay with primefaces and portlet bridge,I found there is a class called LoginUtil.java,is this class can be used to check login method.

http://repo1.maven.org/maven2/com/liferay/portal/portal-impl/6.1.0/portal-impl-6.1.0.jar
Neil Griffin
RE: getting session problem while doing Liferay signin portlet using jsf
December 18, 2012 7:31 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2060

Join Date: July 26, 2005

Recent Posts

I recently developed and committed the jsf2-login-portlet demo which can be found at GitHub here. See FACES-1461 for more info.

I think that the fix for your session problem can be found in LoginBackingBean.java which has two important parts:

1) Need to get the inner-most wrapped HttpServletRequest in order to get the correct session
2) Need to call PortalUtil.login(...) reflectively via the PortalClassInvoker
S P
RE: getting session problem while doing Liferay signin portlet using jsf
December 18, 2012 8:16 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
Its really nice,now i am implementing it.Brilliant work.


Thanks in Advance.
Neil Griffin
RE: getting session problem while doing Liferay signin portlet using jsf
December 18, 2012 8:32 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2060

Join Date: July 26, 2005

Recent Posts

My pleasure, hope it works out well for you. emoticon

Please let me know if you run into any issues and I'll try to address them in the jsf2-login-portlet.
S P
RE: getting session problem while doing Liferay signin portlet using jsf
December 18, 2012 9:41 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
Thanks a lot for the support.
I am able to deploy and test the portlet but finally in this following code i am getting the error
PortalClassInvoker.invoke(false, LOGIN_UTIL_FQCN, LOGIN_METHOD, LOGIN_PARAM_TYPES, httpServletRequest,
httpServletResponse, handle, password, rememberMe, authType);

  1
  2WARNING: Setting non-serializable attribute value into ViewMap: (key: loginModelBean, value class: com.liferay.faces.demos.bean.LoginModelBean)
  317:19:26,092 ERROR [LoginBackingBean:57] boolean
  4java.lang.ClassNotFoundException: boolean
  5    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
  6    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
  7    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
  8    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
  9    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
 10    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
 11    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
 12    at java.lang.Class.forName0(Native Method)
 13    at java.lang.Class.forName(Class.java:247)
 14    at com.liferay.portal.kernel.util.MethodKey.<init>(MethodKey.java:61)
 15    at com.liferay.portal.kernel.util.PortalClassInvoker.invoke(PortalClassInvoker.java:72)
 16    at com.liferay.faces.demos.bean.LoginBackingBean.authenticate(LoginBackingBean.java:111)
 17    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 18    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 19    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 20    at java.lang.reflect.Method.invoke(Method.java:597)
 21    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
 22    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
 23    at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
 24    at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
 25    at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
 26    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
 27    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
 28    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
 29    at javax.faces.component.UICommand.broadcast(UICommand.java:315)
 30    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
 31    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
 32    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
 33    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 34    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
 35    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:35)
 36    at com.liferay.faces.bridge.BridgePhaseActionImpl.execute(BridgePhaseActionImpl.java:77)
 37    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:69)
 38    at javax.portlet.faces.GenericFacesPortlet.processAction(GenericFacesPortlet.java:152)
 39    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
 40    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
 41    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
 42    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 43    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 44    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 45    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 46    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 47    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 48    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 49    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 50    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 51    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
 52    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 53    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
 54    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
 55    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:637)
 56    at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:686)
 57    at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:361)
 58    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:845)
 59    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:633)
 60    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
 61    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 62    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 63    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
 64    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 65    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 66    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 67    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
 68    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)
 69    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 70    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 71    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 72    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 73    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 74    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 75    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 76    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
 77    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
 78    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
 79    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
 80    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
 81    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
 82    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
 83    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
 84    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
 85    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
 86    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
 87    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 88    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 89    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
 90    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
 91    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
 92    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 93    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 94    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 95    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 96    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 97    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 98    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 99    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
100    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
101    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
102    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
103    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
104    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
105    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
106    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
107    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
108    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
109    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
110    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
111    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
112    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
113    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
114    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
115    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
116    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)
117    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
118    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
119    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
120    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
121    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
122    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
123    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
124    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
125    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
126    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
127    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
128    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
129    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
130    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
131    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
132    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
133    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
134    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
135    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
136    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)
137    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
138    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
139    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
140    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
141    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
142    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
143    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
144    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
145    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
146    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
147    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
148    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
149    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
150    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
151    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
152    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
153    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
154    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
155    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
156    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
157    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
158    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
159    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
160    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
161    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)


Please suggest do i need to place any jar file,
currently i am using liferay-faces-portal-3.0.0-legacy-ga1.jar
http://grepcode.com/file_/repo1.maven.org/maven2/com.liferay.faces/liferay-faces-portal/3.0.0-legacy-ga1/com/liferay/faces/portal/context/LiferayFacesContext.java/?v=source&disposition=attachment
and liferay-faces-util-3.1.0-ga1.jar


Thanks in Advance.
Neil Griffin
RE: getting session problem while doing Liferay signin portlet using jsf
December 18, 2012 9:46 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2060

Join Date: July 26, 2005

Recent Posts

Are you still using Liferay Portal 6.1 CE? If so then you should be using version 3.1.1-ga2 of Liferay Faces. The 3.0.0-legacy-ga1 version is for Liferay 5.2.
S P
RE: getting session problem while doing Liferay signin portlet using jsf
December 19, 2012 6:31 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
Thanks a lot for the help.
currently i am using Liferay Portal 6.1 CE(liferay-portal-6.1.0-ce-ga1-20120106155615760.war) file in weblogic all working fine.
and i am using liferay-faces-portal-3.1.1-ga2.jar and removed liferay-faces-3.0.0-legacy-ga1.jar.
and then i tried to deploy in weblogic i am getting following error while depoying .

 1
 2com.sun.faces.config.ConfigureListener contextInitialized
 3SEVERE: Critical error during deployment:
 4com.sun.faces.config.ConfigurationException:
 5
 6  Cause: Class 'com.liferay.faces.portal.renderkit.InputEditorInternalRenderer' is missing a runtime dependency: java.lang.NoClassDefFoundError: com/liferay/faces/util/render/CleanupRenderer
 7    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:279)
 8    at com.sun.faces.config.processor.RenderKitConfigProcessor.addRenderers(RenderKitConfigProcessor.java:313)
 9    at com.sun.faces.config.processor.RenderKitConfigProcessor.process(RenderKitConfigProcessor.java:179)
10    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
11    at com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(ManagedBeanConfigProcessor.java:270)
12    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
13    at com.sun.faces.config.processor.ValidatorConfigProcessor.process(ValidatorConfigProcessor.java:120)
14    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
15    at com.sun.faces.config.processor.ConverterConfigProcessor.process(ConverterConfigProcessor.java:126)
16    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
17    at com.sun.faces.config.processor.ComponentConfigProcessor.process(ComponentConfigProcessor.java:117)
18    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
19    at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:340)
20    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
21    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)
22    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
23    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)
24    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360)
25    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
26    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
27    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
28    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
29    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
30    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
31    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
32    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
33    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
34    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
35    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
36    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
37    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
38    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
39    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
40    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
41    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
42    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
43    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
44    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
45    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
46    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
47    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
48    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
49    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
50    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
51    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
52    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
53    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
54    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
55    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
56    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
57    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
58    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
59    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
60    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
61    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
62    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
63Caused by: java.lang.NoClassDefFoundError: com/liferay/faces/util/render/CleanupRenderer
64    at java.lang.ClassLoader.defineClass1(Native Method)
65    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
66    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
67    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
68    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
69    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
70    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
71    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
72    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
73    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
74    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
75    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
76    at com.sun.faces.util.Util.loadClass(Util.java:293)
77    at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311)
78    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240)
79    ... 55 more
80Caused by: java.lang.ClassNotFoundException: com.liferay.faces.util.render.CleanupRenderer
81    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
82    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
83    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
84    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
85    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
86    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
87    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
88    ... 70 more
89Cause: Class 'com.liferay.faces.portal.renderkit.InputEditorInternalRenderer' is missing a runtime dependency: java.lang.NoClassDefFoundError: com/liferay/faces/util/render/CleanupRenderer.



could you please suggest me,any other extra jar file missing.

Thanks in Advance.

Appriciate your help.
Neil Griffin
RE: getting session problem while doing Liferay signin portlet using jsf
December 19, 2012 7:14 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2060

Join Date: July 26, 2005

Recent Posts

The stacktrace indicates that you are missing the liferay-faces-util JAR. All of the Liferay Faces JARs should be the same version. For example:

WEB-INF/lib/liferay-faces-alloy-3.1.1-ga2.jar
WEB-INF/lib/liferay-faces-bridge-api-3.1.1-ga2.jar
WEB-INF/lib/liferay-faces-bridge-impl-3.1.1-ga2.jar
WEB-INF/lib/liferay-faces-bridge-portal-3.1.1-ga2.jar
WEB-INF/lib/liferay-faces-bridge-util-3.1.1-ga2.jar