Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 874CB4300 for ; Sat, 25 Jun 2011 13:36:28 +0000 (UTC) Received: (qmail 6403 invoked by uid 500); 25 Jun 2011 13:36:27 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 6337 invoked by uid 500); 25 Jun 2011 13:36:27 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Delivered-To: moderator for users@myfaces.apache.org Received: (qmail 99263 invoked by uid 99); 25 Jun 2011 13:23:01 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iravanchi@gmail.com designates 209.85.160.181 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=US/kyxLl3U1ZkYA7wogUwes6lCzcI0bJrySlHphRdZc=; b=MV61/uMu0QR9DBVvMh8Xg34ZO5RGH322xUIy1d0BKqkCqAVVvj6qw+ofyGAPs7RSlM YNQDR+GK6XbdJ4xCzEGHdfyADeXt3rmRDJETyfOdRkodP0dBIq6X7xLqgFbEWbFidKCB DqejrXkAIPI/JlY9f52hhOos8JBoYpWkmswdo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=u+5LD+pWPZphLdXLCOIjaC2c7FBXFLbOjzMxOg9zoqF776OdHP8XtYYzlcBTkna65w VGwIK+YZSIoXvXtyXxOPS0/lwT1qpMEReuLC3qXIb4aJrrO1OGPGpeJWfnuY+4q5bRw3 AkmNGtmKaR0th6cfkmjpB+CY+DgxsrteubfzI= MIME-Version: 1.0 From: Hamed Iravanchi Date: Sat, 25 Jun 2011 17:52:14 +0430 Message-ID: Subject: PostConstruct annotation not working on Tomcat 7 To: users@myfaces.apache.org Content-Type: multipart/alternative; boundary=001636ef0a1508906304a6893635 --001636ef0a1508906304a6893635 Content-Type: text/plain; charset=UTF-8 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), and I've changed my web.xml file to servlet spec 3.0. MyFaces core version: tried both 2.0.5 and 2.0.7. Is this a bug, or there's some configuration that I'm missing?! -Hamed --001636ef0a1508906304a6893635--