[jboss-dev-forums] [Design of POJO Server] - Re: AS 5 not reliably picking up changes in exploded EAR

jaikiran do-not-reply at jboss.com
Tue Apr 7 08:36:55 EDT 2009


Looking at the JIRA which started this Seam specific change https://jira.jboss.org/jira/browse/JBSEAM-3702 , there were 3 logs attached, out of which 2 issues are being addressed separately (https://jira.jboss.org/jira/browse/JBSEAM-4012) and there's no role of VFS in those issues.

The third exception in those logs relates to:

"alesj" wrote : 
  | Some apps, in this case it was Seam Wicket example app,
  | still want to do some resources lookup at undeploy.
  | An undeploy which was triggered by the app's dir/archive deletion from deploy/.
  | But since the app was deleted there is nowhere to do the lookup from. 

The exception stacktrace shows:

2008-11-14 14:14:03,874 INFO  [org.jboss.seam.navigation.Pages] (http-127.0.0.1-8080-21) no pages.xml file found: /WEB-INF/pages.xml
  | 2008-11-14 14:14:05,245 ERROR [org.apache.wicket.util.thread.Task] (ModificationWatcher Task) Unhandled exception thrown by user code in task ModificationWatcher
  | java.lang.RuntimeException: java.io.IOException: Child not found jboss-seam-wicket-booking.ear/jboss-seam-wicket-booking.war/WEB-INF/classes/org/jboss/seam/example/wicket/Home.html for FileHandler at 6861787[...]]
  | 	at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getLastModified(VirtualFileURLConnection.java:87)
  | 	at org.apache.wicket.util.resource.UrlResourceStream.lastModifiedTime(UrlResourceStream.java:256)
  | 	at org.apache.wicket.markup.MarkupResourceStream.lastModifiedTime(MarkupResourceStream.java:144)
  | 	at org.apache.wicket.util.watch.ModificationWatcher$1.run(ModificationWatcher.java:176)
  | 	at org.apache.wicket.util.thread.Task$1.run(Task.java:115)
  | 	at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.io.IOException: Child not found jboss-seam-wicket-booking.ear/jboss-seam-wicket-booking.war/WEB-INF/classes/org/jboss/seam/example/wicket/Home.html for FileHandler at 6861787[...]]
  | 	at org.jboss.virtual.VirtualFile.findChild(VirtualFile.java:431)
  | 	at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveVirtualFile(VirtualFileURLConnection.java:106)
  | 	at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:118)
  | 	at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getLastModified(VirtualFileURLConnection.java:83)
  | 	... 5 more
  | 2008-11-14 14:14:06,248 ERROR [org.apache.wicket.util.thread.Task] (ModificationWatcher Task) Unhandled exception thrown by user code in task ModificationWatcher
  | java.lang.RuntimeException: java.io.IOException: Child not found jboss-seam-wicket-booking.ear/jboss-seam-wicket-booking.war/WEB-INF/classes/org/jboss/seam/example/wicket/Home.html for FileHandler at 6861787[path= ...]]
  | 	at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getLastModified(VirtualFileURLConnection.java:87)
  | 

So there is some ModificationWatcher Task which is polling for any changes to some file, maybe to refresh some cache? If the entire application is deleted, does the ModificationWatcher Task even have to bother about the file change? Maybe we can just log this at DEBUG level instead of ERROR? 
>From what i see in the logs, the ModificationWatcher does the same as HDScanner in the AS does? So how does the HDScanner handle similar (deleted) app?


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224037#4224037

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224037



More information about the jboss-dev-forums mailing list