tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: AW: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound
Date Fri, 03 Oct 2008 15:22:02 GMT
-----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


Mime
View raw message