您的位置:首页 > Web前端 > JavaScript

启动jetty后,访问jsp页面报500错: JSP support not configured

2016-01-12 18:17 579 查看
问题:启动jetty后,访问jsp页面,出现一下错误:

HTTP ERROR: 500
JSP support not configured


RequestURI=/capaa/WEB-INF/jsp/error/500.jsp

Powered by Jetty://

原因:是应为没有加载jetty用来解释jsp的jar包。加载进来就可以了。

对应需添加 MAVEN 依赖:

<dependency>

<groupId>org.eclipse.jetty</groupId>

<artifactId>jetty-jsp-2.1</artifactId>

<version>7.2.2.v20101205</version>

</dependency>

<dependency>

<groupId>org.mortbay.jetty</groupId>

<artifactId>jsp-2.1-glassfish</artifactId>

<version>2.1.v20100127</version>

</dependency>

========原来已包含的依赖:

<dependency>

<groupId>org.eclipse.jetty.aggregate</groupId>

<artifactId>jetty-all</artifactId>

<version>8.1.8.v20121106</version>

</dependency>

<dependency>

<groupId>org.eclipse.jetty</groupId>

<artifactId>jetty-webapp</artifactId>

<version>8.1.8.v20121106</version>

</dependency>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: