Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 45153 invoked from network); 19 May 2006 08:43:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2006 08:43:23 -0000 Received: (qmail 57129 invoked by uid 500); 19 May 2006 08:43:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 57110 invoked by uid 500); 19 May 2006 08:43:09 -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 57099 invoked by uid 99); 19 May 2006 08:43:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 01:43:09 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of adamm@blic.net designates 217.23.192.12 as permitted sender) Received: from [217.23.192.12] (HELO ogre-out.blic.net) (217.23.192.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 01:43:08 -0700 Received: (qmail 6604 invoked from network); 19 May 2006 08:42:46 -0000 Received: from hyperion.blic.net ([217.23.192.10]) (envelope-sender ) by ogre-out.blic.net (BLIC.NET EMS Outgoing MX) with SMTP for ; 19 May 2006 08:42:46 -0000 Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: To: 'Tomcat Users List' Subject: Virtual Host problem with classpath Reply-To: adamm@blic.net Content-Type: text/plain X-Mailer: BLIC.NET/WM v2.1 X-Origin: 81.93.75.129 X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20060519084309.48CA010FB011@asf.osuosl.org> Date: Fri, 19 May 2006 01:43:09 -0700 (PDT) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Short description : Without virtual host everything works fine. But, when I set my Virtual Host http://www.mysite.com then http://www.mysite.com/widget/index.jsp doesn't find imported classes and can't compile. Longer description : In server.xml I have something like : When I access http://www.mysite.com/index.jsp everything is OK, but when I try to access http://www.mysite.com/widget/index.jsp I've got classpath related problem : *exception* org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 14 in the jsp file: /index.jsp Generated servlet error: common.MyCommonClass cannot be resolved In the begin of mysite/widget/index.jsp I have import="common.*"; So Tomcat don't look for classes where I expect it to seek. How to solve this problem ? I played a bit with Context tag but without success. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org