Jetty 9“-模块"而不是"OPTIONS" [英] Jetty 9 "--module" instead of "OPTIONS"

查看:344
本文介绍了Jetty 9“-模块"而不是"OPTIONS"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Jetty从7.6切换到9.2.

I am trying to switch Jetty from 7.6 to 9.2.

我阅读并理解"OPTION"将不再起作用.所以我将命令更改为

I read and understood that "OPTION" will no more work. So I changed my command from

java -jar start.jar --ini **OPTIONS**=server,jmx,resources,websocket,ext,plus,jsp,annotations /u/khandela/project/base//etc/config/cometd/cometd_jetty_config.xml

start.jar --ini **--module**=server,jmx,resources,websocket,ext,plus,jsp,annotations /u/khandela/project/base//etc/config/cometd/cometd_jetty_config.xml

但是我得到了警告:

警告:**无法继续,缺少必需的依赖项. [jsp-impl/$ {jsp-impl} -jsp] 警告:**按照配置,由于缺少启用的模块依赖性,Jetty无法启动. 警告:**这可能是由于类似于npn的间谍监视传递依存关系,

WARNING: ** Unable to continue, required dependency missing. [jsp-impl/${jsp-impl}-jsp] 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

如何解决?

推荐答案

您看到的关于[jsp-impl/${jsp-impl}-jsp]的错误是因为当您请求启动Jetty时未定义默认的jsp实现.

The error you are seeing about [jsp-impl/${jsp-impl}-jsp] is because a default jsp implementation was not defined when you requested startup of Jetty.

Jetty 9.2.x具有

Jetty 9.2.x has 2 different core JSP engines available.

  • apache-Apache Jasper JSP引擎(新的Jetty默认值)
  • glassfish-Glassfish Jasper JSP引擎(Jetty使用的原始版本.现已过时/越野车,已弃用)
  • apache - the Apache Jasper JSP engine (the new Jetty default)
  • glassfish - the Glassfish Jasper JSP engine (original version in use by Jetty. Now obsolete / buggy and deprecated)

Jetty 9.2中的行为是迫使用户决定他们要使用哪种实现. 这是一个错误,只会使想要以自己的方式开始跳船的用户感到困惑(即:不使用start.ini${jetty.base}记录在案的机制)

The behavior in Jetty 9.2 was to force users to decide which implementation they want to use. This was a mistake and just confuses users that want to start jetty in their own way (ie: not using the start.ini or ${jetty.base} documented mechanisms)

提交了功能请求,并且9.2.1之后的下一版Jetty将采用默认值这个值.对apache具有自动选择功能.

A feature request was filed, and the next release of Jetty after 9.2.1 will apply defaults for this value. With autoselection for apache.

同时,在等待Jetty 9.2.2(或9.3.0)时,添加一个属性,该属性定义要使用的jsp-impl.

In the meantime, while you wait for Jetty 9.2.2 (or 9.3.0), add a property defining which jsp-impl you want to use.

$ start.jar --module=server,jmx,resources,websocket,ext,plus,jsp,annotations
     jsp-impl=apache
     /u/khandela/project/base/etc/config/cometd/cometd_jetty_config.xml

注意:删除--ini,因为start.jar不会使用--ini

Note: get rid of --ini as that is not used by start.jar

这篇关于Jetty 9“-模块"而不是"OPTIONS"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆