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... Laco > -----Original Message----- > From: Ladislav DANKO [mailto:em...@1ac0.net] > Sent: Friday, March 04, 2011 8:13 AM > To: users@wicket.apache.org > Subject: RE: memory leak > > and wicket is 1.4.16 :-) > > > > -----Original Message----- > > From: Ladislav DANKO [mailto:em...@1ac0.net] > > Sent: Friday, March 04, 2011 7:27 AM > > To: users@wicket.apache.org > > 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: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org