axis2
今更感もありますが、ちょっと躓いたのでメモ。
servlet-api 3.0で実装してる環境で
axis2を追加したらsevlet-api 2.3が入ってきて
HttpServletRequest.getServletContext()
でコンパイルエラー。
MavenでJarが被った場合、
<dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-transport-local</artifactId> <version>1.6.2</version> <scope>runtime</scope> <exclusions> <exclusion> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </exclusion> </exclusions> </dependency>
exclusion使います。
ただ、axis2-transport-localが
servlet-api 3.0でいいのかって気にはなるんですが、
servlet-api自体は、下位互換はとってるので、大丈夫?かな。