NoSuchMethodError: org.eclipse.jetty.websocket.server.WebSocketServerFactory.(Ljavax/servlet/ServletContext;)V

后端 未结 2 474

I have this exception when launching my application via eclipse plugin: \"Run as\" > \"GWT Development Mode with jetty\"

Environment:
- GWT SDK

2条回答
  •  无人共我
    2021-01-19 10:56

    You have a mixture of Jetty versions on the class path: 9.4.2.v20170220 and 9.2.14.v20151106. The former is what Spring Boot 1.5.2 uses by default. I would guess that latter is from the import of com.google.gwt:gwt.

    You could override the jetty.version property that Spring Boot uses to set its value to 9.2.14.v20151106, thereby using 9.2.14 everywhere. Alternatively, you could declare your own dependency management for the modules that are currently using 9.2.14 to upgrade them to 9.4.2.

提交回复
热议问题