Is it accurate to say that older versions of Jetty cannot be made to work with Java 9 just by configuration changes

╄→гoц情女王★ 提交于 2019-12-07 13:23:57

问题


Trying to run a fairly old project Mamute with Java 9. I was able to get around some initial errors by using

--add-modules java.xml.bind 

but Mamute uses an older version of Jetty (8.1.0.v20120127) and I am seeing

PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved

This discussion around this thread would seem to indicate using Jetty with Java 9 is only possible with back-ported code changes and not by changing configuration. Is that correct?


回答1:


To what I've experienced in recent past, the plan that Jetty community is following is to make Jetty compatible with JDK9 by committing changes to 10.x(not probably the current 10.0.x release) and 9.4.x version(backporting fixes). [Edit - Backported in version 9.3.x as well]

You can find a list of changes(further redirects) brought in for JDK9 compatibility in jetty. And as one of the comments read that the 9.4.7.RC0 was the first Jetty release built with JDK 9. So seems true to hold that versions prior to these wouldn't entirely support being compatible with JDK9.

Also, you can find a read about EOL of Jetty 7 and 8 published a good time back, so it makes sense why the changes shouldn't be backported to those versions as well.



来源:https://stackoverflow.com/questions/46724481/is-it-accurate-to-say-that-older-versions-of-jetty-cannot-be-made-to-work-with-j

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!