When using the annotations, do you still have a faces-config.xml file in
your test.jar file? I believe you need a faces-config file with the version
being 2.0 in the test.jar in order for jsf to scan it for annotated classes.
Joel
On Wed, May 26, 2010 at 9:11 PM, <webtier_at_javadesktop.org> wrote:
> When JSF2 Managed Beans are packaged as a JAR and deployed along with
> different Project which has all the xhtmls i am getting error accessing the
> Managed beans with Annotations
>
> Work around is removing annotations and adding the Managed Bean names in
> faces-config xml file, Can some one help me what i am missing. Is there any
> way in Java i can say to scan my jars?
>
> Scenario I have is
> --------------------------
> test.jar (has all my Managed Beans with annotations)
> testweb.war lib's folder has test.jar.
>
> Thanks,
> User.
> [Message sent by forum member 'userjava1']
>
> http://forums.java.net/jive/thread.jspa?messageID=471620
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>