Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48111 invoked from network); 1 Dec 2008 21:29:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 21:29:11 -0000 Received: (qmail 78464 invoked by uid 500); 1 Dec 2008 21:29:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78431 invoked by uid 500); 1 Dec 2008 21:29:10 -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 78420 invoked by uid 99); 1 Dec 2008 21:29:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 13:29:10 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anandhs@gmail.com designates 209.85.132.248 as permitted sender) Received: from [209.85.132.248] (HELO an-out-0708.google.com) (209.85.132.248) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 21:27:40 +0000 Received: by an-out-0708.google.com with SMTP id c38so1303820ana.9 for ; Mon, 01 Dec 2008 13:28:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=2yg/ZHj5Z2ja3obRddr9QddaRA/F034J4XdTcOA6Lcg=; b=QpeURRXhMxQ8QCUVEGtNLKgkucZ0wmKZQocU7+dWKjQOza1FvrIlagm5LEqwkbR6k0 7sYvd1eVTaYP3yjw3tO9cJk4Ygn5x+9ejNgd9it+KBNnInLodAbzUUSCDUPm4O8LQs9x Q7mLP9iQw3oblp34S4QLjDY4CApJ+E5Cs8U+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=rQVt80PxyflpOO06T+doTPxCmeNrAkLB/MFiANpk2GS2F5oPKUhb5q5zPHC22rhtCD PSZomqosVKU5s4dKnaywgDIKx33WZMaaJOMqK/ajbqMOQ4CZGMBfjEgEaCVnQVbJyode bUUwScIgG3teiCi4Mb1m4bfy2fz44N0m5cBGM= Received: by 10.100.138.10 with SMTP id l10mr6186223and.25.1228166896343; Mon, 01 Dec 2008 13:28:16 -0800 (PST) Received: by 10.100.172.4 with HTTP; Mon, 1 Dec 2008 13:28:16 -0800 (PST) Message-ID: <7dc70cc60812011328k3d21b876y57e88b92bbbfb3cb@mail.gmail.com> Date: Mon, 1 Dec 2008 13:28:16 -0800 From: "Anand HS" To: users@tomcat.apache.org Subject: What exactly happens when I configure a different host MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_117484_15207736.1228166896329" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_117484_15207736.1228166896329 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I am trying to deploy a simple war file into a freshly downloaded tomcat 6.0.18. I noticed a strange behavior when I tried to configure a virtual host by changing the Host Name in server.xml from the default "localhost" to " mydomain.com". The strange behavior goes like this 1. the web.xml inside my war has a servlet defined which is not presnet in the war file or any of the libraries tomcat loads. 2. With the default host name as localhost, tomcat does not thrown any "ClassNotFound" exception for not finding this missing servlet. 3. If i change the host name, tomcat throws a nice java.lang.ClassNotFoundException: com.psi.servlet.Log4jInitializerServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1094) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992) ( Log4jInitializerServlet is my servlet which is missing ). I can get rid of this error by removing the servlet inclusion block though. Can any one tell me why the localhost as Host name ignores this error. ? I can provide more details if wanted. Thanks, Anand ------=_Part_117484_15207736.1228166896329--