我已安装Jetty Web服务器v 9.2.2,以便将其与Netbeans for 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
我按照配置指南在$ {jetty.home}的start.d文件夹中启用jsp支持和编辑的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
这里可能有什么问题?
答案 0 :(得分:1)
将-Djsp-impl=apache
或-Djsp-impl=glassfish
添加到命令行。
或
将jsp-impl=apache
或jsp-impl=glassfish
添加到您的${jetty.base}/start.ini
这是需要修复的错误。