1 2 3 Previous Next 39 Replies Latest reply on Mar 30, 2009 10:30 AM by ilya_shaikovsky Go to original post
      • 15. Re: Iam getting the following error while navigating through
        ilya_shaikovsky

        I asked to move RF filter and filter-mapping ion the top of the filters chain in web.xml.

        B.t.w. try to remove temporarily other filters definitions except RichFaces at all.

        • 16. Re: Iam getting the following error while navigating through
          ilya_shaikovsky

          sorry.. lost commets in your code.. :( use please [ code ] tags next time..

          • 17. Re: Iam getting the following error while navigating through

            Hi Ilya,
            Let me remove all the other filters and see if that works.
            R u on your yahoo messenger where I can IM you directly? if you are on any of the messangers please let me know so that I can communicate better with you.

            • 18. Re: Iam getting the following error while navigating through
              ilya_shaikovsky

              Yes.. Nick already suggested in another thread try to remove other filters. My yahoo id in my profile. B.t.w. you could send the war for me directly and I'll post the answer after investigation and corrections.

              • 19. Re: Iam getting the following error while navigating through

                Hi Ilya,
                I have removed all the filters from my web.xml , but still no luck.

                Here is my web.xml

                <?xml version="1.0" encoding="UTF-8"?>
                <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="WebApp_1236806764494" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
                 <display-name>Test Data Platform Workbench</display-name>
                 <description>Test Data Platform Workbench</description>
                 <context-param>
                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                 <param-value>server</param-value>
                 </context-param>
                 <context-param>
                 <param-name>javax.faces.application.CONFIG_FILES</param-name>
                 <param-value>/WEB-INF/faces-config.xml</param-value>
                 </context-param>
                 <context-param>
                 <param-name>com.sun.faces.validateXml</param-name>
                 <param-value>true</param-value>
                 </context-param>
                 <context-param>
                 <param-name>com.sun.faces.verifyObjects</param-name>
                 <param-value>false</param-value>
                 </context-param>
                 <context-param>
                 <param-name>tree.control.images</param-name>
                 <param-value>/images</param-value>
                 </context-param>
                 <context-param>
                 <param-name>org.richfaces.SKIN</param-name>
                 <param-value>blueSky</param-value>
                 </context-param>
                
                 <filter>
                 <display-name>RichFaces Filter</display-name>
                 <filter-name>richfaces</filter-name>
                 <filter-class>org.ajax4jsf.Filter</filter-class>
                 </filter>
                
                 <filter-mapping>
                 <filter-name>richfaces</filter-name>
                 <servlet-name>Faces Servlet</servlet-name>
                 <dispatcher>REQUEST</dispatcher>
                 <dispatcher>FORWARD</dispatcher>
                 <dispatcher>INCLUDE</dispatcher>
                 </filter-mapping>
                
                
                 <servlet id="Servlet_1">
                 <servlet-name>InitializationServlet</servlet-name>
                 <servlet-class>com.equifax.aspire.infrastructure.kernel.web.InitializationServlet</servlet-class>
                 <init-param id="InitParam_1">
                 <param-name>initializationClasses</param-name>
                 <param-value>com.equifax.ic.core.kernel.impl.InterConnectSystemInitializer</param-value>
                 </init-param>
                 <init-param id="InitParam_2">
                 <param-name>requireCleanStart</param-name>
                 <param-value>false</param-value>
                 </init-param>
                 <load-on-startup>5</load-on-startup>
                 </servlet>
                 <!-- Faces Servlet -->
                 <servlet>
                 <servlet-name>Faces Servlet</servlet-name>
                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                 <load-on-startup>6</load-on-startup>
                 </servlet>
                
                 <servlet-mapping id="ServletMapping_1">
                 <servlet-name>InitializationServlet</servlet-name>
                 <url-pattern>/initialization</url-pattern>
                 </servlet-mapping>
                
                 <!-- Faces Servlet Mapping -->
                 <servlet-mapping>
                 <servlet-name>Faces Servlet</servlet-name>
                 <url-pattern>*.faces</url-pattern>
                 </servlet-mapping>
                 <welcome-file-list>
                 <welcome-file>global/index.jsp</welcome-file>
                 </welcome-file-list>
                
                </web-app>


                Un fortunately Iam not able to get to your profile. it could be the firewall setting at my workplace. Can you please provide me your email address where I can email you the war file so that you can take a look at it.

                In the mean time The application seems to be working fine with richfaces 1.3.5. Will try to migrate to 1.3.5 and keep you updated if I have any trobles during the migration.

                Thanks a lot for your help. Appreciate it.

                • 20. Re: Iam getting the following error while navigating through
                  ilya_shaikovsky

                  ishaikovsky at exadel dot com

                  • 21. Re: Iam getting the following error while navigating through

                    Hi Ilya,
                    In the mean time I started using RichFaces 1.3.5 in my application. Iam using JSF Sun RI 1.1 . Iam able to login ok to the application but when I navigate. I get the following error.

                    sheet.cssSystem Out Filter invoked for /webapp/tdp/workbench/search/oneLineSearch.faces
                    [3/19/09 12:18:27:348 EDT] 0000001c helper I BEFORE RESTORE_VIEW 1
                    
                    [3/19/09 12:18:27:348 EDT] 0000001c helper I BEFORE RESTORE_VIEW 1
                    
                    [3/19/09 12:18:27:395 EDT] 0000001c helper I AFTER RESTORE_VIEW 1
                    
                    [3/19/09 12:18:27:395 EDT] 0000001c helper I AFTER RESTORE_VIEW 1
                    
                    [3/19/09 12:18:27:395 EDT] 0000001c ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.String
                     at javax.faces.component.html.HtmlCommandLink.restoreState(HtmlCommandLink.java:843)
                     at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1041)
                     at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1053)
                     at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1053)
                     at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:246)
                     at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:305)
                     at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
                     at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159)
                     at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
                     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
                     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
                     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
                     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
                     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
                     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
                     at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                     at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
                     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
                     at com.equifax.ic.tdp.jsf.util.SysOutFilter.doFilter(SysOutFilter.java:34)
                     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
                     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
                     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
                     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:761)
                     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:673)
                     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
                     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
                     at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
                     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
                     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
                     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
                     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
                     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
                     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
                     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
                     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
                     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
                     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
                     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
                     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
                     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
                     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)


                    I was searching on google and came to know that quiet a few richfaces users are facing this problem when they are using Richfaces 3.1.x with JSF Sun RI 1.1. What is the solution for this?
                    Looking forward to hear back frm you.

                    • 22. Re: Iam getting the following error while navigating through
                      ilya_shaikovsky

                      let not to play with different versions and workarouds.. please just send me the war which I could run and check with java sources and we'll post the answer.

                      • 23. Re: Iam getting the following error while navigating through

                        Hi Ilya,
                        I have emailed the war file to the email adress provided by you as you have requested. it is simple web app with just a coupel jsp's. when you log in to the test.jsp and click on the link you can see that the server side code is not invoked. The war has Richfaces version 3.1.6 specific jars and uses the SUN RI 1.1 which comes with websphere. I was able to replicate the issue on my local websphere application server. Please confirm if you have received the war file and if you were able to replicate the issue.

                        Thanks again for looking into the issue.

                        • 24. Re: Iam getting the following error while navigating through

                          Hi Ilya,
                          Can you please confirm that you have received my email which has the war file, and you were able to replicate the issue as I was able to

                          • 25. Re: Iam getting the following error while navigating through

                            Hi Ilya,
                            I was curious if you received the war file which I sent you via email to the emial address you have provided. Please let me know if you need anything else from me.

                            • 26. Re: Iam getting the following error while navigating through

                              Hi Ilya,
                              Did you get a chance to deploy my war file. I would appreciate if you can let me know what happend.

                              • 27. Re: Iam getting the following error while navigating through


                                Hi,
                                I was looking up the forums if any one else faced the same problem and I found this JIRA.

                                https://jira.jboss.org/jira/browse/RF-982

                                According to the JIRA the resolution is present in version 3.2 of richfaces, So can I assume that richfaces 3.1.x is not compatible with the SUN RI JSF version 1.1. I din't get any reply from you after I sent you the WAR file. Can you please help me guide through this.

                                I totally appreciate your help and Iam looking forward to hear back from you.

                                • 28. Re: Iam getting the following error while navigating through
                                  nbelaevski

                                   

                                  "RAJESHIV" wrote:
                                  I was looking up the forums if any one else faced the same problem and I found this JIRA.

                                  https://jira.jboss.org/jira/browse/RF-982

                                  According to the JIRA the resolution is present in version 3.2 of richfaces, So can I assume that richfaces 3.1.x is not compatible with the SUN RI JSF version 1.1.
                                  Hi,

                                  You are not right. As you can see the issue is about incompatibility with MyFaces; and Sun RI is not affected.

                                  • 29. Re: Iam getting the following error while navigating through
                                    ilya_shaikovsky

                                    Sorry for the delay.


                                    I get just
                                    javax.faces.el.MethodNotFoundException: home with your war file.

                                    1) please try to use jsf 1.1_02 instead of web sphere built-in implementation. (I couldn't tell anything as I dont know about it)

                                    2) also next time please add sources of java beans. I know that for this sample it is trivial but you know simple mistakes is most hardly detectable.

                                    3) Also next time please make sure that war you providing could be just simply run just deployed to tomcat. We can't run all the wars you guys provides in specific environment because of too many requests.