ICEfaces
  1. ICEfaces
  2. ICE-2405

GlassfishV2 problem loading D2DSeamFaceletViewHandler

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7DR#3
    • Fix Version/s: 1.7DR#3, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Seam, GlassfishV2 AS, jsf-1.2
    • Affects:
      Compatibility/Configuration

      Description

      Using Glassfish V2 AS returns the org.jboss.seam.Seam method getVersion() as null ( code from this class as follows:-
         public static String getVersion()
         {
            Package pkg = Seam.class.getPackage();
            return pkg != null ? pkg.getImplementationVersion() : null;
         }

      Since we were using this in our SeamUtilties class to determine whether the SeamExpressionFactory would be loaded for the facelets compiler, (Seam1.2.1.GA uses the SeamExpressionFactory), we need to change the method in SeamUtilities to not be dependent on this(above) method

      problem in Glassfish V2 ? Same method in Seam (without ICEfaces) still returns null on this server.

        Activity

        Judy Guglielmin created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15218 Wed Nov 21 14:43:44 MST 2007 judy.guglielmin ICE-2405 cannot use Seam class (org.jboss.seam.Seam) to find Seam version since Glassfish has problems with getImplementationVersion() of java class Package.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/util/SeamUtilities.java
        Hide
        Judy Guglielmin added a comment -

        Since the SeamExpressionFactory is not in the jboss-seam.jar (it's in jboss-seam-ui.jar which is packaged in the war of an ear deployment), use SeamELResolver as it is related and only occurs in Seam-1.2.1.GA and previous versions of Seam. From 1.3.0.Alpha to current 2.0.0.GA release, this class is not there. Thus, compiler for D2DSeamFaceletViewHandler can be initialized properly no matter which version of seam is used.

        only affects SeamUtilities class which is used by D2DSeamFaceletViewHandler.

        Show
        Judy Guglielmin added a comment - Since the SeamExpressionFactory is not in the jboss-seam.jar (it's in jboss-seam-ui.jar which is packaged in the war of an ear deployment), use SeamELResolver as it is related and only occurs in Seam-1.2.1.GA and previous versions of Seam. From 1.3.0.Alpha to current 2.0.0.GA release, this class is not there. Thus, compiler for D2DSeamFaceletViewHandler can be initialized properly no matter which version of seam is used. only affects SeamUtilities class which is used by D2DSeamFaceletViewHandler.
        Judy Guglielmin made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.7DR#3 [ 10112 ]
        Affects [Compatibility/Configuration]
        Resolution Fixed [ 1 ]
        Assignee Judy Guglielmin [ judy.guglielmin ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Judy Guglielmin [ judy.guglielmin ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Judy Guglielmin
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: