问题:启动jetty后,访问jsp页面,出现一下错误:
HTTP ERROR: 500
JSP support not configured
RequestURI=/capaa/WEB-INF/jsp/error/500.jsp
原因:是应为没有加载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>