Live Class Reloading not working using mvn:jetty run
----------------------------------------------------
Key: TAP5-1771
URL: https://issues.apache.org/jira/browse/TAP5-1771
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-ioc
Affects Versions: 5.2.2
Reporter: Stan S
Assignee: Howard M. Lewis Ship
Fix For: 5.3
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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira