dev@javaserverfaces.java.net

Re: Anyone else encountering issues resolving JSF2 validators with Jetty?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Tue, 15 Dec 2009 09:21:28 -0800

On 12/15/09 9:09 AM, Lincoln Baxter, III wrote:
>
> Success!!! Thank you Ryan! Where did you find this distinction?
>
Research on previous related issues. See [1] for more detail.

The problem in a nutshell is that we use
ServletContext.getResourcePaths("/WEB-INF/classes") to find
classes to scan them for annotations. jetty:run doesn't run with the
standard webapp directory structure
so the getResourcePaths() call above doesn't find any classes.

[1] http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin


> Lincoln Baxter III
> http://ocpsoft.com
> http://scrumshark.com
> Keep it simple.
>
>> On Dec 14, 2009 4:41 PM, "Ryan Lubke" <Ryan.Lubke_at_sun.com
>> <mailto:Ryan.Lubke_at_sun.com>> wrote:
>>
>> On 12/14/09 1:25 PM, Lincoln Baxter, III wrote: > > Im using the mvn
>> jetty:run plugin
>>
>> Try: jetty:run-war
>>
>> > > Lincoln Baxter III > http://ocpsoft.com > http://scrumshark.com >
>> Keep it simple. >> >> On Dec ...
>>