How does the code look like to kill off the ehcache Thread.... I tried
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); LogFactory.release(contextClassLoader); but it doesn't work igor.vaynberg wrote: > > On 6/30/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> If i deploy the war file and run it, it works fine for the first time. >> But >> if >> i reload the exploded directory in glassfish, it gave me this strange >> error. >> So Im wondering if anybody know what this error means... What strange is, >> this doesn't happen in tomcat 5.1.x.x but in glassfish. And it 's runnin >> under wicket-xxxx-1.3.0-incubating-SNAPSHOT.jar libraries. Any idea?? >> >> >> [#|2007-06-30T19:17: >> 53.361+0800|WARNING|sun-appserver-pe9.0|javax.enterprise.sys >> tem.stream.err|_ThreadID=14;_ThreadName=Store >> wicket.contrib.phonebook.Contact E >> xpiry >> Thread;_RequestID=8d6d029e-e183-4007-92d1-317931484a3d;|java.lang.NullPoin >> terException >> at org.apache.log4j.LogManager.getLogger(LogManager.java:188) >> at org.apache.log4j.Logger.getLogger(Logger.java:104) >> at >> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.jav >> a:283) >> at >> org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogge >> r.java:293) >> at >> net.sf.ehcache.store.DiskStore.expiryThreadMain(DiskStore.java:738) >> at net.sf.ehcache.store.DiskStore.access$700(DiskStore.java:60) >> at >> net.sf.ehcache.store.DiskStore$ExpiryThread.run(DiskStore.java:893) > > > looks like it all starts from a thread ehcache spins off. maybe what you > should do is write a servlet context listener and properly shutdown > ehcache > when your application goes down so it kills that thread cleanly. > > -igor > > > > > |#] >> -- >> View this message in context: >> http://www.nabble.com/Error-reloading-wicket-phonebook---wicket1.3-in-glassfish-tf4004493.html#a11372841 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Error-reloading-wicket-phonebook---wicket1.3-in-glassfish-tf4004493.html#a11376944 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user