|
From: Mike Cannon-B. <mi...@at...> - 2003-12-06 01:09:43
|
I believe you just need to speficy -userThreads on the command line to make this work. (Thread context classloaders in user spawned threads) Cheers, Mike On 6/12/03 5:00 AM, "Peter den Haan" (pe...@de...) penned the words: > We found another Orion 2.0.2 bug recently: when deploying two Spring-based > webapps on the same Orion server, we got into major classloading issues > where loaded in one application would end up in the other. > > The problem turned out to be that, Orion does not seem to correctly set the > Thread context classloader for the second and subsequent webapps that it > initialises. Because Spring uses the context classloader throughout this > means that any class loaded by name during Spring initialisation will get > loaded from the wrong webapp. Oops. > > We ended up creating a version of > org.springframework.web.context.ContextLoaderServlet with one extra line in > init(): > > > Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); > > Suddenly all our problems disappeared. > > - Peter > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |