Re: Jetspeed 2.3.1 and Websphere 8.5
DavidSeanTaylor <[email protected]> Thu, 8 Dec 2016 13:46:17 -0800
| Newsgroups | gmane.comp.jakarta.jetspeed.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_9C2E0287-3EB5-45AB-B588-1863204B8E1C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 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 =3D = (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?=09 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 = <[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.=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --Apple-Mail=_9C2E0287-3EB5-45AB-B588-1863204B8E1C--