maven项目中 使用jetty 运行 报错误 :详细描述如下
<jstl.version>1.2</jstl.version><servlet.version>2.5</servlet.version><jetty.version>...
<jstl.version>1.2</jstl.version>
<servlet.version>2.5</servlet.version>
<jetty.version>7.6.8.v20121106</jetty.version>
1.org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layout/standard.jsp'.
2. Caused by: org.apache.tiles.util.TilesIOException: ServletException including path '/WEB-INF/layout/standard.jsp'.
3. org.apache.jasper.JasperException: /WEB-INF/layout/include.jsp(1,62) PWC6188: 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
standard.jsp页面
<%@ include file="/WEB-INF/layout/include.jsp"%>
include .jsp 页面
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> 展开
<servlet.version>2.5</servlet.version>
<jetty.version>7.6.8.v20121106</jetty.version>
1.org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layout/standard.jsp'.
2. Caused by: org.apache.tiles.util.TilesIOException: ServletException including path '/WEB-INF/layout/standard.jsp'.
3. org.apache.jasper.JasperException: /WEB-INF/layout/include.jsp(1,62) PWC6188: 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
standard.jsp页面
<%@ include file="/WEB-INF/layout/include.jsp"%>
include .jsp 页面
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> 展开
1个回答
展开全部
在你的Jetty Plugin里增加对jstl依赖试试:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.6.4.v20120524</version>
......
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependencies>
......
</plugin>
追问
这个依赖已经有加进去了,还是不行
追答
请提供完整的pom文件。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询