Hi,
I have two portlet application project.
First portlet application project has a generic portlet used in second application project as inner portlet (using include portlet component).
The communication between the inner & outer portlets is done by passing a databean (POJO class object) in session (using faces context).
This data bean has been exported as jar and put in the server (ex. C:\softwareAG\NWS\lib)
From server lib, both portlet application uses the databean.
In outer portlet’s init method, I am creating an object of data bean & putting it into the session,
In the inner portlet’s init method, I try to retrieve the data bean from the session.
In doing so I getting class cast exception.
It seems that class loader is loading two separate instances of the data bean?
What can be the reason behind it?
Appreciate your input!
with regards,
Gohil