You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by viola lu <vi...@gmail.com> on 2011/08/02 12:14:49 UTC
javax.faces.ManagedBean annotation scan problem
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<Class<?>>(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
Re: javax.faces.ManagedBean annotation scan problem
Posted by viola lu <vi...@gmail.com>.
Thanks Ivan, I already checked spec, and tried your suggestion, It worked
well.
On Tue, Aug 2, 2011 at 10:25 PM, viola lu <vi...@gmail.com> wrote:
> I will check it.
>
>
> On Tue, Aug 2, 2011 at 10:11 PM, Ivan <xh...@gmail.com> 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 <vi...@gmail.com>
>>
>>> 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<Class<?>>(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
>
>
--
viola
Apache Geronimo
Re: javax.faces.ManagedBean annotation scan problem
Posted by viola lu <vi...@gmail.com>.
I will check it.
On Tue, Aug 2, 2011 at 10:11 PM, Ivan <xh...@gmail.com> 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 <vi...@gmail.com>
>
>> 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<Class<?>>(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
Re: javax.faces.ManagedBean annotation scan problem
Posted by Ivan <xh...@gmail.com>.
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 <vi...@gmail.com>
> 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<Class<?>>(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
Re: javax.faces.ManagedBean annotation scan problem
Posted by Ivan <xh...@gmail.com>.
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 <vi...@gmail.com>
> 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<Class<?>>(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