Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 31645 invoked from network); 26 Oct 2007 13:44:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 13:44:20 -0000 Received: (qmail 88955 invoked by uid 500); 26 Oct 2007 13:43:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 88930 invoked by uid 500); 26 Oct 2007 13:43:54 -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 88919 invoked by uid 99); 26 Oct 2007 13:43:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 06:43:54 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [63.138.212.166] (HELO mail3.benefitconceptsinc.com) (63.138.212.166) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 13:43:58 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Class loading issue Date: Fri, 26 Oct 2007 09:43:17 -0400 Message-ID: <40B0057E59252B40A70D1881216C4A0104348E55@mail3.benefitconceptsinc.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Class loading issue Thread-Index: AcgX1ioAfFxKs32HQ3S5YD/K3JOujg== From: "Tony Fountain" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org Windows 2003 Server Apache Tomcat 5.5.23 (running as Windows service) JVM 1.5.0_12b-04 (Sun) =20 In an attempt to have a specific web app load when Apache starts, I added the following element to the \WEB-INF\web.xml file for the appropriate servlet - 1. This works, but when the webapp loads, one of the classes it requires generates an error the first time the webapp is accessed via the browser. The class is contained in a JAR that resides in the \WEB-INF\lib folder. This webapp is not written by us, rather it's a product we purchased. At the suggestion of the vendor I moved the JAR file to the \Tomcat\common\lib folder and everything now works just fine. I've reviewed the documentation on class loading in Tomcat 5.5 but this still makes no sense to me in terms of why this happens and why moving it fixed it. According to this documentation, the \WEB-INF\lib solution should work just fine. Any thoughts? Note that if I do not attempt to load on startup then everything works fine (just takes several seconds for the webapp to load upon the initial access). =20 Thanks, Tony --------------------------------------------------------------------- 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