From tomcat-user-return-115905-apmail-jakarta-tomcat-user-archive=jakarta.apache.org@jakarta.apache.org Wed Nov 24 11:36:14 2004 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 97207 invoked from network); 24 Nov 2004 11:36:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Nov 2004 11:36:14 -0000 Received: (qmail 44969 invoked by uid 500); 24 Nov 2004 11:35:29 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 44943 invoked by uid 500); 24 Nov 2004 11:35:29 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 44901 invoked by uid 99); 24 Nov 2004 11:35:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.atinav.com (HELO avenir1.avenir.net) (205.242.250.76) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 24 Nov 2004 03:35:23 -0800 Received: from joseph (203.200.150.3 [203.200.150.3]) by avenir1.avenir.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2658.3) id P7PY76M4; Wed, 24 Nov 2004 06:28:26 -0500 From: "Joseph Samuel" To: "Tomcat Users List" Subject: RE: Servlet class not found Date: Wed, 24 Nov 2004 17:05:23 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <1101295283.13953.209363560@webmail.messagingengine.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It seems that the package is not properly declared in it. Check it. -----Original Message----- From: Richard Lewis [mailto:richardlewis@fastmail.co.uk] Sent: Wednesday, November 24, 2004 4:51 PM To: tomcat-user@jakarta.apache.org Subject: Servlet class not found Hello, This is probably quite a simple question but I couldn't find an answer in the archives: I'm writing a servlet to perform a little search on my website. The servlet is compiled and is in a directory structure like this: $CATALINA_HOME/webapps/StudioSearch +-- index.html (provides a form to do a test search) +-- WEB-INF/ +-- web.xml (see below) +-- classes/ +-- uk/ +-- ac/ +-- uea/ +-- studios/ +-- StudioSearch.class +-- StudioSearch.java web.xml looks like this: StudioSearch uk.ac.uea.studios.StudioSearch StudioSearch /studio-search When I visit: http://localhost:8080/StudioSearch/ I get the index page as expected. This page has a
element where the action is "studio-search" but when I submit this form I get the following error: javax.servlet.ServletException: Error allocating a servlet instance ...... java.lang.NoClassDefFoundError: uk/ac/uea/studios/StudioSearch (wrong name: StudioSearch) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) I've checked all the spelling and case and that I'm not using '.class' (the StudioSearch.java file isn't confusing it, is it?) but I can't seem to make it work. (I know the servlet class itself works because I've executed it Tomcat's ROOT webapp.) Any ideas? Thanks, Richard -- Richard Lewis richardlewis@fastmail.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org