Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 57602 invoked from network); 6 Dec 2005 11:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Dec 2005 11:30:56 -0000 Received: (qmail 75240 invoked by uid 500); 6 Dec 2005 11:30:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 74236 invoked by uid 500); 6 Dec 2005 11:30:37 -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 74225 invoked by uid 99); 6 Dec 2005 11:30:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 03:30:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of funkman@joedog.org designates 204.74.20.252 as permitted sender) Received: from [204.74.20.252] (HELO sid.armstrong.com) (204.74.20.252) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 03:30:36 -0800 Received: from [10.38.20.134] (tafunk-lt.americas.armstrong.com [10.38.20.134]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id jB6Ba9uH017154 for ; Tue, 6 Dec 2005 06:36:09 -0500 Message-ID: <43957647.60704@joedog.org> Date: Tue, 06 Dec 2005 06:30:15 -0500 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext References: <002b01c425d6$21d2aae0$6401a8c0@JohnLaptop> In-Reply-To: <002b01c425d6$21d2aae0$6401a8c0@JohnLaptop> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N See - http://tomcat.apache.org/faq/classnotfound.html Odds are you have your own servlet-api.jar somewhere in the webapp or system classpath and that is conflicting with the one in common/lib (installed by tomcat) -Tim John Poley wrote: > Please forgive my intrusion if this is not the proper place to post a questoon of this sort. I am new to servlets, and am working on my first deployment- but I am running in to a problem that I can't find a solution to. I have installed Tomcat 5.5 and am using Eclipse (as well as a tomcat plugin) to manage my project. A colleague of mine sent me a war file of out working projected, which I imported to my IDE. I start tomcat, which seems to load properly, and attempt to run the project on the server- where I am faced with the following: > > > javax.servlet.ServletException: Servlet.init() for servlet RequestTranslator threw exception > > root cause > > java.lang.NoClassDefFoundError: javax/servlet/ServletContext > java.lang.Class.getDeclaredConstructors0(Native Method) > java.lang.Class.privateGetDeclaredConstructors(Unknown Source) > java.lang.Class.getConstructor0(Unknown Source) > java.lang.Class.getConstructor(Unknown Source) > freemarker.template.Configuration.setServletContextForTemplateLoading(Configuration.java:331) > verkoopen.boundary.UserInterfaceOutput.(UserInterfaceOutput.java:31) > verkoopen.boundary.RequestTranslator.init(RequestTranslator.java:25) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Unknown Source) > I am using the most recent J2RE 5 and I am certain that Tomcat's servlet-api.jar is within my application's class path. I am not sure why the source cannot be found. Any helpin locating my problem would be greatly appreciated, and I would be happy to prove more information if needed (I'm not entirely sure what would be helpful). And again, I am sorry if this is not the place for this kind of question!Happy coding!John > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org