Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 92418 invoked from network); 3 Oct 2008 15:22:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 15:22:47 -0000 Received: (qmail 47375 invoked by uid 500); 3 Oct 2008 15:22:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47347 invoked by uid 500); 3 Oct 2008 15:22:34 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 47336 invoked by uid 99); 3 Oct 2008 15:22:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 08:22:34 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.80] (HELO QMTA08.westchester.pa.mail.comcast.net) (76.96.62.80) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 15:21:31 +0000 Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA08.westchester.pa.mail.comcast.net with comcast id NB481a0030EZKEL58FN4jt; Fri, 03 Oct 2008 15:22:04 +0000 Received: from [192.168.1.105] ([68.55.225.178]) by OMTA01.westchester.pa.mail.comcast.net with comcast id NFN31a00K3ra03G3MFN4fp; Fri, 03 Oct 2008 15:22:04 +0000 X-Authority-Analysis: v=1.0 c=1 a=50Z8hAhiJNYA:10 a=LjE6yzOvh4gA:10 a=xe8BsctaAAAA:8 a=omfYOv8GcQp52VIZfC4A:9 a=Cxw-JYROxZ6KDGjfO8XJHn4ubWsA:4 a=rPt6xJ-oxjAA:10 Message-ID: <48E6389A.6060602@christopherschultz.net> Date: Fri, 03 Oct 2008 11:22:02 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AW: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound References: <48DBA55D.7050900@vicomtech.org> <48DBA94A.2080106@cornell.edu> <48DBB12C.1040505@vicomtech.org> <48DBBA3A.8060700@cornell.edu> <48E0B77B.60504@vicomtech.org> <005301c92334$9941aee0$cbc50ca0$@de> In-Reply-To: <005301c92334$9941aee0$cbc50ca0$@de> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steffen, Steffen Heil wrote: > Hi > >> The method yielding the problem is the following one: >> >> private static PageLifecycleFactory getDefaultInstance() >> { >> if (defaultInstance == null) >> { >> defaultInstance = new DefaultStrutsPageLifecycleFactory(); >> } >> >> return defaultInstance; >> } > > Make that function *synchronized* ! Practically speaking, the synchronization status of this method shouldn't matter for anything except performance. There is a slight chance of this method returning an uninitialized instance of DefaultPageLifecycleFactory, but I suspect you'd get different kinds of problems than NoClassDefFound. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjmOJoACgkQ9CaO5/Lv0PBN4QCgmDmPo1RjScxccoNFFQ1dn02j NvYAoI0Abw3XXTM6YgE/KoDP69VX7Deh =bod+ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org