Re: Jetspeed 2.3.1 and Websphere 8.5
DavidSeanTaylor <[email protected]> Mon, 9 Jan 2017 17:59:37 -0800
| Newsgroups | gmane.comp.jakarta.jetspeed.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_DB9B023D-6197-431E-9C73-2C20786F750D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >> 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=E2=80=99ve cleared = by now. Have you read the documentation here: = https://portals.apache.org/jetspeed-2/deployguide/deploying-jetspeed-to-we= bsphere.html#section_4_2 = <https://portals.apache.org/jetspeed-2/deployguide/deploying-jetspeed-to-w= ebsphere.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 = <[email protected]> wrote: >=20 > Hi, >=20 > First of all : Happy New Year and best wishes for the coming year ! >=20 > Thank you David for your answer. >=20 >> 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). >=20 >> 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 ? >=20 > Cordialement, > Thomas LE GUYADER >=20 > -----Message d'origine----- > De : DavidSeanTaylor [mailto:[email protected]] > Envoy=C3=A9 : jeudi 8 d=C3=A9cembre 2016 22:46 > =C3=80 : Jetspeed Users List > Objet : Re: Jetspeed 2.3.1 and Websphere 8.5 >=20 >> Is someone encountered a similar probem with the 2.3.1 version and = Websphere 8.5.5 ? >=20 > No, been many years since I worked with Websphere >=20 >> Any idea of how I can fix this ? >=20 > Im looking at trunk, in the JetspeedPrincipalManagementPortlet.java, = line 165: >=20 > UserSubjectPrincipal currentUser =3D = (UserSubjectPrincipal)getPortletRequest().getUserPrincipal(); >=20 > 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 >=20 > 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? >=20 >> On Dec 7, 2016, at 5:36 AM, Thomas Leguyader = <[email protected]> wrote: >>=20 >> Hi, >>=20 >> I have a portal based on Jetspeed 2.2.2 and it works great. J >>=20 >> 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). >>=20 >> The problem is the following : >> When I go to the role management portlet = (j2-admin::JetspeedPrincipalManagementRolesPortlet), I have an = =E2=80=9CInternal error=E2=80=9D with a link =E2=80=9CReturn to home = page=E2=80=9D in the portlet. >>=20 >> If I check the logs, I can see a Error = =E2=80=9Corg.apache.wicket.WicketRuntimeException: Can't instantiate = page using constructor public = org.apache.jetspeed.portlets.security.JetspeedPrincipalManagementPortlet()= =E2=80=9D that is caused by a =E2=80=9Cjava.lang.ClassCastException: = org.apache.jetspeed.security.impl.UserImpl incompatible with = org.apache.jetspeed.security.UserSubjectPrincipal=E2=80=9D exeption. >>=20 >> You will find the full exception stack in attachement. >>=20 >> I=E2=80=99ve done some v=C3=A9rifications : >> - 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=E2=80=99t launch a ClassCastException >>=20 >> I=E2=80=99ve analyzed the classloading logs and the versions of the = jars and classes that are loaded seem to be OK. >> I really don=E2=80=99t understand what is going wrong. >>=20 >> 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 ? >>=20 >> Cordialement, >> Thomas LE GUYADER >>=20 >>=20 >>=20 >> Pensez =C3=A0 l'environnement, n'imprimez ce message que si = n=C3=A9cessaire ! Please, consider the environment before printing this = email. >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: = [email protected] >=20 >=20 >=20 >=20 > Email secured by Check Point >=20 >=20 > [http://www.sab2i.com/fichiers/20130204105607_ecologie.png] Pensez =C3=A0= l'environnement, n'imprimez ce message que si n=C3=A9cessaire ! Please, = consider the environment before printing this email. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >=20 --Apple-Mail=_DB9B023D-6197-431E-9C73-2C20786F750D--