简体   繁体   中英

How to fix 'The absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application'

When I add <%@ taglib uri='http://java.sun.com/portlet' prefix='portlet' %> to JSP file, I get an exception

Dependencies:

<dependency>
     <groupId>javax.portlet</groupId>
     <artifactId>portlet-api</artifactId>
     <version>3.0.1</version>
     <scope>provided</scope>
</dependency>

Exception:

2019-04-10 11:28:17.573 ERROR [http-nio-8080-exec-6][PortletRequestDispatcherImpl:331] Unable to dispatch request: /jsp/departments.jsp(9,62) PWC6188: The absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application
2019-04-10 11:28:17.574 ERROR [http-nio-8080-exec-6][PortletServlet:112] javax.portlet.PortletException: org.apache.jasper.JasperException: /jsp/departments.jsp(9,62) PWC6188: The absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application
javax.portlet.PortletException: org.apache.jasper.JasperException: /jsp/departments.jsp(9,62) PWC6188: The absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application
     at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:333)
     at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:145)

将<%@ taglib uri =' http://java.sun.com/portlet'prefix ='portlet'%>更改为<%@ taglib uri =' http://java.sun.com/portlet_2_0'prefix =' portlet'%>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this app Absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application error in tomcat JBoss 6x The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application JSTL error: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application JSTL: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application Error HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files The absolute uri: http://www.springframework.org/tags cannot be resolved in either web.xml or the jar files deployed with this application The absolute uri: http://www.springsource.org/tags/form cannot be resolved in either web.xml or the jar files deployed with this application The absolute uri cannot be resolved in either web.xml or the jar files deployed with this application Struts The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM