Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 83235 invoked from network); 1 Feb 2006 09:34:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Feb 2006 09:34:03 -0000 Received: (qmail 36175 invoked by uid 500); 1 Feb 2006 09:33:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 36162 invoked by uid 500); 1 Feb 2006 09:33:46 -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 36151 invoked by uid 99); 1 Feb 2006 09:33:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2006 01:33:46 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.150.49.175] (HELO mtaout5.barak.net.il) (212.150.49.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2006 01:33:45 -0800 Received: from default.domain ([10.11.5.13]) by mtaout5.barak.net.il (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) with ESMTP id <0IU0006785ADHM00@mtaout5.barak.net.il> for users@tomcat.apache.org; Wed, 01 Feb 2006 11:35:01 +0200 (IST) Received: from [10.11.2.21] (Forwarded-For: [85.64.127.204]) by mss1.barak.net.il (mshttpd); Wed, 01 Feb 2006 11:35:01 +0200 Date: Wed, 01 Feb 2006 11:35:01 +0200 From: david ziants Subject: RE: Cannot transform and load jsp file with Tomcat under Eclipse To: "Caldarale, Charles R" , vinu@x-minds.org, Tomcat Users List Reply-to: dziants@013.net Message-id: <246619618e3.43e09ce5@default.domain> MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.1 HotFix 0.02 (built Aug 25 2004) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7bit Content-disposition: inline X-Accept-Language: en Priority: normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you for your responses Vinu and Chuck I got rid of the definition as Vinu suggested, and it seems that I do not have to have any context.xml in the META-INF for the app. The jsp file appears in my browser window, except it doesn't evaluate the jsp expression I include. Maybe you can tell me that I have a simple jsp error... As jsp works by creating an intermediate HttpServlet class, how can I view the source of this to work out what is going on? This problem was my original problem, which prompted me to try and add the servlet definitions. My simple jsp example is below. -- David Ziants dziants@013.net PS Please could responses also be CCed to my email address: dziants@013.net This is because I receive this discussion group in digest mode, and I don't know how frequently the archives are updated. ============================================================================================== <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> Insert title here The date is: <%=new java.util.Date().toString() %> More text -- David Ziants dziants@013.net ============================================================================================== Hi David, Just put your jsp files to 'D:\eclipse_ws_swing\MusarAvicha' directory and remove the showlogin_jsp showlogin_jsp 6 from your web.xml. Then try to access the jsp files thru the browser. - Regards Vinu David Ziants wrote: > This is the first time I have had to do my own configuration of tomcat > (5.5) using eclipse (3.1) and Java 5, and I am having a few teething > problems. > > Everything is installed under Windows XP. I just took the latest > release of Tomcat as I see there ought to be proper support for Java 5 > which I am using for my project. > > I wish to write a JSP and also a servlet, and I added markups to my > WEB-INF/web.xml : ============================================================================================== ----- Original Message ----- >From "Caldarale, Charles R" Date Tue, 31 Jan 2006 15:40:32 -0600 To Tomcat Users List Subject RE: Cannot transform and load jsp file with Tomcat under Eclipse > From: David Ziants [dziants@013.net] > Subject: Cannot transform and load jsp file with Tomcat under Eclipse > > I also added META-INF\context.xml file: > ========================================================== > > > ========================================================== The path attribute is not used when the tag is in META-INF/context.xml, nor when inside a conf/Catalina/[host_name]/[app_name].xml file. It may only be used when your is configured in server.xml, and then it gives the web-visible name of the app, not where the app is stored in your local file system. Perhaps you meant to use the docBase attribute. Suggest a close reading of the doc: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org