Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-9

Tomcat7 unable to compile JSP with Java8 new features

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • JWS 3.0.0 ER1
    • None
    • tomcat7
    • None
    • Hide
      When using Java 8 features in JSP pages with Tomcat, JSP compiler exceptions similar to the following were thrown: `Unable to compile class for JSP`.

      This issue occurred because the ECJ included with Tomcat 7 and 8 did not properly compile Java 8 classes.

      This issue is fixed with the upgrade of ECJ to version 4.4 for both Tomcat 7 and 8, and Java 8 features in JSP pages should now compile successfully.
      Show
      When using Java 8 features in JSP pages with Tomcat, JSP compiler exceptions similar to the following were thrown: `Unable to compile class for JSP`. This issue occurred because the ECJ included with Tomcat 7 and 8 did not properly compile Java 8 classes. This issue is fixed with the upgrade of ECJ to version 4.4 for both Tomcat 7 and 8, and Java 8 features in JSP pages should now compile successfully.

      When i have Java8 new features (for exmaple lambda expression) code in Tomcat7 JSP page Tomcat7 jsp compiler raises error.

        1. java8Test.jsp
          0.7 kB
          Libor Fuka
        2. web.xml
          166 kB
          Libor Fuka
        3. catalina.out
          8 kB
          Libor Fuka
        4. localhost.2015-02-18.log
          4 kB
          Libor Fuka

              dknox_jira David Knox (Inactive)
              lfuka Libor Fuka
              Lucas Costi Lucas Costi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: