Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

WSRP between WebLogic and WebSphere, getUserPrincipal is null  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to implement wsrp between weblogic and websphere where weblogic 10.3.4 is the producer and websphere 6.1 is the consumer. I have created weblogic portlet which displays the logged in user details like remote user, authentication type princpal name.
When i consume the portlet through websphere portal admin console, getting the remote user name and authentication type as FORM but the principal name is returning null.

Here is my producer portlet code:

package com.demo.portal.portlet.supersnoop;


import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

* SuperSnoopPortlet
public class SuperSnoopPortlet extends GenericPortlet implements Version{

* @see javax.portlet.GenericPortlet#doView(RenderRequest, RenderResponse)
protected void doView(RenderRequest req, RenderResponse resp) throws PortletException, IOException {

PrintWriter out = new PrintWriter(resp.getWriter());

String remoteUser = req.getRemoteUser();
String authentication = req.getAuthType();
String principalName = (request.getUserPrincipal() == null)
? null
: request.getUserPrincipal().getName();

out.println("<h3>User Attributes</h3>");

out.println(authentication );
out.println(principalName );


I couldn't find anything on web, Is there a way to fix this issue? Can some one help me with this ?


Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!