Return-Path: X-Original-To: apmail-tapestry-dev-archive@www.apache.org Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C07809E76 for ; Fri, 23 Sep 2011 16:22:47 +0000 (UTC) Received: (qmail 37432 invoked by uid 500); 23 Sep 2011 16:22:47 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 37392 invoked by uid 500); 23 Sep 2011 16:22:47 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 37384 invoked by uid 99); 23 Sep 2011 16:22:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 16:22:47 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 16:22:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2F75AAE5D7 for ; Fri, 23 Sep 2011 16:22:26 +0000 (UTC) Date: Fri, 23 Sep 2011 16:22:26 +0000 (UTC) From: "Howard M. Lewis Ship (JIRA)" To: commits@tapestry.apache.org Message-ID: <662697874.7076.1316794946191.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <451844.6201288863943791.JavaMail.jira@thor> Subject: [jira] [Updated] (TAP5-1336) Changed classes do not reload under Tomcat MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TAP5-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Howard M. Lewis Ship updated TAP5-1336: --------------------------------------- Summary: Changed classes do not reload under Tomcat (was: Components / pages don't reload correctly under tomcat) > Changed classes do not reload under Tomcat > ------------------------------------------ > > Key: TAP5-1336 > URL: https://issues.apache.org/jira/browse/TAP5-1336 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-ioc > Affects Versions: 5.2.2 > Reporter: Denis Delangle > Attachments: patch_tomcat_reload.txt > > > I am using eclipse, with maven plugin m2eclipse. > When I launch tomcat with tomcat-maven-plugin (V 1.1), pages don't reload when I modify them. I have to restart my web server to see the changes. > What I noticed when I modify a page : > * Tapestry is notified of a modification of the class file > * It flushes the old page instance and tries to reload the class file > * It in fact reloads the old version of the file -> it seems that Tomcat classloader gives the old class file inputStream in getResourceAsStream methods > I made a modification in ClassFactoryClassPool to get a clean new InputStream from the classFile, that fixed my issue, now pages are well reloaded when I modify them under Tomcat. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira