javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1828

java.lang.ClassNotFoundException: com.sun.el.lang.VariableMapperImpl

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.1.13
    • Fix Version/s: 2.1.18, 2.2.0-m09
    • Component/s: state saving
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,828
    • Status Whiteboard:
      Hide

      size_medium importance_medium

      Show
      size_medium importance_medium

      Description

      When client-side state saving is used, and a view contains a method expression
      for a method of an object that is passed to a Facelets template as a variable,
      restoring the view will throw a ClassNotFoundException for
      com.sun.el.lang.VariableMapperImpl.

      (VariableMapperImpl is used in orig.varMapper for the TagMethodExpression object
      for the method expression, with orig being an instance of MethodExpressionImpl)

      I'm running Mojarra on Glassfish 3.0.1.

      Attached is a simple testcase: when the form in index.xhtml is submitted, an
      exception will be thrown.

        Issue Links

          Activity

          Hide
          Puls added a comment -

          This issue still exists on Glassfish 3.1.2 with Client-Sie-State Saving.

          Show
          Puls added a comment - This issue still exists on Glassfish 3.1.2 with Client-Sie-State Saving.
          Hide
          Manfred Riem added a comment -

          Can you verify if it is still a problem with the most recent 2.1 release?

          Show
          Manfred Riem added a comment - Can you verify if it is still a problem with the most recent 2.1 release?
          Hide
          Puls added a comment - - edited

          I can confirm that it still exists on 2.1.13 as that is our production and tetsing version.

          Havent had any time to test with a newer release.

          Show
          Puls added a comment - - edited I can confirm that it still exists on 2.1.13 as that is our production and tetsing version. Havent had any time to test with a newer release.
          Hide
          niklasg added a comment -

          I got a ClassNotFoundException for com.sun.el.lang.FunctionMapperImpl with Glassfish 3.1.2.2. I think the problem is that the javax.el.jar bundle exports com.sun.el but not com.sun.el.lang:

          g! lb javax.el
          START LEVEL 3
             ID|State      |Level|Name
            138|Active     |    1|Expression Language API 2.2 (2.2.4)
            151|Resolved   |    1|Expression Language Implementation (2.2.3)
          g! inspect package capability 151
          org.glassfish.web.javax.el [151] exports packages:
          --------------------------------------------------
          com.sun.el; version=0.0.0 imported by:
             GlassFish-Application-Common-Module [34]
          

          After updating the manifest to export com.sun.el.lang, uninstalling the old bundle and installing the new one the problem disappeared.

          Export-Package: com.sun.el;uses:="javax.el",com.sun.el.lang;uses:="ja
           vax.el"
          
          Show
          niklasg added a comment - I got a ClassNotFoundException for com.sun.el.lang.FunctionMapperImpl with Glassfish 3.1.2.2. I think the problem is that the javax.el.jar bundle exports com.sun.el but not com.sun.el.lang: g! lb javax.el START LEVEL 3 ID|State |Level|Name 138|Active | 1|Expression Language API 2.2 (2.2.4) 151|Resolved | 1|Expression Language Implementation (2.2.3) g! inspect package capability 151 org.glassfish.web.javax.el [151] exports packages: -------------------------------------------------- com.sun.el; version=0.0.0 imported by: GlassFish-Application-Common-Module [34] After updating the manifest to export com.sun.el.lang, uninstalling the old bundle and installing the new one the problem disappeared. Export-Package: com.sun.el;uses:="javax.el",com.sun.el.lang;uses:="ja vax.el"
          Hide
          Manfred Riem added a comment -

          Please see issue 2681 for resolution!

          Show
          Manfred Riem added a comment - Please see issue 2681 for resolution!

            People

            • Assignee:
              Manfred Riem
              Reporter:
              omolenkamp
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: