dubbo2.8.4的各种坑记录

从dubbo2.5.3升级到2.8.4,出现各种问题,在此记录一下,仅供参考。


1. dubbo支持jdk 1.8及以上,注意jdk版本;


2. 调用rest报错

严重: Error processing request
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getEffectiveSessionTrackingModes()Ljava/util/Set;
	at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:890)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:529)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
	at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

解决方案:将servlet-api升级到3.0.1,注意不是3.0-alpha-1


3. 折腾一上午,dubbo2.8.4标配:tomcat 8 + jdk 1.8 完美运行


4. 未完待续,持续更新

你可能感兴趣的:(互联网架构)