You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2011/09/23 18:58:26 UTC

[jira] [Commented] (TAP5-1336) Changed classes do not reload under Tomcat

    [ https://issues.apache.org/jira/browse/TAP5-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113556#comment-13113556 ] 

Hudson commented on TAP5-1336:
------------------------------

Integrated in tapestry-trunk-freestyle #535 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/535/])
    TAP5-1336: Changed classes do not reload under Tomcat

hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1174873
Files : 
* /tapestry/tapestry5/trunk/plastic/src/main/java/org/apache/tapestry5/internal/plastic/PlasticInternalUtils.java


> 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
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.3
>
>         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