Tomcat includes servlet-api classes in its org.apache.tomcat.embed:tomcat-embed-core:8.0.15 jar.
This causes the following error in my app, which does not use spring-boot and runs from embedded jetty.
java.lang.AbstractMethodError
at javax.servlet.http.HttpServletRequestWrapper.changeSessionId(HttpServletRequestWrapper.java:249)
at javax.servlet.http.HttpServletRequestWrapper.changeSessionId(HttpServletRequestWrapper.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
(...)
Suggested solution is to exclude spring-boot-starter-tomcat from micro-infra-spring exported dependencies. Probably this applies to all spring-boot starter jars included in it.
Gradle dep insight:
Tomcat includes servlet-api classes in its org.apache.tomcat.embed:tomcat-embed-core:8.0.15 jar.
This causes the following error in my app, which does not use spring-boot and runs from embedded jetty.
Suggested solution is to exclude spring-boot-starter-tomcat from micro-infra-spring exported dependencies. Probably this applies to all spring-boot starter jars included in it.