我已经安装了 Jetty Web 服务器 v 9.2.2,以便与 Netbeans 一起使用它进行 Java Web 开发:
现在,当我运行该项目时,出现以下错误:
WARNING: ** Unable to continue, required dependency missing. [jsp-impl/${jsp-impl}-jstl]
WARNING: ** As configured, Jetty is unable to start due to a missing enabled module dependency.
WARNING: ** This may be due to a transitive dependency akin to spdy on npn, which resolves based on the JDK in use.
Missing referenced dependency: jsp-impl/${jsp-impl}-jstl
Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information
Java Result: -6
我按照配置指南启用 jsp 支持并编辑了 ${jetty.home} 的 start.d 文件夹中的 jsp.ini 文件: http://www.eclipse.org/jetty/documentation/current/configuring-jsp.html
但后来我收到错误:
Unrecognized argument: "[depend]" in C:\jetty\work\JettyServerInstance\jettybase\start.d\jsp.ini
Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information
Java Result: -6
这里可能出了什么问题?
最佳答案
将 -Djsp-impl=apache
或 -Djsp-impl=glassfish
添加到命令行。
或
将 jsp-impl=apache
或 jsp-impl=glassfish
添加到您的 ${jetty.base}/start.ini
这是一个需要修复的错误。
关于java - 在 Jetty 服务器 v 9.2.2 上运行 JSP 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25499206/