[jboss-dev-forums] [Design of JBoss Wiki] - Re: wiki support portal 2.7 ?

rohirave do-not-reply at jboss.com
Fri Dec 12 00:48:35 EST 2008


Hi,

I tried the change but no luck still the same error. I ried having alook at the source and realised the issue is coming at following section : 
if (param instanceof JBossActionRequest) {
      JBossActionRequest jrReq = (JBossActionRequest) param;

      if (jrReq.getUser() != null) {
        extractCredentialsFromUser(jrReq.getUser(),
                                   userModule,
                                   membershipModule,
                                   userProfileModule);
      }
    } else if (param instanceof JBossRenderRequest) {
      JBossRenderRequest jrReq = (JBossRenderRequest) param;

      if (jrReq.getUser() != null) {
        extractCredentialsFromUser(jrReq.getUser(),
                                   userModule,
                                   membershipModule,
                                   userProfileModule);
      } else {
        name = "Unknown";
      }
    } else {
      log.error("You are not running JBoss Portal");
    }

Now i modified the source to see what is the type for jrReq, the updated logging i had put shows that the jrReq is of type : org.jboss.portal.portlet.impl.jsr168.api.RenderRequestImpl. 

This as far as i understand has been a portak change to comply to JSR168. Now the object(param) does not posses function for getUser since  this is more of JBossRenderer method and not implemented in RenderRequestImpl. Could anyone please explain what i should be doing to remove the error of"[JBossPortalCredentials] You are not running JBoss Portal" and whether the investigations i have made make any sense or not.

Thanks
Rohith

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196135#4196135

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196135



More information about the jboss-dev-forums mailing list