views:

65

answers:

1

I have deployed the petclinic code from the SPring 3 svn samples repository in Tomcat7 and I get the following exception:

Internal error

Root cause is: /WEB-INF/jsp/owners/form.jsp(4,1) "${owner.new}" contains invalid expression(s): javax.el.ELException: [new] is not a valid Java identifier org.apache.jasper.JasperException: /WEB-INF/jsp/owners/form.jsp(4,1) "${owner.new}" contains invalid expression(s): javax.el.ELException: [new] is not a valid Java identifier

This expression resolves perfectly well in SpringSOurce tc Server Developer Edition 2.0.

Any ideas why Tomcat 7.0.2 has a problem with it?

A: 

My guess is that the EL parser in Tomcat 7 is just a bit more strict than that in tcServer (which is based on Tomcat 6).

I suggest filing a bug at http://jira.springsource.org to that effect, it's almost certainly something they'll want to fix.

skaffman
Whether Tomcat 7 EL parser is more strict or not, the class has an `isNew()` method, using `${owner.new}` is legal. I thus consider this as an EL *bug* in Tomcat 7. It's Tomcat that should get fixed.
Pascal Thivent