Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 44241 invoked from network); 1 Jun 2004 16:19:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jun 2004 16:19:15 -0000 Received: (qmail 14219 invoked by uid 500); 1 Jun 2004 16:19:05 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 14172 invoked by uid 500); 1 Jun 2004 16:19:04 -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 14154 invoked by uid 99); 1 Jun 2004 16:19:04 -0000 Received: from [66.33.216.24] (HELO smarty.dreamhost.com) (66.33.216.24) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 01 Jun 2004 09:19:04 -0700 Received: from strange.dreamhost.com (strange.dreamhost.com [66.33.193.57]) by smarty.dreamhost.com (Postfix) with ESMTP id CE4C213F649 for ; Tue, 1 Jun 2004 09:18:48 -0700 (PDT) Received: by strange.dreamhost.com (Postfix, from userid 7734) id C7B4F6AA1D; Tue, 1 Jun 2004 09:18:48 -0700 (PDT) Date: Tue, 1 Jun 2004 11:18:48 -0500 From: QM To: Tomcat Users List Subject: Re: Two hosts setup, jsp won't work! Message-ID: <20040601161848.GA29624@strange.dreamhost.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, Jun 01, 2004 at 11:48:45AM -0400, Nadia Kunkov wrote: : I run Tomcat5.0.24 on Fedora Core 1. I have two hosts defined in server.xml : in a following way: First things first -- if you're going to use multiple virtual hosts, you'd do well to either 1/ use separate appBase dirs, or 2/ disable autoDeploy and deployOnStartup for your elements. Otherwise, each vhost will deploy both webapps when it starts. : I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in : /var/tomcat5/webapps/WebTest2/WEB-INF/lib Are all of the classes unique between the jars? (That is, are there any classes defined in multiple jars?) If not, things could get messy down the line. To start debugging, you could disable the vhost for WebTest1 (just comment it out) and focus on WebTest2. Then, pare down the list of jarfiles in WebTest2/WEB-INF/lib. Confirm that each jar is indeed a valid file (a quick "jar -tf {file}" should do) and that the required class, and every class on which it depends, is available either in a JAR in WebTest2/WEB-INF/lib or a bare class in WebTest2/WEB-INF/classes. : I copied the above jars to /var/tomcat5/webapps/WebTest2/WEB-INF/classes just : in case and got the same error. No need to do this -- WEB-INF/classes will only load bare class files; jarfiles must exist in WEB-INF/lib. : Does this have anything to do with the hosts I've defined? Did I create a : wrong directory structure? The dirs look OK. If other JSPs compile without a problem, you can pretty much narrow it down to a missing/rogue jarfile or class. : Everything below /var/tomcat5/webapps is owned by tomcat5 user. My Tomcat is : running as root since I need it to be listening on port 80. Cat it be a : permissions problem? Probably not a permissions problem, but you probably don't want root running the Tomcat process. Once you've solved your immediate JSP problem, you may want to look into commons-daemon/jsvc. (This was discussed recently on the list; see the archives for details.) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org