Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 37358 invoked from network); 23 Jan 2006 23:11:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 23:11:55 -0000 Received: (qmail 20128 invoked by uid 500); 23 Jan 2006 23:11:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20099 invoked by uid 500); 23 Jan 2006 23:11:38 -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 20088 invoked by uid 99); 23 Jan 2006 23:11:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 15:11:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.227.126.171] (HELO moutng.kundenserver.de) (212.227.126.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 15:11:37 -0800 Received: from [80.136.166.37] (helo=[192.168.1.2]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1F1AqC0vux-0006zI; Tue, 24 Jan 2006 00:11:16 +0100 Message-ID: <43D562D6.6030809@gslweb.de> Date: Tue, 24 Jan 2006 00:12:22 +0100 From: Georg Sauer-Limbach User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: (newb) Tomcat servlet mapping problem References: <002901c62057$151b44b0$a100a8c0@utrschad> In-Reply-To: <002901c62057$151b44b0$a100a8c0@utrschad> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:cd437d523e40bb1d83964af654b7f972 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Darren Hall wrote: > (I wasn't sure how to configure the ResourceBundle in the code. I copied all > the files the resource bundle seemed to be referring to into my /servlet > directory along with the compiled HelloWorldServlet code, but it still > complained on execution that it couldn't locate the resource, so it was > easier for me to comment it out.) Better forget about the /servlet url|directory. It was only a made-up url segment for the invoker. In production environments, never use that, but explicit Context paths. Put your servlet.xml (or whatever named, better name it something like myapp.xml) in place again, using a nice Context path. After that, you can put all your servlets with no package in WEB-INF/classes. This will also be the place where your resource bundles will be found. Then, these mappings are perfectly alright: > > > FLCUpEvDisplayServlet > FLCUpEvDisplayServlet > > > FLCUpEvDisplayServlet > /FLCUpEvDisplayServlet > > > Now everytime I hit the servlet, I get the "ClassDefNotFound" error, and > after that I see an entry in the log file: > > 2006-01-23 11:35:53 StandardContext[/servlet]Marking servlet > FLCUpEvDisplayServlet as unavailable > 2006-01-23 11:35:53 StandardContext[/servlet]Error loading WebappClassLoader > delegate: false > repositories: > /WEB-INF/classes/ > Hmm, you're mixing up that "/servlet" story. Better remove everything named "servlet" from your environment... It is only confusing. Create app.xml, put the Context path "/" or "/app", and then "/FCLxyzServlet" or "/app/FCLxyzServlet" are the correct URLs. Does that make any sense? Georg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org