Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 17235 invoked from network); 18 Aug 2006 18:56:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 18:56:30 -0000 Received: (qmail 51876 invoked by uid 500); 18 Aug 2006 18:56:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 51849 invoked by uid 500); 18 Aug 2006 18:56:18 -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 51837 invoked by uid 99); 18 Aug 2006 18:56:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 11:56:18 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 11:56:17 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GE9Vd-0005Y2-AW for users@tomcat.apache.org; Fri, 18 Aug 2006 11:55:57 -0700 Message-ID: <5875585.post@talk.nabble.com> Date: Fri, 18 Aug 2006 11:55:57 -0700 (PDT) From: chavalitt To: users@tomcat.apache.org Subject: Re: Urgent! Compile JSP Problem In-Reply-To: <44E09D64.9060204@cornell.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <44E09D64.9060204@cornell.edu> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've just fixed this problem on my server. It's about the different context between tomcat 5.0.x and 5.5.x in server.xml of tomcat 5.5.x, you should not input appBase="...", delete this attribute out. Then in /conf/Catalina/[Host]/ROOT.xml , put the docBase="..." here. Then everything should work fine. David Smith-2 wrote: > > Another on this list had the same problem. I'm starting to wonder if > Jasper has a problem loading non-traditional package names (ie those not > starting in java, javax, org, edu, com, etc., ...). > > --David > > Kathy Lo wrote: > >> Dear, >> >> I encounter a strange problem. >> >> I developed a web application using tomcat 5.5.17 and jdk-1.5.0_06 in >> Linux Fedora Core 4. >> >> I wrote some JSP files in the following directory structure >> >> /usr/apache-tomcat-5.5.17/webapps/test/index.jsp >> /usr/apache-tomcat-5.5.17/webapps/test/error/get_ref_fail.jsp >> /usr/apache-tomcat-5.5.17/webapps/test/ok/gen_file_ok.jsp >> >> In all of these JSP file, i imported "utils.*" package and use >> "UserSession" class inside this package. >> >> "utils" package is located in the following directory >> >> /usr/apache-tomcat-5.5.17/webapps/test/WEB-INF/classes/utils/UserSession.class >> >> >> And, i edit server.xml to set the URL of this web application as >> following >> >> > workDir="/usr/apache-tomcat-5.5.17/webapps/test/work" reloadable=yes >> /> >> >> When I load the web application, index.jsp can be compiled and loaded >> correctly. When I load get_ref_fail.jsp using the following URL >> >> www.abc.org/error/get_ref_fail.jsp, or, www.abc.org/ok/gen_file_ok.jsp >> >> "Unable to compile JSP" error occurred and the server reported that it >> cannot resolve "UserSession" class. >> >> This problem is only occurred when I load JSP from /error or /ok >> subdirectory. When I load JSP from root directory (i.e. >> /usr/apache-tomcat-5.5.17/webapps/test), this problem disappear. >> >> How I can solve this problem? >> >> Please help me! >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Urgent%21-Compile-JSP-Problem-tf2103451.html#a5875585 Sent from the Tomcat - User forum at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org