Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 58839 invoked from network); 12 Aug 2005 13:02:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Aug 2005 13:02:14 -0000 Received: (qmail 93324 invoked by uid 500); 12 Aug 2005 13:02:11 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 93300 invoked by uid 500); 12 Aug 2005 13:02:11 -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 Received: (qmail 93287 invoked by uid 99); 12 Aug 2005 13:02:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 06:02:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of martin.marinschek@gmail.com designates 64.233.184.194 as permitted sender) Received: from [64.233.184.194] (HELO wproxy.gmail.com) (64.233.184.194) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 06:02:31 -0700 Received: by wproxy.gmail.com with SMTP id i18so604324wra for ; Fri, 12 Aug 2005 06:02:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m9+t+wO8hJHoI6UeO07E1JB7qK4JTN+08c7wGnXa4+GymjlOGIDsFlY0LpBFT8I/bHvhuBLLMTyYqZ8tTPJ0MRzoToExEBi7z7UfXeMg5JcdzFoxA95tcdIwwVZ5V7SFgZYm4iUbDJo9j4AJphE7h1cXQzkzYCtchYf50M1BhOw= Received: by 10.54.46.5 with SMTP id t5mr678490wrt; Fri, 12 Aug 2005 06:02:08 -0700 (PDT) Received: by 10.54.25.39 with HTTP; Fri, 12 Aug 2005 06:02:08 -0700 (PDT) Message-ID: <5a99335f05081206022c8ddc10@mail.gmail.com> Date: Fri, 12 Aug 2005 15:02:08 +0200 From: Martin Marinschek Reply-To: martin@marinschek.com To: MyFaces Discussion Subject: Re: Exception on SunOne 8.1 In-Reply-To: <200508121453.45978.gerard.collin@netonomy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508121405.54954.gerard.collin@netonomy.com> <5a99335f05081205181d6cb362@mail.gmail.com> <200508121453.45978.gerard.collin@netonomy.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N That's really a class loading issue then, what kind of configuration file get's loaded first. all down under is AFAIK (correct me if I'm wrong): It boils down to the fact that the API is implemented both by MyFaces and the Sun RI - now the implementation is somewhat 'used' by the API, and the API finds the files of the Sun implementation first and uses them. A horrible mess, and you won't be able to get around that. Your choices: 1) get rid of the Sun RI jars, as you tried 2) use the Sun RI with the MyFaces tomahawk.jar file as to use only the extensions 3) use another APP Server you won't like either of them ;) regards, Martin On 8/12/05, G=E9rard COLLIN wrote: > Thanks for your answer. >=20 > In fact, SunOne 8.1 comes with jsf-ri jars bundled directly in the syste= m > classpath of the app server. > If I remove them, all works fine, but I can't do a modification that wil= l > affect all web apps installed in this server. >=20 > Is there another solution ? > It seems myfaces try to load the listener from the jsf-ri jars, no ? >=20 > G=E9rard COLLIN >=20 > On Friday 12 August 2005 14:18, Martin Marinschek wrote: > > Oh, oh, > > > > you got some sun remaints somewhere in your path - try to get rid of > > anything reminding of sun, jars, tlds, etc. from every part of your > > web-application. > > > > regards, > > > > Martin > > > > On 8/12/05, G=E9rard COLLIN wrote: > > > When trying to run a MyFaces application into SunOne, I get the follo= wing > > > exception. > > > > > > Any help ? Why does it try to load > > > com.sun.faces.lifecycle.LifeCycleFactoryImpl ? > > > > > > G=E9rard COLLIN > > > > > > [#|2005-08-12T09:34:17.010+0200|WARNING|sun-appserver-pe8.1_02| > > > javax.enterprise.system.stream.err|_ThreadID=3D10;| > > > javax.faces.FacesException: com.sun.faces.lifecycle.LifecycleFactoryI= mpl > > > at > > > javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java= :553 > > >) at > > > javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.jav= a:41 > > >1) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229) at > > > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.ja= va:7 > > >02) at > > > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.ja= va:3 > > >98) at > > > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi= sten > > >er.java:328) at > > > org.apache.catalina.core.StandardContext.listenerStart(StandardContex= t.ja > > >va:4010) at > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4= 522) > > > at com.sun.enterprise.web.WebModule.start(WebModule.java:241) at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)= at > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:833) at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)= at > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483= ) at > > > org.apache.catalina.startup.Embedded.start(Embedded.java:894) at > > > com.sun.enterprise.web.WebContainer.start(WebContainer.java:707) at > > > com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.ja= va:5 > > >07) at > > > com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContain= erLi > > >fecycle.java:54) at > > > com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServ= er.j > > >ava:300) at com.sun.enterprise.server.PEMain.run(PEMain.java:294) at > > > com.sun.enterprise.server.PEMain.main(PEMain.java:220) Caused by: > > > java.lang.ClassCastException > > > at > > > com.sun.faces.lifecycle.RestoreViewPhase.(RestoreViewPhase.java= :69) > > > at com.sun.faces.lifecycle.LifecycleImpl.(LifecycleImpl.java:53= ) at > > > com.sun.faces.lifecycle.LifecycleFactoryImpl.(LifecycleFactoryI= mpl. > > >java:69) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nat= ive > > > Method) at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct= orAc > > >cessorImpl.java:39) at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC= onst > > >ructorAccessorImpl.java:27) at > > > java.lang.reflect.Constructor.newInstance(Constructor.java:274) at > > > java.lang.Class.newInstance0(Class.java:308) > > > at java.lang.Class.newInstance(Class.java:261) > > > at > > > javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java= :551 > > >) ... 19 more > > > > > > |#] >=20 --=20 http://www.irian.at Your JSF powerhouse -=20 JSF Trainings in English and German