Open MichalMichalak opened 7 years ago
I found this issue whilst looking for something similar I was seeing with Hadoop. This leads me to believe it's coming from the Hadoop libraries rather than the Spring libraries?
It's weird though, excluding JSP API didn't fix it for me.
Foud this issue after upgrading a simple spring boot web project as well.
I may be wrong here, but since it's Spring's library it should be fixed by Spring team. Either exclude conflicting libs, maybe create some custom package instead, etc. OR they should communicate with Apache and solve the issue together / ask them to use different version.
Try include following to your dependencies:
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.el</artifactId>
<version>3.0.0</version>
</dependency>
Hello. I am not sure this is the right place to open an issue. If it's not, I'd gladly appreciate if you could share the right person / project.
We are using Spring Boot and Hadoop as shown in Gradle script below.
When trying to get validator, we got following exception.
After an investigation we found out that two
javax.el.ExpressionFactory
classes exist in class path. One fromtomcat-embed-el:8.5.11
and other fromjsp:jsp-api:2.1
. I assumedjsp-api
contains old version ofExpressionFactory
class and excluded JSP API, which solved the issue.The question is - shouldn't this be solved in Spring itself? Since I wasn't excluding anything before and it was working fine, I would expect the same behavior after update. Any ideas how to proceed with this? Thank you.