> -----Original Message----- > From: Martin Grigorov [mailto:[email protected]] > Sent: Friday, March 04, 2011 10:31 AM > To: [email protected] > Cc: Ladislav DANKO > Subject: Re: memory leak (solved) > > On Fri, Mar 4, 2011 at 11:27 AM, Ladislav DANKO > <[email protected]> wrote: > > > Solved: in log I have found this (was blind...): > > SEVERE: Exception starting filter WicketFilter > > java.lang.IllegalArgumentException: Mount path cannot be > under '/resources' > > > > but I don't know why this restriction... > > > > This path is special for resources managed by Wicket > (ResourceReferences). > This is configurable in Wicket 1.5.
no, this path is special for resources in my app :-) yes, now i know, i'm looking into AbstractRequestTargetUrlCodingStrategy.class and others. where to look into wicket 1.5 to see how it is configurable, please? > > > > Laco > > > > > > > > > -----Original Message----- > > > From: Ladislav DANKO [mailto:[email protected]] > > > Sent: Friday, March 04, 2011 8:13 AM > > > To: [email protected] > > > Subject: RE: memory leak > > > > > > and wicket is 1.4.16 :-) > > > > > > > > > > -----Original Message----- > > > > From: Ladislav DANKO [mailto:[email protected]] > > > > Sent: Friday, March 04, 2011 7:27 AM > > > > To: [email protected] > > > > Subject: memory leak > > > > > > > > Hi folks, > > > > > > > > I have JDK 1.6_20, Tomcat 6.0.29 and code: > > > > > > > > public class Start extends WebApplication { > > > > public Start() > > > > { > > > > } > > > > > > > > protected void init() > > > > { > > > > super.init(); > > > > > > > > mountBookmarkablePage("/index.html", Index.class); > > > > > > > > mountSharedResource("/resources/img/cover.jpg", > > > > new ResourceReference(Images.class, > > > > "cover.jpg").getSharedResourceKey()); > > > > > > > > > getMarkupSettings().setDefaultMarkupEncoding("UTF-8"); > > > > > > > > getRequestCycleSettings().setResponseRequestEncoding("UTF-8"); > > > > } > > > > > > > > public Class<Index> getHomePage() > > > > { > > > > return Index.class; > > > > } > > > > > > > > } > > > > > > > > When I deploy it then I get: > > > > INFO: Deploying web application archive ROOT.war > > > > 4.3.2011 7:22:14 org.apache.catalina.core.StandardContext start > > > > SEVERE: Error filterStart > > > > 4.3.2011 7:22:14 org.apache.catalina.core.StandardContext start > > > > SEVERE: Context [] startup failed due to previous errors > > > > 4.3.2011 7:22:14 org.apache.catalina.loader.WebappClassLoader > > > > clearReferencesThreads > > > > SEVERE: The web application [] appears to have started a > > > thread named > > > > [PageSavingThread-WicketFilter] but has failed to stop > it. This is > > > > very likely to create a memory leak. > > > > 329 [main] INFO org.apache.wicket.RequestListenerInterface - > > > > registered listener interface [RequestListenerInterface > > > > name=INewBrowserWindowListener, method=public abstract void > > > > org.apache.wicket.markup.html.INewBrowserWindowListener.onNewB > > > > rowserWindow() > > > > ] > > > > 329 [main] INFO org.apache.wicket.RequestListenerInterface - > > > > registered listener interface [RequestListenerInterface > > > > name=IResourceListener, method=public abstract void > > > > org.apache.wicket.IResourceListener.onResourceRequested()] > > > > 360 [main] INFO org.apache.wicket.RequestListenerInterface - > > > > registered listener interface [RequestListenerInterface > > > > name=ILinkListener, method=public abstract void > > > > > org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] > > > > 360 [main] INFO org.apache.wicket.RequestListenerInterface - > > > > registered listener interface [RequestListenerInterface > > > > name=IRedirectListener, method=public abstract void > > > > org.apache.wicket.IRedirectListener.onRedirect()] > > > > > > > > But when I remove: > > > > mountSharedResource("/resources/img/cover.jpg", new > > > > ResourceReference(Images.class, > > > "cover.jpg").getSharedResourceKey()); > > > > > > > > everythinkg works fine. > > > > > > > > Does someone know where is the problem? Googling throught > > > web and list > > > > not helps. > > > > > > > > Thanks, Laco > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > - > > > > To unsubscribe, e-mail: [email protected] > > > > For additional commands, e-mail: [email protected] > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > - To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
