JSP support not configured

Jetty内嵌 测试代码时,浏览jsp页面报错:

JSP support not configured

这时查看下后台的consol,会发现有如下日志信息:

NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet

…………

No JSP support.  Check that JSP jars are in lib/jsp and that the JSP option has been specified to start.jar

而我的依赖了明明加了jetty-jsp,如下:

<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-jsp</artifactId>
			<version>9.3.0.M1</version>
		</dependency>

百般查询,始终没找到合适的解决方法。后来又细看了下maven 库里的jetty-jsp版本,发现:

220742_ldcT_2430057.png

原来我添加的依赖不是release版本(费了我大半天时间……)。于是将版本修改如下:

<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-jsp</artifactId>
			<version>9.2.15.v20160210</version>
		</dependency>

至此,测试成功。

另外,至于milestone版本是什么意思,参考该兄弟写的:

Now, the Spring Milestone repo is a standard Maven repo - plugin or otherwise doesn't matter overmuch.

It's policy at Spring to publish milestone releases to the general public for those interested in testing them. Almost all publishing of Java binary artefacts is done on Maven these days. Hence these milestones are published into a Maven repo.

To make clear that these milestones releases are not to be used in production code they are published to a separate repo rather than Maven Central. Basically, don't use milestones unless you know what you are doing. And expect bugs.

链接如下:http://stackoverflow.com/questions/32356053/what-is-a-spring-milestone

转载于:https://my.oschina.net/u/2430057/blog/644173

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值