Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 91151 invoked from network); 26 May 2005 08:50:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 May 2005 08:50:25 -0000 Received: (qmail 15657 invoked by uid 500); 26 May 2005 08:50:24 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 15613 invoked by uid 500); 26 May 2005 08:50:23 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 15590 invoked by uid 99); 26 May 2005 08:50:23 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of martin.marinschek@gmail.com designates 64.233.184.192 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.192) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 26 May 2005 01:50:21 -0700 Received: by wproxy.gmail.com with SMTP id 68so1177467wra for ; Thu, 26 May 2005 01:50:18 -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=o4YtaDP2oXxIB6ZtBqbES5TSRLu1kcGakFlGlSOCx/I1LNhk/g9XV1Ngu5mqOOgpeLZnLSvL9rDR9RRbZw7iZYhxSM+6wNTaPJzg9b7Lj8KGYfRDIlLtsAe8FnO8G6wEfYmF8xfTLgN10pQLSybn/VqyilIUnj0T44Qiviu5cts= Received: by 10.54.138.3 with SMTP id l3mr1781328wrd; Thu, 26 May 2005 01:50:18 -0700 (PDT) Received: by 10.54.25.30 with HTTP; Thu, 26 May 2005 01:50:18 -0700 (PDT) Message-ID: <5a99335f050526015044daed86@mail.gmail.com> Date: Thu, 26 May 2005 10:50:18 +0200 From: Martin Marinschek Reply-To: martin@marinschek.com To: MyFaces Development Subject: Re: [jira] Commented: (MYFACES-133) Configured but inexistent Ren derer is not reported In-Reply-To: <32FF68568B05944AAB124A04F3C14A1F08EEED9E@sxchs008b.itzrh.ska.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <32FF68568B05944AAB124A04F3C14A1F08EEED9E@sxchs008b.itzrh.ska.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N But this is something different what you are doing - you are having a component which has a renderer-type set, and an appropriate renderer for this component can not be found. The bug was about changing a renderer-class to an uninstantiable class. regards, Martin On 5/26/05, Jesse Alexander (KBSA 21) w= rote: > I tried it with 1.0.9 and got this in the TC-log: > ----------------------------------------------------- > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > StandardContext[/MyHelp]No Renderer found for component form1:_id4 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > StandardContext[/MyHelp]No Renderer found for component form1:_id4 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > StandardContext[/MyHelp]No Renderer found for component form1:_id4 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > StandardContext[/MyHelp]No Renderer found for component form1:_id4 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > StandardContext[/MyHelp]No Renderer found for component form1:_id7 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > StandardContext[/MyHelp]No Renderer found for component form1:_id7 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > StandardContext[/MyHelp]No Renderer found for component form1:_id7 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > 26.05.2005 09:58:59 org.apache.myfaces.renderkit.html.HtmlRenderKitImpl g= etRenderer > WARNUNG: Unsupported component-family/renderer-type: ch.ajsw/ch.ajsw.rend= erer.MyHelpRenderer > StandardContext[/MyHelp]No Renderer found for component form1:_id7 (compo= nent-family=3Dch.ajsw, renderer-type=3Dch.ajsw.renderer.MyHelpRenderer) > /----------------------------------------------------- > Looking at the code-snippet below, I would expect another message ... >=20 > regards > Alexander >=20 > -----Original Message----- > From: Martin Marinschek (JIRA) [mailto:myfaces-dev@incubator.apache.org] > Sent: Thursday, May 26, 2005 8:52 AM > To: dev@myfaces.apache.org > Subject: [jira] Commented: (MYFACES-133) Configured but inexistent Render= er is not reported >=20 > [ http://issues.apache.org/jira/browse/MYFACES-133?page=3Dcomments#a= ction_66332 ] >=20 > Martin Marinschek commented on MYFACES-133: > ------------------------------------------- >=20 >=20 > This is the corresponding source-code: >=20 > javax.faces.render.Renderer renderer =3D null; > try { > renderer =3D (javax.faces.render.Renderer) ClassUtils.n= ewInstance(element.getRendererClass()); > } catch(FacesException e) { > // ignore the failure so that the render kit is configu= red > log.error("failed to configure class " + element.getRen= dererClass(), e); > continue; > } >=20 > I would suppose that the logging should be exactly what you refer to, I d= on't know why this would still not be logged? >=20 > regards, >=20 > Martin >=20 > > Configured but inexistent Renderer is not reported > > -------------------------------------------------- > > > > Key: MYFACES-133 > > URL: http://issues.apache.org/jira/browse/MYFACES-133 > > Project: MyFaces > > Type: Bug > > Versions: 1.0.8 beta > > Environment: Tomcat 5.0.28 > > Reporter: Alexander Jesse > > Priority: Minor > > Attachments: MinimalMyFaces.zip, MinimalRI.zip, TomcatConfig_Log.zip > > > > A configured but inexistent renderer is not reported and the myfaces-ap= plication starts using the supplied standard renderer. The SUN-RI reports a= "java.lang.ClassNotFoundException: com.jsf.components.renderer.NotExisting= Renderer" which helps to pinpoint the configuration error. > > For production this can be a desired behaviour but presents some danger= at the same time. Not having the information at hand I wondered why my ren= derer would not decorate the input-field as planned. When I tried the same = renderer in the RI the error (wrong classname) was found in 30 seconds. > > The error is easy to reproduce: > > Take an existing JSF-application and add a phantom renderer to the face= s-config.xml. Then start the web-container. > > (sample config-entry: > > > > > > javax.faces.Input > > javax.faces.Text > > com.jsf.components.renderer.NotExistingRenderer > > > > > > ) >=20 > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > http://issues.apache.org/jira/secure/Administrators.jspa > - > For more information on JIRA, see: > http://www.atlassian.com/software/jira >