I am a newbie on JSP and have an existing application that works well in Tomcat 6.0.45. Now I upgraded to Tomcat 9.0.0.M26. As soon as I have an EL statement in my .jsp, the tomcat throws a NullPointerException when drawing the page:
java.lang.NullPointerException
java.util.Objects.requireNonNull(Objects.java:203)
javax.el.CompositeELResolver.add(CompositeELResolver.java:47)
org.apache.jasper.el.ELContextImpl.<clinit>(ELContextImpl.java:87)
org.apache.jasper.compiler.Validator$ValidateVisitor.prepareExpression(Validator.java:1619)
I have tested to remove almost everything from the application. The simplest code I have come up with that causes the exception is
<c:if test="${4.0>= 3}">This is true!</c:if>
I have suspected old, outdated or jar conflicts but not found any solution. These versions are what I use know:
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
What part have I missed?