Problem running jportlet
Brought to you by:
tchbansi
i got nullpointerexception error when i am trying to run
jportlet using tomcat.
"java.lang.NullPointerException
at net.sf.jportlet.web.taglib.PortletTag.doEndTag
(PortletTag.java:82)
at
org.apache.jsp.index_jsp._jspx_meth_jportlet_portlet_4
(index_jsp.java"
The problem is with this line in PortletTag.java
"PortletApplication container = getPortletContainer( );"
"PortletProxy proxy = ( PortletProxy )
getPortletContainer( ).getPortlet( portletName );"
the container object is null so when perform a .get() will
throw nullpointerexception.
Logged In: NO
Install logkit-1.2.jar to from
http://www.apache.org/dist/avalon/logkit/
to applications WEB-INF/lib
then the web application can start correctly and Container
is initialized.