WebSphere Portal Server - Problem with JSF Portlet under WebSphere Portal Server 5.1

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2007 > Problem with JSF Portlet under WebSphere Portal Server 5.1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem with JSF Portlet under WebSphere Portal Server 5.1

2007-05-08, 1:18 am

Hi, I'm running into a strange problem with a JSF JSR-168 portlet developed with RAD 6.0. The portlet works fine in my Portal 5.1.0.3 test environment, but when I deploy to our test server (also Portal 5.1.0.3) I see the following exception:

Nested Exception is java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java(Compiled Code))
at com.ibm.wps.pe.om.common.impl.LanguageSetImpl.get(LanguageSetImpl.java:121)
at org.apache.pluto.core.impl.PortletConfigImpl.getResourceBundle(PortletConfigImpl.java:154)
at javax.portlet.GenericPortlet.getTitle(GenericPortlet.java:188)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:162)

Now, the title should come from the text bundle associated with the portlet.....which from portlet.xml is as follows:

<portlet>
<portlet-name>R2CManageWork</portlet-name>
<display-name>R2C Request portlet</display-name>
<display-name xml:lang="en">R2C Request portlet</display-name>
<portlet-class>
com.ibm.faces.webapp.FacesGenericPortlet
</portlet-class>
<init-param>
<name>com.ibm.faces.portlet.page.view</name>
<value>/ManageWork/workList.jsp</value>
</init-param>
<init-param>
<name>wps.markup</name>
<value>html</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>
r2cmanagework.nl.R2CManageWorkPortletResource
</resource-bundle>
<portlet-info>
<title>R2C Request portlet</title>
</portlet-info>
</portlet>

When I look in /WEB-INF/classes/r2cmanagework/nl directory of my deployed portlet project, I can see the properties files are there.

$ pwd
/usr1/IBM/WebSphere/PortalServer/installedApps/CreateSRPortlet_PA_1_0_CJ.ear/PA_1_0_CJ.war/WEB-INF/classes/r2cmanagework/nl
$ ls -al
total 16
drwxr-xr-x 2 wassrvr websrvr 256 May 4 16:59 .
drwxr-xr-x 3 wassrvr websrvr 256 May 4 16:59 ..
-rw-r--r-- 1 wassrvr websrvr 125 May 3 12:20 R2CManageWorkPortletResource.properties
-rw-r--r-- 1 wassrvr websrvr 125 May 3 12:20 R2CManageWorkPortletResource_en.properties

So, it seems like we have an error with trying to load the resource bundle for the title, but the bundle is present and is in the directory I would expect it to be in.....so I really have no idea what's causing the error. Has anyone seen something like th
is before ?

Thanks,

-Aron

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com