调用6.1.24中的API启动jetty。
JSP2.1组件位于类路径中。
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时,我看不到此消息。
我遗漏了什么?
发布于 2011-02-14 01:42:26
当我第一次开始使用jetty时,我遇到了这个问题。问题是,仅仅包括jsp jar似乎是不够的。下面是我用来解决这个问题的maven依赖列表。
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>7.2.2.v20101205</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>7.2.2.v20101205</version>
</dependency>
<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>发布于 2015-10-22 01:56:09
如果你在Ubuntu下使用Jetty6,你可能会遇到我在这里描述的问题:https://serverfault.com/a/730626/293452
简而言之,Jetty 6.x包依赖项中的错误将阻止Jetty启用JSP支持,因为错误链接了Tomcat Jasper库。
https://stackoverflow.com/questions/3521654
复制相似问题