Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98901F03A for ; Sat, 27 Apr 2013 20:56:55 +0000 (UTC) Received: (qmail 79657 invoked by uid 500); 27 Apr 2013 20:56:54 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 79592 invoked by uid 500); 27 Apr 2013 20:56:54 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Delivered-To: moderator for users@myfaces.apache.org Received: (qmail 93480 invoked by uid 99); 27 Apr 2013 19:27:10 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tarnaoui.b@hotmail.fr designates 157.55.2.110 as permitted sender) X-EIP: [0IH6totc8qdm3JqNkmCd429FqL7tRtu6] X-Originating-Email: [tarnaoui.b@hotmail.fr] Message-ID: Content-Type: multipart/alternative; boundary="_0af8cd87-a341-4abf-bef6-706bec5fcf65_" From: brahim tarnaoui To: "users@myfaces.apache.org" Subject: webapp with spring3 and MyFaces2 Date: Sat, 27 Apr 2013 19:26:42 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 27 Apr 2013 19:26:42.0804 (UTC) FILETIME=[26033340:01CE437D] X-Virus-Checked: Checked by ClamAV on apache.org --_0af8cd87-a341-4abf-bef6-706bec5fcf65_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all=2C i developp an application tha integrate JSF MyFaces 2 with Spring 3.the dep= loyement is OK=2C but when i start my app in the browser i have in eclipse = console this errror :java.lang.UnsupportedOperationException at javax.faces= .application.Application.getResourceHandler(Application.java:860) at javax.= faces.webapp.FacesServlet.service(FacesServlet.java:198) at org.apache.cata= lina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja= va:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applica= tionFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.= invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardC= ontextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.au= thenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apa= che.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at o= rg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)= at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:93= 6) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal= ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteA= dapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.proces= s(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$= AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.= tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at ja= va.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.jav= a:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExec= utor.java:908) at java.lang.Thread.run(Thread.java:662) on debug mode=2C the class javax.faces.application.Application=2C getMyface= sApplicationInstance method=2C line 104:this instruction (Application) exte= rnalContext.getApplicationMap().get("org.apache.myfaces.application.Applica= tionImpl") return NULL =3D=3D> this method getMyfacesApplicationInstance r= eturn NULLso in the method javax.faces.application.Application#getResourceH= andler(line 856) the application variable is null=2C so=2C an UnsupportedOp= erationException exception is trowing this is my web.xml file: contextConfigLocation /WEB-INF/spring/root-context.xml org.springfram= ework.web.context.ContextLoaderListener org.springframework.web.context.request.RequestCon= textListener org.a= pache.myfaces.webapp.StartupServletContextListener = javax.faces.PROJECT_STAGE Development javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZON= E_IS_SYSTEM_TIMEZONE true default.xhtml FacesServlet = javax.faces.webapp.FacesServlet 1 FacesSe= rvlet *.xhtml org= .apache.myfaces.ERROR_HANDLING true javax.faces.webapp._ErrorPa= geWriter META-INF/rsc/mycustom-template-error.xm= l thank you = --_0af8cd87-a341-4abf-bef6-706bec5fcf65_--