Forum Stats

  • 3,874,744 Users
  • 2,266,769 Discussions
  • 7,911,962 Comments

Discussions

Request context path for portlet has wrong port number

779711
779711 Member Posts: 6
edited Jun 17, 2010 2:53PM in JDeveloper and ADF
I have a JSF application deployed as a portlet on the WLS_Portlet domain with port 8889. The portlet is being consumed in WebCenter Spaces, which lives in the WLS_Spaces domain with port 8888.

In my code, I am trying to get the request context path:

FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();

I expect this to return http://host:8889/contextroot (where I am able to access my app resources). Instead, it is returning http://host:8888/contextroot.

Any ideas why this is happening?

Edited by: user9171296 on Jun 16, 2010 10:32 AM

Answers

This discussion has been closed.