webtier@glassfish.java.net

Re: [webtier] ProGuard, WEB-INF/lib/classes.jar, and ManagedBean annotations

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Sun, 15 Nov 2009 11:59:28 -0800

On 11/15/09 3:50 PM, webtier_at_javadesktop.org wrote:
> I use the obfuscator ProGuard to obfuscate my demo war file. ProGuard requires you to jar up the files under WEB-INF/classes into WEB-INF/lib/classes.jar.
>
> Jarrng up the class files, even without running ProGuard, causes the ManagedBean annotations to fail and the managed beans are not found.
>
Is there an empty (empty meaning it contains only the starting and
closing faces-config elements) faces-config.xml in the META-INF
directory of the jar?
> Is this a bug or is there some way to make it work? The workaround of course is to declare the managed beans in the faces-config file as before.
> [Message sent by forum member 'judys' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=371896
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>