最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Getting error while upgrading embedded Jetty from version 9.4.53.v20231009 to 12.0.9 - Stack Overflow

programmeradmin6浏览0评论

I am upgrading Jetty from version 9.4.53.v20231009 to 12.0.9 I have upgraded Java from version 11 to 17 I have following questions:

  1. For jetty-annotations, jetty-webapp and jetty-servlets 12.0.9 version is not available, the last version available is 11.0.24
  2. I am getting following error: SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 2025-02-05 01:16:15,929 ERROR cli.ClusterCommands: list: cluster feature list Exception in thread "main" java.lang.InstantiationError: org.eclipse.jetty.util.Pool at org.eclipse.jetty.xml.XmlConfiguration.(XmlConfiguration.java:99)

I also tried updating the jetty.xml to be used with version 12.0.9, but it may not be correct:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN"
  ".dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <!-- =========================================================== -->
  <!-- Server Thread Pool                                          -->
  <!-- =========================================================== -->
  <Get name="ThreadPool">
    <Set name="minThreads">4</Set>
    <Set name="maxThreads">200</Set>
    <Set name="idleTimeout">30000</Set>
  </Get>
</Configure>
发布评论

评论列表(0)

  1. 暂无评论