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

Spring JIRA | Chunshi Zhu | 6 years ago
  1. 0

    javax.el.ELException when deploy ootb PetClinic to tcServer2.5 (Tomcat 7.0.6). In Tomcat 7 it has identifier checker turned on by default so this problem surfaces. 14-Jan-2011 16:11:24.131 INFO org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext 14-Jan-2011 16:11:26.246 INFO org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'petclinic' 14-Jan-2011 16:12:54.221 SEVERE org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet jsp threw exception 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 at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198) at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1217) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:870) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:889) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434) at org.apache.jasper.compiler.Node$Root.accept(Node.java:475) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376) at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1789) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216) Please see tcServer issuetracker below for more details. https://issuetracker.springsource.com/browse/TCS-1742

    Spring JIRA | 6 years ago | Chunshi Zhu
    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
  2. 0

    javax.el.ELException when deploy ootb PetClinic to tcServer2.5 (Tomcat 7.0.6). In Tomcat 7 it has identifier checker turned on by default so this problem surfaces. 14-Jan-2011 16:11:24.131 INFO org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext 14-Jan-2011 16:11:26.246 INFO org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'petclinic' 14-Jan-2011 16:12:54.221 SEVERE org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet jsp threw exception 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 at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198) at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1217) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:870) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:889) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434) at org.apache.jasper.compiler.Node$Root.accept(Node.java:475) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376) at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1789) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216) Please see tcServer issuetracker below for more details. https://issuetracker.springsource.com/browse/TCS-1742

    Spring JIRA | 6 years ago | Chunshi Zhu
    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
  3. 0

    view issue

    itracker | 8 years ago | jain76vineet
    org.apache.jasper.JasperException: /module-projects/view_issue.jsp(276,0) "${hasAttachmentOption && not empty attachments}" contains invalid expression(s): javax.el.ELException: Error Parsing: ${hasAttachmentOption && not empty attachments}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Help Help needed in installation

    Oracle Community | 7 years ago | 601452
    org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
  6. 0

    Bug Reports/Resolved/0.9.x - JAMWiki Java Wiki Engine

    jamwiki.org | 1 year ago
    org.apache.jasper.JasperException: /WEB-INF/jsp/history.jsp(44,61) "${change.import}" contains invalid expression(s): javax.el.ELException: [import] is not a valid Java identifier

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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

      at org.apache.jasper.compiler.DefaultErrorHandler.jspError()
    2. GWT dev
      Compiler.generateJava
      1. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
      2. org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
      3. org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
      4. org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1217)
      5. org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:870)
      6. org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539)
      7. org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
      8. org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
      9. org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:889)
      10. org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539)
      11. org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
      12. org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
      13. org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)
      14. org.apache.jasper.compiler.Node$Root.accept(Node.java:475)
      15. org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
      16. org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1789)
      17. org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216)
      17 frames