Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4155

Jasper engine unable to compile JSP code in Fuse

    XMLWordPrintable

Details

    • % %
    • Hide

      Use Java 1.7

      Show
      Use Java 1.7
    • Hide
      JBossFuse:karaf@root> features:install spring-dm-web 
      JBossFuse:karaf@root> install mvn:nl.finalist/war-test/0.0.1-SNAPSHOT/war
      Bundle ID: 269
      JBossFuse:karaf@root> start 269
      

      It can be accesed via a browser at:
      http://localhost:8181/war-test/test

      And it will give the following error:

      HTTP ERROR 500
      
      Problem accessing /war-test/test. Reason:
      
          Server Error
      
      Caused by:
      
      org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
      
      PWC6199: Generated servlet error:
      The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
      
      	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:123)
      	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)
      	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:376)
      	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
      
      Show
      JBossFuse:karaf@root> features:install spring-dm-web JBossFuse:karaf@root> install mvn:nl.finalist/war-test/0.0.1-SNAPSHOT/war Bundle ID: 269 JBossFuse:karaf@root> start 269 It can be accesed via a browser at: http://localhost:8181/war-test/test And it will give the following error: HTTP ERROR 500 Problem accessing /war-test/test. Reason: Server Error Caused by: org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP PWC6199: Generated servlet error: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required . class files at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:123) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296) at org.apache.jasper.compiler. Compiler .generateClass( Compiler .java:376) at org.apache.jasper.compiler. Compiler .compile( Compiler .java:437)
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

    Description

      Jasper in Karaf is not able to compile JSPs when using Java 1.8.
      Same code works fine under Java 1.7

      Undelying issue somehow similar to AMQ-5356. Solution for that issue was to use a Java array rather than map entries.

      Attachments

        1. 0001-Upgraded-ECJ-to-v4.4.2.patch
          1 kB
        2. pax-web-jsp-3.2.5.jar
          3.38 MB
        3. war-test.zip
          15 kB
        4. war-test-no-osgi.zip
          8.05 MB

        Issue Links

          Activity

            People

              pantinor@redhat.com Paolo Antinori
              rhn-support-abelkour Mohamed Amine Belkoura
              Josef Ludvicek Josef Ludvicek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: