Error on deploy portlet - Liferay 7.0

thumbnail
Joaquin Cabal, modified 8 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
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!
thumbnail
David H Nebinger, modified 8 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
As you can see, the actionURL tag comes from liferay-portlet.tld which you don't reference.
thumbnail
Sushil Patidar, modified 8 Years ago. Expert Posts: 467 Join Date: 10/31/11 Recent Posts
Hi
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
&lt;%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %&gt;


Regards
thumbnail
Joaquin Cabal, modified 8 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
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?
thumbnail
David H Nebinger, modified 8 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
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"
thumbnail
Joaquin Cabal, modified 8 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
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!
majdi Achouri, modified 5 Years ago. Junior Member Posts: 38 Join Date: 11/21/19 Recent Posts
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