Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDFC86320 for ; Tue, 2 Aug 2011 14:26:22 +0000 (UTC) Received: (qmail 82557 invoked by uid 500); 2 Aug 2011 14:26:22 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 82301 invoked by uid 500); 2 Aug 2011 14:26:21 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 82283 invoked by uid 99); 2 Aug 2011 14:26:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 14:26:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of viola.lu@gmail.com designates 209.85.161.54 as permitted sender) Received: from [209.85.161.54] (HELO mail-fx0-f54.google.com) (209.85.161.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 14:26:16 +0000 Received: by fxe4 with SMTP id 4so7850711fxe.13 for ; Tue, 02 Aug 2011 07:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=aMhPKAuFTrALhUI3LWjxvEeMtnzhV2kBGnv5ti+sFSE=; b=JOhWHAIf2JLM2I3v2oXVcsSGqtTlDP1wQKqSGfcWQVOk4lHUW4j6Ds6hWtNFwRDLo4 k0vI2+Z2zzEaO/BA3H9BniomsPGoi9XIxVVjdDfImdTy+iHY1THdByy/lWoYUepFT204 47mmIQUs5ajUFIwl/jRZ6rjycpaxoeVWmUCA4= MIME-Version: 1.0 Received: by 10.223.29.145 with SMTP id q17mr2882226fac.118.1312295155067; Tue, 02 Aug 2011 07:25:55 -0700 (PDT) Received: by 10.223.112.72 with HTTP; Tue, 2 Aug 2011 07:25:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 Aug 2011 22:25:55 +0800 Message-ID: Subject: Re: javax.faces.ManagedBean annotation scan problem From: viola lu To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=00151747bb288eed4704a986860c --00151747bb288eed4704a986860c Content-Type: text/plain; charset=ISO-8859-1 I will check it. On Tue, Aug 2, 2011 at 10:11 PM, Ivan wrote: > Hmm, could you double check whether it is a similar issue with > https://issues.apache.org/jira/browse/GERONIMO-5817. ? If not, I will take > a look at it later. > > 2011/8/2 viola lu > >> Hi, Dev >> >> When running javaee6-testsuite\el2.2-test , if jsf java classes is >> packaged in WEB-INF/lib, >> annotationClassSetMap(MyFacesModuleBuilderExtension.java) managebean set is >> empty as below, and no managed bean is loaded >> >> annotationClassSetMap.put(javax.faces.bean.ManagedBean.class, new >> HashSet>(bundleAnnotationFinder.findAnnotatedClasses(javax.faces.bean.ManagedBean.class))); >> >> >> If jsf java classes is put under WEB-INF/classes, all managed beans are >> put in map. >> >> I checked the code, jar files is scanned, but confused managebean >> annotation is not put in annotations. >> >> Can somebody give some hints? >> -- >> viola >> >> Apache Geronimo >> >> > > > -- > Ivan > -- viola Apache Geronimo --00151747bb288eed4704a986860c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I will check it.

On Tue, Aug 2, 2011 at 1= 0:11 PM, Ivan <xhh= sld@gmail.com> wrote:
Hmm, could you double check whether it is a similar issue= with=A0https://= issues.apache.org/jira/browse/GERONIMO-5817. ? If not, I wi= ll take a look at it later.

2011/8/2 viola lu <viola.lu<= /a>@gmail.com>=
Hi, Dev

=A0When running javaee6-testsuite\el2.2-test , if jsf j= ava classes is packaged in WEB-INF/lib, =A0annotationClassSetMap(MyFacesMod= uleBuilderExtension.java) managebean set is empty as below, and no=A0manage= d bean is loaded

=A0=A0annotationClassSetMap.put(javax.faces.bean.ManagedBean.class, new Has= hSet<Class<?>>(bundleAnnotationFinder.findAnnotatedClasses(java= x.faces.bean.ManagedBean.class)));


If=A0=A0jsf java classes is put under WEB-INF/classes, all managed beans ar= e put in map.=A0

I checked the code, jar files is = scanned, but confused managebean annotation is not put in annotations.

Can somebody give some hints?
--
viola

Apache Geronimo




--
Ivan



--
viola

Apache Geronimo

--00151747bb288eed4704a986860c--