What you could do is modify the wicket source and print a stacktrace on that info statement so that you
can see where it comes from
On 6/29/06, Marco Geier <[EMAIL PROTECTED]> wrote:
Well,
i just checked (via JConsole) all threads on the production VM, but
there is no thread called "ModificationWatcherTask" or so. (which sould
be there if the modificationWatcher would be running.) Allright, so far
this is what i would expect from the "DEPLOYMENT" setting in web.xml.
But still i get periodical messages like this:
2006-06-29 12:39:25,938 INFO [wicket.markup.MarkupCache] Loading markup
from
jar:file:/opt/jboss-4.0.4.CR2/server/koeln/deploy/hfax.ear/hfax.war/WEB-INF/lib/wicket-1.2.jar!/wicket/markup/html/panel/FeedbackPanel.html
2006-06-29 14:22:46,021 INFO [wicket.markup.MarkupCache] Loading markup
from
jar:file:/opt/jboss-4.0.4.CR2/server/koeln/deploy/hfax.ear/hfax.war/WEB-INF/lib/wicket-1.2.jar!/wicket/markup/html/panel/FeedbackPanel.html
2006-06-29 15:05:08,676 INFO [wicket.markup.MarkupCache] Loading markup
from
jar:file:/opt/jboss-4.0.4.CR2/server/koeln/deploy/hfax.ear/hfax.war/WEB-INF/lib/wicket-1.2.jar!/wicket/markup/html/panel/FeedbackPanel.html
(Again: the file -here wicket-1.2.jar- did NOT change at all, only the
system time might change every full hour due to some cron-trigger NTP
timesyncing)
Is there some markup-cache eviction?
Any ideas?
Marco
Johan Compagner wrote:
> if this:
>
> /**
> * @see wicket.settings.IResourceSettings#setResourcePollFrequency(
> wicket.util.time.Duration)
> */
> public void setResourcePollFrequency(final Duration
> resourcePollFrequency)
>
>
> and then:
>
> /**
> * @see wicket.settings.IResourceSettings#getResourceWatcher()
> */
> public ModificationWatcher getResourceWatcher()
> {
> if (resourceWatcher == null)
> {
> final Duration pollFrequency = getResourcePollFrequency();
> if (pollFrequency != null)
> {
> resourceWatcher = new ModificationWatcher(pollFrequency);
> }
> }
> return resourceWatcher;
> }
>
> will make the modification watcher.
>
> johan
>
>
> On 6/29/06, Marco Geier < [EMAIL PROTECTED]> wrote:
>>
>> hi johan,
>>
>> i didn't make any special code about resource polling and my web.xml is
>> set to "DEPLOYMENT".
>>
>> And the funny thing is that wickets reloads the markup even the file for
>> sure didn't change / wasn't touched.
>>
>> Hmm, well, thinking about that i have to admit that i have a cron job
>> that adjust system-time every hour, so that might be the reason for
>> wicket thinking the file was changed.
>>
>> But then still in my web.xml is
>>
>> <init-param>
>> <param-name>configuration</param-name>
>> <param-value>DEPLOYMENT</param-value>
>> </init-param>
>>
>> so why does the "polling-thread" get started?
>> Could you please point me to the code that is responsible for the
>> polling, so i could try to debug it....
>>
>> Marco
>>
>> Johan Compagner wrote:
>> > if you didn't program yourself somewhere in the code that he needs
>> to do
>> > resource polling
>> > then this isn't possible because then we really don't check it.
>> > Isn't it really a poll for a new resource or a new resouce for a
>> different
>> > locale?
>> > Or is the webapp or context not restarted suddenly somehow?
>> >
>> > If the polling is off the markup cache will never be flushed so it will
>> > never be reloaded again.
>> >
>> > johan
>> >
>> >
>> > On 6/29/06, Marco Geier <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Even with "DEPLOYMENT" in web.xml, wicket reloads markup "from time to
>> >> time". ( i didn't yet find any rules / corellations for these sporadic
>> >> reloads, but they do happen - get logged)
>> >> This doesn't happen on my WinXp based development platform, but on the
>> >> FedoraCore4 based deployment platform.
>> >>
>> >> Any ideas what could cause this reloads?
>> >>
>> >> Rgds,
>> >>
>> >> M.
>> >>
>> >>
>> >> Johan Compagner wrote:
>> >> > and that shouldn't be called by yourself if possible,
>> >> > Just set the web.xml property or the system property to development.
>> >> >
>> >> > johan
>> >> >
>> >> >
>> >> > On 6/19/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:
>> >> >>
>> >> >> public void init()
>> >> >> {
>> >> >> configure("development", "/");
>> >> >>
>> >> >> > }
>> >> >>
>> >> >>
>> >> >> -Igor
>> >> >>
>> >> >>
>> >> >> On 6/19/06, Stefan Arentz < [EMAIL PROTECTED]> wrote:
>> >> >> >
>> >> >> > The Wiki contains this:
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > Sidenote: To see changes to template files immediatelly, overload
>> >> the
>> >> >> > init() method of the WebApplication class by specifying that you
>> are
>> >> >> > in development mode - remember to comment out in production:
>> >> >> >
>> >> >> > // the second parameter is the path to your template files
>> >> >> > // prefixed by wicket with the web root directory (e.g.
>> /webapp)
>> >> >> > // (Default wicket configuration assumed)
>> >> >> >
>> >> >> > public void init()
>> >> >> > {
>> >> >> > getSettings().configure("development", "/");
>> >> >> > }
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > But .. this doesn't work in 1.2. The getSettings method is
>> >> deprecated.
>> >> >> > What should I use instead?
>> >> >> >
>> >> >> > S.
>> >> >> >
>> >> >> >
>> >> >> > _______________________________________________
>> >> >> > Wicket-user mailing list
>> >> >> > [email protected]
>> >> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> _______________________________________________
>> >> >> Wicket-user mailing list
>> >> >> [email protected]
>> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> >
>> >> > Using Tomcat but need to do more? Need to support web services,
>> >> security?
>> >> > Get stuff done quickly with pre-integrated technology to make your
>> job
>> >> easier
>> >> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> >> Geronimo
>> >> >
>> >>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >> >
>> >> >
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> >
>> >> > _______________________________________________
>> >> > Wicket-user mailing list
>> >> > [email protected]
>> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >> Using Tomcat but need to do more? Need to support web services,
>> security?
>> >> Get stuff done quickly with pre-integrated technology to make your job
>> >> easier
>> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> >> Geronimo
>> >>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >> _______________________________________________
>> >> Wicket-user mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > Using Tomcat but need to do more? Need to support web services,
>> security?
>> > Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Wicket-user mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
> ------------------------------------------------------------------------
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
