PostConstruct annotation not working on Tomcat 7

2011-06-25 Thread Hamed Iravanchi
Hi, I was trying to port my application to Tomcat 7, where I found that @PostConstruct annotations fail to work silently. The annotated beans are recognized alright (@ManagedBean works). But postConstruct methods are not invoked at all. I've tried it on the latest Tomcat 7 x64 version (7.0.16),

Re: PostConstruct annotation not working on Tomcat 7

2011-06-25 Thread Leonardo Uribe
Hi Tomcat 7 should work without problem. It has been already tested on the past. The first thing you can do is try add this web config param: context-param param-nameorg.apache.myfaces.config.annotation.LifecycleProvider/param-name

Re: PostConstruct annotation not working on Tomcat 7

2011-06-25 Thread Matt Benson
On Sat, Jun 25, 2011 at 9:58 AM, Leonardo Uribe lu4...@gmail.com wrote: Hi Tomcat 7 should work without problem. It has been already tested on the past. The first thing you can do is try add this web config param:  context-param

Re: PostConstruct annotation not working on Tomcat 7

2011-06-25 Thread Gerhard Petracek
short addition: matt was talking about: mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2011/6/25 Matt Benson