Foren
Liferay 6.0.6: portlet:defineObjects NullPointerException
Luca Andreatta, geändert vor 12 Jahren.
Liferay 6.0.6: portlet:defineObjects NullPointerException
Junior Member Beiträge: 33 Beitrittsdatum: 16.02.09 Neueste Beiträge
Hi all,
I have a problem deployng a portlet in Liferay 6.0.6 bundled with JBoss.
When I try to access the portlet I get a NullPointerException in the compiled jsp.
In particular I get it when it try to execute the compiled code of the liferay tag <portlet:defineObjects/>:
It is very odd because if I deploy it in Liferay 6.0.6 bundled with Tomcat everithing works fine!
Anyone can help me?
The header of the jsp:
I have a problem deployng a portlet in Liferay 6.0.6 bundled with JBoss.
When I try to access the portlet I get a NullPointerException in the compiled jsp.
In particular I get it when it try to execute the compiled code of the liferay tag <portlet:defineObjects/>:
// portlet:defineObjects
com.liferay.taglib.portlet.DefineObjectsTag _jspx_th_portlet_005fdefineObjects_005f0 = (new com.liferay.taglib.portlet.DefineObjectsTag());
_jsp_instancemanager.newInstance(_jspx_th_portlet_005fdefineObjects_005f0); //<-- HERE I get the Nullpointer!
It is very odd because if I deploy it in Liferay 6.0.6 bundled with Tomcat everithing works fine!
Anyone can help me?
The header of the jsp:
<%@ page language="java"
extends="it.eng.spago.dispatching.httpchannel.AbstractHttpJspPagePortlet"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
session="true"
isELIgnored="false"
%>
<%@ page import="it.eng.spago.base.*,
it.eng.cmmi.project.utilities.AttributeUtilities"%>
<%@ taglib uri="/WEB-INF/tld/spago.tld" prefix="spago" %>
<%@ taglib uri="/WEB-INF/tld/cmmi.tld" prefix="cmmi" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %>
<%@ taglib prefix="liferay-theme" uri="http://liferay.com/tld/theme" %>
<%@ taglib prefix="liferay-ui" uri="http://liferay.com/tld/ui" %>
<%@ page import="javax.portlet.PortletContext"%>
<%@ page import="com.liferay.portal.theme.ThemeDisplay"%>
<%@ page import="com.liferay.portal.util.PortalUtil" %>
<portlet:defineobjects />
<liferay-theme:defineobjects />
<c:set var="contextPath"><%=renderResponse.encodeURL(renderRequest.getContextPath())%></c:set>
Luca Andreatta, geändert vor 12 Jahren.
RE: Liferay 6.0.6: portlet:defineObjects NullPointerException
Junior Member Beiträge: 33 Beitrittsdatum: 16.02.09 Neueste Beiträge
The problem was that my jsp was extending another class that caused the problem:
Removing it solved the problem.
Thanks to all.
extends="it.eng.spago.dispatching.httpchannel.AbstractHttpJspPagePortlet"
Removing it solved the problem.
Thanks to all.