webtier@glassfish.java.net

Re: [webtier] Annotations in jars

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Tue, 01 Dec 2009 09:37:42 -0800

On 12/1/09 2:35 AM, webtier_at_javadesktop.org wrote:
> Putting the class files in WEB-INF\classes all annotations are processed correctly.
> After packaging the class files in a jar under WEB-INF\lib the annotations are no longer resolved.
>
You need to make sure you have an empty faces-config.xml (empty, but
still well-formed xml, so a starting and ending faces-config element) in
the META-INF directory of the JAR file, otherwise that jar won't be scanned.
> Using the guessnumber sample and packaging the class files I got following StackTrace:
>
> javax.faces.FacesException: Ausdrucksfehler: Benanntes Objekt ClientSideValidator nicht gefunden.
> com.sun.faces.application.ApplicationImpl.createValidator(ApplicationImpl.java:1493)
> com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.createValidator(ValidatorTagHandlerDelegateImpl.java:234)
>
>
> JSF 2.0.1
> Tomcat 6.0.18
>
> Any help appreciated,
>
> Alex
> [Message sent by forum member 'alexschmidt' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=374024
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>