Jetspeed 2.3.1 and Websphere 8.5
Thomas Leguyader <[email protected]> Wed, 7 Dec 2016 13:36:02 +0000
| Newsgroups | gmane.comp.jakarta.jetspeed.user |
|---|---|
| Message-ID | <[email protected]> |
--_004_C52D25A2B3631D4B87959978534C674801547E2B92KEID2sab2iloc_
Content-Type: multipart/alternative;
boundary="_000_C52D25A2B3631D4B87959978534C674801547E2B92KEID2sab2iloc_"
--_000_C52D25A2B3631D4B87959978534C674801547E2B92KEID2sab2iloc_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I have a portal based on Jetspeed 2.2.2 and it works great. :)
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::JetspeedPrincipalManage=
mentRolesPortlet), I have an "Internal error" with a link "Return to home p=
age" in the portlet.
If I check the logs, I can see a Error "org.apache.wicket.WicketRuntimeExce=
ption: 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" exepti=
on.
You will find the full exception stack in attachement.
I've done some v=E9rifications :
- org.apache.jetspeed.security.impl.UserImpl is in the jetspeed-se=
curity-2.3.1.jar that is in the *-portal.war
- org.apache.jetspeed.security.UserSubjectPrincipal is in the jets=
peed-api-2.3.1.jar that is in an attached sharedLib
- I have checked the interfaces and super classes of theses classe=
s and it shouldn't launch a ClassCastException
I've analyzed the classloading logs and the versions of the jars and classe=
s 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 Webspher=
e 8.5.5 ?
Any idea of how I can fix this ?
Cordialement,
Thomas LE GUYADER
[http://www.sab2i.com/fichiers/20130204105607_ecologie.png] Pensez =E0 l'en=
vironnement, n'imprimez ce message que si n=E9cessaire ! Please, consider t=
he environment before printing this email.
--_000_C52D25A2B3631D4B87959978534C674801547E2B92KEID2sab2iloc_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.shorttext
{mso-style-name:short_text;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:915439302;
mso-list-type:hybrid;
mso-list-template-ids:2143848988 -1036727070 67895299 67895301 67895297 67=
895299 67895301 67895297 67895299 67895301;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"FR" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">Hi,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">I have a portal based on Jetspeed 2.2.2 and it works great=
.
</span><span lang=3D"EN-US" style=3D"font-family:Wingdings;color:#1F497D;ms=
o-fareast-language:FR">J</span><span lang=3D"EN-US" style=3D"color:#1F497D;=
mso-fareast-language:FR"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">I decided to do an upgrade from Jetspeed 2.2.2 to Jetspeed=
2.3.1.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">It still works great on Tomcat (7.0.63) but I have a probl=
em with the role manager portlet from j2-admin 2.3.1 if I use Websphere 8.5=
(8.5.5.9).<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">The problem is the following :<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">When I go to the role management portlet (j2-admin::Jetspe=
edPrincipalManagementRolesPortlet), I have an “Internal error” =
with a link “Return to home page” in the portlet.<o:p></o:p></s=
pan></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">If I check the logs, I can see a Error “org.apache.w=
icket.WicketRuntimeException: Can't instantiate page using constructor publ=
ic org.apache.jetspeed.portlets.security.JetspeedPrincipalManagementPortlet=
()”
that is caused by a “java.lang.ClassCastException: org.apache.jetspe=
ed.security.impl.UserImpl incompatible with org.apache.jetspeed.security.Us=
erSubjectPrincipal” exeption.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">You will find the full exception stack in attachement.<o:p=
></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">I’ve done some v=E9rifications :<o:p></o:p></span></=
p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-18.0pt;mso-list:l0 leve=
l1 lfo1"><![if !supportLists]><span lang=3D"EN-US" style=3D"color:#1F497D;m=
so-fareast-language:FR"><span style=3D"mso-list:Ignore">-<span style=3D"fon=
t:7.0pt "Times New Roman""> &n=
bsp;
</span></span></span><![endif]><span lang=3D"EN-US" style=3D"color:#1F497D;=
mso-fareast-language:FR">org.apache.jetspeed.security.impl.UserImpl is in t=
he jetspeed-security-2.3.1.jar that is in the *-portal.war<o:p></o:p></span=
></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-18.0pt;mso-list:l0 leve=
l1 lfo1"><![if !supportLists]><span lang=3D"EN-US" style=3D"color:#1F497D;m=
so-fareast-language:FR"><span style=3D"mso-list:Ignore">-<span style=3D"fon=
t:7.0pt "Times New Roman""> &n=
bsp;
</span></span></span><![endif]><span lang=3D"EN-US" style=3D"color:#1F497D;=
mso-fareast-language:FR">org.apache.jetspeed.security.UserSubjectPrincipal =
is in the jetspeed-api-2.3.1.jar that is in an attached sharedLib<o:p></o:p=
></span></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-18.0pt;mso-list:l0 leve=
l1 lfo1"><![if !supportLists]><span lang=3D"EN-US" style=3D"color:#1F497D;m=
so-fareast-language:FR"><span style=3D"mso-list:Ignore">-<span style=3D"fon=
t:7.0pt "Times New Roman""> &n=
bsp;
</span></span></span><![endif]><span lang=3D"EN-US" style=3D"color:#1F497D;=
mso-fareast-language:FR">I have checked the interfaces and super classes of=
theses classes and it shouldn’t launch a ClassCastException<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">I’ve analyzed the classloading logs and the versions=
of the jars and classes that are loaded seem to be OK.<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">I really don’t understand what is going wrong.<o:p><=
/o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">Is someone encountered a similar probem with the 2.3.1 ver=
sion and Websphere 8.5.5 ?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">Any idea of how I can fix this ?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">Cordialement,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D;mso-fare=
ast-language:FR">Thomas LE GUYADER<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"mso-far=
east-language:FR"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
<br>
<img style=3D"vertical-align:middle;border:0px" alt=3D"" src=3D"http://www.=
sab2i.com/fichiers/20130204105607_ecologie.png">
<span style=3D"font-size:10.0pt;color:green">Pensez =E0 l'environnement, n'=
imprimez ce message que si n=E9cessaire !</span>
<span style=3D"font-size:10.0pt;color:green;">Please, consider the environm=
ent before printing this email.</span>
</body>
</html>
--_000_C52D25A2B3631D4B87959978534C674801547E2B92KEID2sab2iloc_--
--_004_C52D25A2B3631D4B87959978534C674801547E2B92KEID2sab2iloc_
Content-Type: text/plain; charset=us-ascii
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--_004_C52D25A2B3631D4B87959978534C674801547E2B92KEID2sab2iloc_--