Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 64114 invoked from network); 4 Oct 2008 15:36:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Oct 2008 15:36:20 -0000 Received: (qmail 7144 invoked by uid 500); 4 Oct 2008 15:36:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 7111 invoked by uid 500); 4 Oct 2008 15:36:07 -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 7100 invoked by uid 99); 4 Oct 2008 15:36:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Oct 2008 08:36:07 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [67.222.38.29] (HELO outbound-mail-129.bluehost.com) (67.222.38.29) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 04 Oct 2008 15:35:03 +0000 Received: (qmail 32695 invoked by uid 0); 4 Oct 2008 15:34:35 -0000 Received: from unknown (HELO box309.bluehost.com) (69.89.31.109) by outboundproxy4.bluehost.com with SMTP; 4 Oct 2008 15:34:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=agileitinc.com; h=Received:Received:Message-ID:Date:Subject:From:To:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:Importance:X-Identified-User; b=M6cdL98vkNdmGlYzkSHt2FO1nY/jyBDRWFc0rczT3Jlw6jrTwytCi/E2bGXhVH79L1nn57BwgTsAWdAumIcP5kKfZ13qwv07cKAour+T3NR6btjo4+x/P9F/F9xucLbM; Received: from localhost ([127.0.0.1] helo=agileitinc.com) by box309.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1Km99P-0003NI-LV for users@tomcat.apache.org; Sat, 04 Oct 2008 09:34:35 -0600 Received: from 68.199.74.47 ([68.199.74.47]) (SquirrelMail authenticated user ram.sriharsha@agileitinc.com) by agileitinc.com with HTTP; Sat, 4 Oct 2008 09:34:35 -0600 (MDT) Message-ID: <58795.68.199.74.47.1223134475.squirrel@agileitinc.com> Date: Sat, 4 Oct 2008 09:34:35 -0600 (MDT) Subject: adding servlet definition to context on the fly :Tomcat 5.5 From: ram.sriharsha@agileitinc.com To: users@tomcat.apache.org User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Identified-User: {1027:box309.bluehost.com:agileiti:agileitinc.com} {sentby:program running on server} X-Virus-Checked: Checked by ClamAV on apache.org Hi, I had written some code to dynamically add a servlet to a context in a deployed applicaiton in Tomcat 4.1. This code basically uses the catalina loader to obtain the server->engine->host->and context, and invokes the addChild method after configuring a StandardWwrapper to represent the servlet I am adding. This all works fine in Tomcat4.1 and I am able to access the servlet through the right url immediately, without having to restart Tomcat. However, I tried the same code in Tomcat 5.5 and it does not work. It does not throw any errors, but simply does not recognize the url pattern once i actually try to invoke the new servlet. I was wondering if anyone had tried this before, and if so if they have any suggestions as to why this does not work in Tomcat 5.5? More generally I am looking for a way to dynamically add a servlet definition in Tomcat 5.5. This can be done by editing the web.xml in case the application is deployed unpacked..however if the application is packed as a WAR, then I cannot edit the web.xml on the fly and wait for the watched resource mechanism to take effect. Thanks Ram --------------------------------------------------------------------- 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