Sun Java System Portal Server 7 Developer's Guide

Debugging the Portlet

A logging mechanism is provided in the PortletContext, accessable from GenericPortlet.getPortletContext() method. The PortletContext.log() method will print a time-stamped message to the web container log. There are many places to find logs for the portlet, depending on where the error occured:

AccessManager-base/debug/portletname.log

Includes any kind of exception from the portlet code or JSPs and/or taglibraries

AccessManager-base/debug/portletcontainer.log

Includes problems with portlet and window states

AccessManager-base/debug/desktop.debug

Includes channel configuration issues

WebServer-base/Instance/logs/errors

Includes PortalContext.log() messages