> > 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
> > 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
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 is placed in \lib.
- two web apps are deployed