Re: class loaded twice when sharing wlfullclient.jar by two web apps

2010-03-08 Thread Konstantin Kolinko
2010/3/5 Michal Bunarowski : >> > ClassCastException occurs in my web app, because classloaders load >> > the same class twice, when two web apps share WebLogic >> wlfullclient.jar. >> > Any idea how to avoid that? Details below. >> >> Don't share the jar. Deploy a separate copy with each web appli

RE: class loaded twice when sharing wlfullclient.jar by two web apps

2010-03-05 Thread Michal Bunarowski
> > ClassCastException occurs in my web app, because classloaders load > > the same class twice, when two web apps share WebLogic > wlfullclient.jar. > > Any idea how to avoid that? Details below. > > Don't share the jar. Deploy a separate copy with each web application. We've been considering th

RE: class loaded twice when sharing wlfullclient.jar by two web apps

2010-03-05 Thread Michal Bunarowski
> > Reason: > > At the server startup, WebLogic GenericClassLoader (that is > > provided within wlfullclient.jar) is loaded and it sets > > WepApp1ClassLoader as its parent. > > Well that'll be your problem then. Why is it setting that classloader > - > what are you doing in WebApp1 to initialise

Re: class loaded twice when sharing wlfullclient.jar by two web apps

2010-03-05 Thread Mark Thomas
On 05/03/2010 08:17, Michal Bunarowski wrote: > ClassCastException occurs in my web app, because classloaders load > the same class twice, when two web apps share WebLogic wlfullclient.jar. > Any idea how to avoid that? Details below. Don't share the jar. Deploy a separate copy with each web app

Re: class loaded twice when sharing wlfullclient.jar by two web apps

2010-03-05 Thread Pid
On 05/03/2010 08:17, Michal Bunarowski wrote: ClassCastException occurs in my web app, because classloaders load the same class twice, when two web apps share WebLogic wlfullclient.jar. Any idea how to avoid that? Details below. Project set-up: - Tomcat 6.0.13 + Weblogic 10.0 - wlfullclient.jar