Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 88679 invoked from network); 24 Jul 2006 15:20:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 15:20:40 -0000 Received: (qmail 58400 invoked by uid 500); 24 Jul 2006 15:20:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58383 invoked by uid 500); 24 Jul 2006 15:20:26 -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 58300 invoked by uid 99); 24 Jul 2006 15:20:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 08:20:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dhall@utrs.com designates 146.145.175.13 as permitted sender) Received: from [146.145.175.13] (HELO mail1.utrs.com) (146.145.175.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 08:20:24 -0700 Received: from Darrenh7485 [192.168.0.240] by mail1.utrs.com with ESMTP (SMTPD-9.04) id A51B07BC; Mon, 24 Jul 2006 11:19:55 -0400 From: "Darren Hall" To: "'Tomcat Users List'" Subject: ClassNotFound - Is WEB-INF/lib in my app's classpath? Date: Mon, 24 Jul 2006 11:18:38 -0400 Message-ID: <016e01c6af34$7ce8ce70$800101df@utrsch.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <4eedb92a0607191456r6fc71074ja38cc71752575066@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war deploy feature in the manager. The application (lets call it 'foo') shows up in the manager as '/foo', = so I know that it deploys. When I look in catalina.log, I see a ClassNotFound exception, alerting me that the ClassLoader wasn't able to find my ControllerServlet class. Here is the error from Catalina.log: 2006-07-24 09:38:46,987 DEBUG org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Sending application start events 2006-07-24 09:38:46,987 DEBUG org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Starting filters 2006-07-24 09:38:47,002 INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Marking servlet controller as unavailable 2006-07-24 09:38:47,002 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - = Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@1c92535 com.abc.framework.controller.ControlServlet java.lang.ClassNotFoundException: com.abc.framework.controller.ControlServlet My ControlServlet class is located in this jar file webapps/foo/WEB-INF/lib/abc.jar in the package com.abc.framework.controller;. Are the jar files in WEB-INF/lib included in my application's classpath = by default? Do I need to make a classpath change somewhere? Is the fact = that WEB-INF/lib not show up in the repositories listing above meaningful? Why can't Tomcat's classloader find my ControlServlet class? Thanks, Darren --------------------------------------------------------------------- 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