在Jetty中缺少对JSP的支持,还是令人困惑的日志消息? [英] Missing JSP support in Jetty, or confusing log message?
本文介绍了在Jetty中缺少对JSP的支持,还是令人困惑的日志消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过在6.1.24中调用API来启动码头.
Launching jetty by calling the API in 6.1.24.
JSP 2.1组件位于类路径上.
The JSP 2.1 component is on the classpath.
org.mortbay.jetty:jsp-2.1-jetty:jar:6.1.24:compile
但是日志显示:
2010-08-19 08:16:19.443:INFO::NO JSP Support for /basis_ws, did not find org.apache.jasper.servlet.JspServlet
使用相应的maven-jetty-plugin时看不到此消息.
I don't see this message when using the corresponding maven-jetty-plugin.
我想念什么?
推荐答案
我不做码头,所以我此博客.这是一个相关的例子:
I don't do Jetty, so I looked a bit round and found this blog. Here's a cite of relevance:
但是,这还不够,如果启动服务器,您将收到如下错误:
But, this is not enough, if you start the server you get an error like this:
INFO::NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
因此,您必须在jetty中启用jsp支持,并将其他未记录的选项传递给jetty启动脚本:
So you have to enable jsp support in jetty passing additional undocumented options to the jetty start script:
$ java -jar jetty.jar OPTIONS=Server,jsp
这篇关于在Jetty中缺少对JSP的支持,还是令人困惑的日志消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文