[
https://issues.apache.org/jira/browse/WICKET-3957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081875#comment-13081875
]
Todd Heaps commented on WICKET-3957:
------------------------------------
Symptoms: Make a change to styles.css in the quick start (I changed the #hd
background-color). After typing CTRL-S to save the change the server console
immediately begins to display the following:
13:36:16,054 WARN [UrlResourceStream] getLastModified for
vfsfile:/C:/dev/file-locking/target/locks.war/WEB-INF/classes/com/westring/HomePage.html
failed: Child not found locks.war/WEB-INF/classes/com/westring/HomePage.html/
for FileHandler@1797082530[path= context=file:/C:/dev/file-locking/target/
real=file:/C:/dev/file-locking/target/], available children:
[FileHandler@1356070302[path=classes context=file:/C:/dev/file-locking/target/
real=file:/C:/dev/file-locking/target/classes/],
FileHandler@229620103[path=locks.war context=file:/C:/dev/file-locking/target/
real=file:/C:/dev/file-locking/target/locks.war/],
FileHandler@196957462[path=m2e-wtp context=file:/C:/dev/file-locking/target/
real=file:/C:/dev/file-locking/target/m2e-wtp/],
FileHandler@991763807[path=test-classes
context=file:/C:/dev/file-locking/target/
real=file:/C:/dev/file-locking/target/test-classes/]]
At the same time, the following error appears in the Eclipse Problems tab:
"The project was not built due to "Could not delete
'/file-locking/target/locks.war/WEB-INF/classes/com'.". Fix the problem, then
try refreshing this project and building it since it may be inconsistent"
At this point, the sever must be stopped, and the Eclipse project refreshed,
which, because of the file lock, forces a rebuild of the project. Once the
rebuild is done and the server restarted and site re-deployed, the change to
the style sheet will show up. Our project is fairly sizeable, so the whole
process takes 3 to 4 minutes for every CSS & JavaScript file change we save.
Regarding JBoss 5.1.0.GA: Agreed that it isn't the newest, but I'm guessing it
is could be the most widely used currently. Irregardless, I understand the
expectation of duplicating the problem with the very latest of everything.
Unfortunately for us, this is a size-able web site that we hope to deploy in
production sometime in the next few months. It is being converted from
Struts/JSP to Wicket. JBoss 7.X just came out VERY recently and doesn't appear
to be production ready - from comments I've read, which, because of time-lines
for us means it is hands off until later.
I will attempt to duplicate the problem with JBoss 6.X, and if time, 7.X. My
main concern is that SOMETHING seems to be keeping file(s) open in 1.5, but
that, due to the circumstances of file system leniency in Linux as an operating
system and presumably Jetty, the problem doesn't manifest itself - but that
ultimately other production-related problems could arise as a result as 1.5 use
becomes more widespread.
> PackageResource file locking problem
> ------------------------------------
>
> Key: WICKET-3957
> URL: https://issues.apache.org/jira/browse/WICKET-3957
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.5-RC5.1
> Environment: Windows 7, JBoss 5.1.0.GA, Eclipse Helios/Indigo
> Reporter: Todd Heaps
>
> After moving from 1.4.x to 1.5-RC5.1, updates to resources loaded via
> IHeaderContributor.renderHead() cause file and/or directory locking problems
> on individual files and/or at the base package directory level. The resulting
> locking problems disallow changes to resources without stopping the server,
> followed by a project refresh, rebuild, and server restart. This obviously
> slows down development time quite severely.
> Comparable quick starts generated from 1.4.17 and 1.5-SNAPSHOT demonstrate
> the problem in 1.5 but no problem in 1.4.17. Similar testing in Linux reveals
> no problems, nor does there appear to be a problem when using the generated
> quick starts with Jetty. This seems to be a JBoss and Windows with Wicket 1.5
> specific problem.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira