12 Replies Latest reply on Jan 16, 2011 4:27 AM by Nick Belaevski

    org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3

    walid ali Newbie

      Dears,

       

      i new in richfaces 4.0.0.M3

      i build my project by eclipse helios

      i build first page [login page]

      i try to run it from chrome

      i found the following

       

      org.ajax4jsf.Filter   classnotfoundException

       

       

      how can solve it ?

       

       

       

      thanks

       

       

       

       

       

       

       


        • 1. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
          Ilya Shaikovsky Master

          If you trying to define Filter in web.xml - remove it,. It's not needed in RF 4.

           

          B.t.w. if some problems will remaines - please post full stack trace and web.xml.

          • 2. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
            walid ali Newbie

            ok  , i removed it,

             

            but still not working

             

             

            my web.xml contains

             

             

             

            <welcome-file-list>
                    <welcome-file>faces/index.xhtml</welcome-file>
                </welcome-file-list>
                <context-param>
                    <param-name>javax.faces.PROJECT_STAGE</param-name>
                    <param-value>Development</param-value>
                </context-param>
                <context-param>
                    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                    <param-value>server</param-value>
                </context-param>
              
                <context-param>
                    <param-name>org.richfaces.skin</param-name>
                    <param-value>wine</param-value>
                </context-param>
                <context-param>
              <param-name>org.richfaces.enableControlSkinning</param-name>
              <param-value>true</param-value>
            </context-param>
            <context-param>
              <param-name>org.richfaces.enableControlSkinningClasses</param-name>
              <param-value>false</param-value>
            </context-param>
                <servlet>
                    <servlet-name>Faces Servlet</servlet-name>
                    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                    <load-on-startup>1</load-on-startup>
                </servlet>
                <servlet-mapping>
                    <servlet-name>Faces Servlet</servlet-name>
                    <url-pattern>*.jsf</url-pattern>
                </servlet-mapping>
                <servlet-mapping>
                    <servlet-name>Faces Servlet</servlet-name>
                    <url-pattern>/faces/*</url-pattern>
                </servlet-mapping>
              

            <welcome-file-list>

                    <welcome-file>faces/index.xhtml</welcome-file>

                </welcome-file-list>

                <context-param>

                    <param-name>javax.faces.PROJECT_STAGE</param-name>

                    <param-value>Development</param-value>

                </context-param>

                <context-param>

                    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

                    <param-value>server</param-value>

                </context-param>

             

                <context-param>

                    <param-name>org.richfaces.skin</param-name>

                    <param-value>wine</param-value>

                </context-param>

                <context-param>

              <param-name>org.richfaces.enableControlSkinning</param-name>

              <param-value>true</param-value>

            </context-param>

            <context-param>

              <param-name>org.richfaces.enableControlSkinningClasses</param-name>

              <param-value>false</param-value>

            </context-param>

                <servlet>

                    <servlet-name>Faces Servlet</servlet-name>

                    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                    <load-on-startup>1</load-on-startup>

                </servlet>

                <servlet-mapping>

                    <servlet-name>Faces Servlet</servlet-name>

                    <url-pattern>*.jsf</url-pattern>

                </servlet-mapping>

                <servlet-mapping>

                    <servlet-name>Faces Servlet</servlet-name>

                    <url-pattern>/faces/*</url-pattern>

                </servlet-mapping>

             

             

             

             

            my web-inf/lib contain the following

             

            richfaces-components-api-4.0.0.20101004-M3.jar

            richfaces-components-ui-4.0.0.20101004-M3.jar

            richfaces-core-api-4.0.0.20101004-M3.jar

            richfaces-core-impl-4.0.0.20101004-M3.jar

            commons-beanutils-1.7.0.jar

            commons-collections-3.2.jar

            commons-digester-1.8.jar

            commons-logging-1.0.4.jar

             

             

             

             

            13:00:59,905 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/pilotV2_JSF2].[jsp]] Servlet.service() for servlet jsp threw exception: org.apache.jasper.JasperException: The absolute uri: http://richfaces.org/rich cannot be resolved in either web.xml or the jar files deployed with this application

                    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:239) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:152) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:448) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1398) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Parser.parse(Parser.java:130) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:358) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:338) [:6.0.0.20100911-M5]

                    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:325) [:6.0.0.20100911-M5]

                    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607) [:6.0.0.20100911-M5]

                    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) [:6.0.0.20100911-M5]

                    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.20100911-M5]

                    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.20100911-M5]

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Beta2]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [:6.0.0.20100911-M5]

                    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:542) [:2.0.2-FCS]

                    at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:355) [:2.0.2-FCS]

                    at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:130) [:2.0.2-FCS]

                    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) [:2.0.2-FCS]

                    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [:2.0.2-FCS]

                    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [:2.0.2-FCS]

                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) [:2.0.2-FCS]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]

                    at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.20100911-M5]

                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.20100911-M5]

                    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]

                    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]

                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.20100911-M5]

                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.20100911-M5]

                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.20100911-M5]

                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.20100911-M5]

                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.20100911-M5]

                    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.20100911-M5]

                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.20100911-M5]

                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.20100911-M5]

                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:6.0.0.20100911-M5]

                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.20100911-M5]

                    at java.lang.Thread.run(Thread.java:619) [:1.6.0]

             

             

             

             

             

             

             

             

             

             

            • 4. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
              Ilya Shaikovsky Master

              attach complete web.xml and faces-config files.

               

              Richfacesfan Fanatic - in 4.x - yes not needed anymore.

              • 5. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                Max Rainer Newbie

                Hi,

                Seems I have the same problem here. First I got:

                org.ajax4jsf.Filter   classnotfoundException

                and after deleting filter entry in web.xml I got this exception:

                 

                [#|2010-10-27T17:00:26.547+0000|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=20;_ThreadName=Thread-1;|java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: PWC1268: Filter mapping specifies an unknown filter name richfaces
                java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: PWC1268: Filter mapping specifies an unknown filter name richfaces
                    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
                    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
                    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
                    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
                    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
                    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
                    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
                    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
                    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
                    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
                    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
                    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
                    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
                    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
                    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
                    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
                    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
                    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
                    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
                    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
                    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
                    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
                    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
                    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
                    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
                    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
                    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
                    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
                    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
                    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
                    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
                    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
                    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
                    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
                    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
                    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
                    at java.lang.Thread.run(Thread.java:619)
                |#]

                 

                current web.xml:

                 

                <context-param>
                     <param-name>org.richfaces.SKIN</param-name>
                     <param-value>blueSky</param-value>
                </context-param>
                <context-param>
                     <param-name>org.richfaces.CONTROL_SKINNING</param-name>
                     <param-value>enable</param-value>
                </context-param>
                <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>
                  <servlet-name>Faces Servlet</servlet-name>
                  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                  <load-on-startup>1</load-on-startup>
                </servlet>
                <servlet-mapping>
                  <servlet-name>Faces Servlet</servlet-name>
                  <url-pattern>*.jsf</url-pattern>
                </servlet-mapping>
                <welcome-file-list>
                  <welcome-file>index.html</welcome-file>
                </welcome-file-list>
                </web-app>

                • 6. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                  Max Rainer Newbie

                  sorry, my fault. had to delete filter-mapping too.

                  Works fine for me now!

                  Max

                  • 7. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                    kitto pang Newbie

                    Who can send me a demo of  'JSF 2.0 project for Richfaces 4 m3'.

                    Eclipse or NB project is also ok.

                    Thanks.

                    谁能发我一份'JSF 2.0 project for Richfaces 4 m3'的例子吗?谢谢

                    My email: ptianfeng13481027103@hotmail.com

                     

                    I am poor in English.

                    • 8. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                      Ilya Shaikovsky Master

                      take a look to downloads milestones page at our site. distributions contains richfaces-showcase bundled.

                      • 9. Re: org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                        Richfacesfan Fanatic Newbie

                        sorry , i'dont understand ...

                        richfaces 4 decrecated totally the filter of ajax4 package but

                        i can create my proper filter, is true??????

                        Richfacesfan

                        • 10. org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                          Ilya Sorokoumov Master

                          To Richfacesfan Fanatic:

                          RF 4.0 does not contain org.ajax4jsf.Filter and you do not need it in your web.xml. This topic obviously tells it. If your problem is not about it, please, start a new discussion/quesion.

                          Thanks,

                          Ilya.

                          • 11. org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                            Nick Belaevski Master

                            walid ali,

                             

                            JSP pages are not supported, Facelets only.

                            • 12. org.ajax4jsf.Filter   "classnotfoundException"  in richfaces 4.0.0.M3
                              Nick Belaevski Master

                              walid ali,

                               

                              JSP pages are not supported, Facelets only.