Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 92031 invoked from network); 8 Dec 2005 04:03:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Dec 2005 04:03:25 -0000 Received: (qmail 76288 invoked by uid 500); 8 Dec 2005 04:03:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76251 invoked by uid 500); 8 Dec 2005 04:03:08 -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 76240 invoked by uid 99); 8 Dec 2005 04:03:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 20:03:07 -0800 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=DATE_IN_PAST_96_XX X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.225.28.204] (HELO mxsf04.cluster1.charter.net) (209.225.28.204) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 20:03:07 -0800 Received: from mxip05a.cluster1.charter.net (mxip05a.cluster1.charter.net [209.225.28.135]) by mxsf04.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id jB842iFM025706 for ; Wed, 7 Dec 2005 23:02:45 -0500 Received: from 66-190-80-45.dhcp.athn.ga.charter.com (HELO JohnLaptop) ([66.190.80.45]) by mxip05a.cluster1.charter.net with SMTP; 07 Dec 2005 23:02:43 -0500 X-IronPort-AV: i="3.99,228,1131339600"; d="scan'208"; a="1579598824:sNHT20206056" Message-ID: <002101c425f8$e887fd80$6401a8c0@JohnLaptop> From: "John Poley" To: "Tomcat Users List" References: <000901c425d8$b84aa5c0$6401a8c0@JohnLaptop> <439785F9.4030504@joedog.org> Subject: Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext Date: Mon, 19 Apr 2004 06:27:25 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N *sigh* it just had to be something simple, didn't it? Even right in front of me with the http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html page that someone suggested earlier. I put freemarker in the tomcat/shared/lib directory and all is well. I am having serious issues grasping this classloader thing, apparently =) Thanks for the help, all! ----- Original Message ----- From: "Tim Funk" To: "Tomcat Users List" Sent: Wednesday, December 07, 2005 9:01 PM Subject: Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext > BINGO!!!!! > > freemarker.jar does not belong in the system classloader. It belongs in > WEB-INF/lib. > > [ Quick rule of thumb - putting a lib in java/lib/ext will cause problems 99% > of the time. ] > > -Tim > > John Poley wrote: > > And as for me, since we seem to be having similar issues, I cut out eclipse > > all together, worried that somehow it was cause some kind of issue. I have > > a .war file that was was exported by a colleague who is running the same > > .war within tomcat and having no trouble at all with it. I copy that .war > > file into the webapps directory of a freshly installed tomcat where I have > > changed no settings. I start tomcat, and then open a browser to either the > > simple HelloServlet file he included in the .war as a test or the actual > > servlet we are preparing- in both cases I get this same > > NoClassDefFoundError. I do not have j2ee on this system, and I have run a > > complete search for servlet.jar and j2ee.jar files in the hard drive and > > found none other than servlet-api.jar that lies within tomcat/common/lib. > > I am using a newly installed J2SE, JDK 5.0 Update 6, with no other java > > libraries installed. The only files I have added to java/lib/ext are > > freemarker.jar and and a mysql-connector jar. > > Am I missing something somewhere? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org