File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes PortletServiceUnavailableException - WPS5.1 - using IBM Portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "PortletServiceUnavailableException - WPS5.1 - using IBM Portlet" Watch "PortletServiceUnavailableException - WPS5.1 - using IBM Portlet" New topic

PortletServiceUnavailableException - WPS5.1 - using IBM Portlet

Amitav Anand
Ranch Hand

Joined: Sep 22, 2003
Posts: 46
In my application, I have got a portlet service whose entry is mentioned in the file.
To retrieve the entry from the above mentioned property file, I have this block of code in the filter that intercepts the request and tries to get the service object from the propery file.

Entry in the file.
Location of the file in the Unix box is : /opt/WebSphere/PortalServer/shared/app/config/services/ =

Block of code which tries to get the service object

MyService svc = (MyService )portletConfig.getContext().getService(;
catch(PortletServiceUnavailableException e)
throw new Exception("Portlet Service is not available.");

The parameter passed to the getService() method is exactly same as the key entered in the file.
And both MyService and MyServiceImpl files are in a JAR, which is kept in shared/app.

But its throwing PortletServiceUnavailableException in the above block of code.
Could anyone help me out in this regard please? Its really very urgent ..

In the property file, there are many portlet services which are required for WPS 5.1 server itself and they must be getting loaded for sure..I am wondering why the newly added MyService is not availavle.

Is there any specific configuration required on the portal server to locate the portlet service?

Many Thanks.
I agree. Here's the link:
subject: PortletServiceUnavailableException - WPS5.1 - using IBM Portlet
It's not a secret anymore!