dev@javaserverfaces.java.net

Re: Mojarra PR2 samples in Tomcat?

From: David Geary <david.mark.geary_at_gmail.com>
Date: Thu, 12 Feb 2009 11:55:04 -0700

Looks good to me. Thanks,


david

2009/2/12 Ryan Lubke <Ryan.Lubke_at_sun.com>:
> In the interest of closure, please see the details of issue 980 [1] for the
> resolution.
>
> [1] https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=980
>
> Matthias Wessendorf wrote:
>>
>> David,
>>
>> I think we had a discussion on that in myfaces-dev land, but
>> I forgot the outcome of that.
>>
>> -M
>>
>> On Sun, Feb 8, 2009 at 8:06 PM, Jim Driscoll <Jim.Driscoll_at_sun.com> wrote:
>>
>>>
>>> Hi David -
>>>
>>> I haven't tried the new version on Tomcat - I'll put that on our to do
>>> list
>>> to look at shortly, and get back to you.
>>>
>>> Jim
>>>
>>> On 2/7/09 11:52 AM, David Geary wrote:
>>>
>>>>
>>>> Hi Jim,
>>>>
>>>> I'm trying to get the basic-ezcomp samples with PR2 running in Tomcat
>>>> 6.0.16. I added javax.annotation.jar from the glassfish distribution
>>>> to my WEB-INF/lib (along with jsf-api.jar and jsf-impl.jar from PR2).
>>>> I needed javax.annotation.jar to get Eclipse to quit complaining that
>>>> it couldnt find the PostConstruct class (the complaint, of course, is
>>>> valid w/o the jar file). However, when I run in Tomcat, the
>>>> PostConstruct method is never invoked. To get the basic-ezcomp demos
>>>> to run, I had to modify DemoResourceBean.java to do this...
>>>>
>>>> public Collection<DemoBean> getDemoBeans() {
>>>> buildDemoMetaData(); // I HAD TO ADD THIS LINE
>>>> return demoBeans;
>>>>
>>>> }
>>>>
>>>> ...otherwise I get a blank table on index.xhtml.
>>>>
>>>> Do you know what I need to do in Tomcat to get the PostConstruct
>>>> method to be called? btw, it would be nice if there was some
>>>> documentation that told people how to use Mojarra PR2 on Tomcat 6.X.
>>>>
>>>> Thanks,
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
>>> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>>>
>>>
>>>
>>
>>
>>
>>
>
>



-- 
david