Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Request context path for portlet has wrong port number

779711Jun 16 2010 — edited Jun 17 2010
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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 15 2010
Added on Jun 16 2010
2 comments
818 views