Skip to Content
0
Former Member
Nov 24, 2004 at 04:37 PM

ClassCastException after redeploy of component

16 Views

We are developing simple component(Iview) , using session and component context beans and one jsp page.

After <u>second</u> deploy(we did not make "clean" or "delete" of previously deployed par) of the par file, we have :

ClassCastException when try to assign bean from component context to local variable:

We have exception in follow code:

XBean myXBean = null;

public void doInitialization() throws PageException {

.....//here error:

myXBean=(XBean)myComponentContext.getValue

("myXBeanName");

....

}

It seems this bean exists in component context , but this is already bean of other type(different Class Loaders?).