Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Error on deploy portlet - Liferay 7.0
Hi, I created a portlet with some MVCActionCommands and was working fine .
Yesterday misteriously stop working and showing the following error:
"javax.portlet.PortletException: org.apache.jasper.JasperException: /localization/view.jsp(1,1) /localization/../init.jsp(1,66) PWC6112: Failed to load or instantiate TagExtraInfo class: com.liferay.taglib.portlet.ActionURLTei"
Seems init.jsp has some import wrong or something like that but I am looking and is ok.
These are the imports throwing the error:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>
<%@ taglib uri="http://liferay.com/tld/frontend" prefix="liferay-frontend" %>
Any suggestion?
Thanks!
Yesterday misteriously stop working and showing the following error:
"javax.portlet.PortletException: org.apache.jasper.JasperException: /localization/view.jsp(1,1) /localization/../init.jsp(1,66) PWC6112: Failed to load or instantiate TagExtraInfo class: com.liferay.taglib.portlet.ActionURLTei"
Seems init.jsp has some import wrong or something like that but I am looking and is ok.
These are the imports throwing the error:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>
<%@ taglib uri="http://liferay.com/tld/frontend" prefix="liferay-frontend" %>
Any suggestion?
Thanks!
As you can see, the actionURL tag comes from liferay-portlet.tld which you don't reference.
Hi
you seems using like
for that you should import as follows
Regards
javax.portlet.PortletException: org.apache.jasper.JasperException: /localization/view.jsp(1,1) /localization/../init.jsp(1,66) PWC6112: Failed to load or instantiate TagExtraInfo class: com.liferay.taglib.portlet.ActionURLTei"
you seems using like
<liferay-portlet:actionurl name="emp" var="empUrl" />for that you should import as follows
<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>Regards
Ok Sushil, thanks
you both are right I haven't put the liferay-portlet tag
I put it now but still same error happen. Even The module was working fine , I didn't change any code and starts to throw this error.
Now I have these imports:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/frontend" prefix="liferay-frontend" %>
<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>
<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
And the error is the same:
"Caused by: org.apache.jasper.JasperException: /propertytags/../init.jsp(3,66) PWC6112: Failed to load or instantiate TagExtraInfo class: com.liferay.taglib.portlet.ActionURLTe"
The line marked in jsp corresponds to this import: "<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>"
Im confused, seems the tld libs are not loaded or something?
you both are right I haven't put the liferay-portlet tag
I put it now but still same error happen. Even The module was working fine , I didn't change any code and starts to throw this error.
Now I have these imports:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/frontend" prefix="liferay-frontend" %>
<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>
<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
And the error is the same:
"Caused by: org.apache.jasper.JasperException: /propertytags/../init.jsp(3,66) PWC6112: Failed to load or instantiate TagExtraInfo class: com.liferay.taglib.portlet.ActionURLTe"
The line marked in jsp corresponds to this import: "<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>"
Im confused, seems the tld libs are not loaded or something?
Joaquin Cabal:
"Caused by: org.apache.jasper.JasperException: /propertytags/../init.jsp(3,66) PWC6112: Failed to load or instantiate TagExtraInfo class: com.liferay.taglib.portlet.ActionURLTe"
That is a different error. It means you have included the tld file, but not the corresponding tag lib where the classes are defined.
You should have something like:
compileOnly group: "com.liferay.portal",
name: "com.liferay.util.taglib", version: "2.7.0"
Ok David,
I 'm using maven so I had already this dependency included:
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>com.liferay.util.taglib</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
</dependency>
Now is working after remove the Freemarker Portlet automatically created by liferay ide when I created a Component class. So I supose I had not the freemarker libs correctly imported
Well thanks!
I 'm using maven so I had already this dependency included:
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>com.liferay.util.taglib</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
</dependency>
Now is working after remove the Freemarker Portlet automatically created by liferay ide when I created a Component class. So I supose I had not the freemarker libs correctly imported
Well thanks!
In my case it was a define problem :
I was including <liferay-theme:defineObjects /> in the jsp instead of including <portlet:defineObjects />
by including <portlet:defineObjects /> <%@ taglib prefix="portlet" [url=http://uri="http://java.sun.com/portlet_2_0"%>]uri="http://java.sun.com/portlet_2_0"%> it is working well
I was including <liferay-theme:defineObjects /> in the jsp instead of including <portlet:defineObjects />
by including <portlet:defineObjects /> <%@ taglib prefix="portlet" [url=http://uri="http://java.sun.com/portlet_2_0"%>]uri="http://java.sun.com/portlet_2_0"%> it is working well