>> Also, maybe an object is getting retrieved from the session and Websphere is 
>> trying to restore it?
> How can I be sure that my previous sessions have been cleared ?

Well its been a long time, Im sure the session would’ve cleared by now.
Have you read the documentation here:

https://portals.apache.org/jetspeed-2/deployguide/deploying-jetspeed-to-websphere.html#section_4_2
 
<https://portals.apache.org/jetspeed-2/deployguide/deploying-jetspeed-to-websphere.html#section_4_2>

Could it be possible that Websphere still has a class loader configured with 
the old jars?

> On Jan 9, 2017, at 5:59 AM, Thomas Leguyader <thomas-leguya...@sab2i.com> 
> wrote:
> 
> Hi,
> 
> First of all : Happy New Year and best wishes for the coming year !
> 
> Thank you David for your answer.
> 
>> Are you absolutely sure none of the 2.2.2 common shared jars are still in 
>> path?
> I've check this point again and again (before and after your response) 
> without finding any 2.2.2 jars in path.
> If there are 2.2.2 jars in path, they are really well hidden (or I may need 
> new glasses).
> 
>> Also, maybe an object is getting retrieved from the session and Websphere is 
>> trying to restore it?
> How can I be sure that my previous sessions have been cleared ?
> 
> Cordialement,
> Thomas LE GUYADER
> 
> -----Message d'origine-----
> De : DavidSeanTaylor [mailto:da...@bluesunrise.com]
> Envoyé : jeudi 8 décembre 2016 22:46
> À : Jetspeed Users List
> Objet : Re: Jetspeed 2.3.1 and Websphere 8.5
> 
>> Is someone encountered a similar probem with the 2.3.1 version and Websphere 
>> 8.5.5 ?
> 
> No, been many years since I worked with Websphere
> 
>> Any idea of how I can fix this ?
> 
> Im looking at trunk, in the JetspeedPrincipalManagementPortlet.java, line 165:
> 
> UserSubjectPrincipal currentUser = 
> (UserSubjectPrincipal)getPortletRequest().getUserPrincipal();
> 
> in the debugger, i can see that currentUser is a 
> org.apache.jetspeed.security.UserSubjectPrincipalImpl, which implements 
> UserSubjectPrincipal. org.apache.jetspeed.security.impl.UserImpl is a 
> sub-object of currentUser. It cannot be assigned to UserSubjectPrincipal 
> interface classes, and should never happen
> 
> Are you absolutely sure none of the 2.2.2 common shared jars are still in 
> path?
> Also, maybe an object is getting retrieved from the session and Websphere is 
> trying to restore it?
> 
>> On Dec 7, 2016, at 5:36 AM, Thomas Leguyader <thomas-leguya...@sab2i.com> 
>> wrote:
>> 
>> Hi,
>> 
>> I have a portal based on Jetspeed 2.2.2 and it works great. J
>> 
>> I decided to do an upgrade from Jetspeed 2.2.2 to Jetspeed 2.3.1.
>> It still works great on Tomcat (7.0.63) but I have a problem with the role 
>> manager portlet from j2-admin 2.3.1 if I use Websphere 8.5 (8.5.5.9).
>> 
>> The problem is the following :
>> When I go to the role management portlet 
>> (j2-admin::JetspeedPrincipalManagementRolesPortlet), I have an “Internal 
>> error” with a link “Return to home page” in the portlet.
>> 
>> If I check the logs, I can see a Error 
>> “org.apache.wicket.WicketRuntimeException: Can't instantiate page using 
>> constructor public 
>> org.apache.jetspeed.portlets.security.JetspeedPrincipalManagementPortlet()” 
>> that is caused by a “java.lang.ClassCastException: 
>> org.apache.jetspeed.security.impl.UserImpl incompatible with 
>> org.apache.jetspeed.security.UserSubjectPrincipal” exeption.
>> 
>> You will find the full exception stack in attachement.
>> 
>> I’ve done some vérifications :
>> -          org.apache.jetspeed.security.impl.UserImpl is in the 
>> jetspeed-security-2.3.1.jar that is in the *-portal.war
>> -          org.apache.jetspeed.security.UserSubjectPrincipal is in the 
>> jetspeed-api-2.3.1.jar that is in an attached sharedLib
>> -          I have checked the interfaces and super classes of theses classes 
>> and it shouldn’t launch a ClassCastException
>> 
>> I’ve analyzed the classloading logs and the versions of the jars and classes 
>> that are loaded seem to be OK.
>> I really don’t understand what is going wrong.
>> 
>> Is someone encountered a similar probem with the 2.3.1 version and Websphere 
>> 8.5.5 ?
>> Any idea of how I can fix this ?
>> 
>> Cordialement,
>> Thomas LE GUYADER
>> 
>> 
>> 
>> Pensez à l'environnement, n'imprimez ce message que si nécessaire ! Please, 
>> consider the environment before printing this email.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
> 
> 
> 
> 
> Email secured by Check Point
> 
> 
> [http://www.sab2i.com/fichiers/20130204105607_ecologie.png] Pensez à 
> l'environnement, n'imprimez ce message que si nécessaire ! Please, consider 
> the environment before printing this email.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
> For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
> 

Reply via email to