ICEfaces
  1. ICEfaces
  2. ICE-6729

outputStyle doesn't switch CSS files for different User-Agents on WebLogic

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.0-EE-Beta1
    • Fix Version/s: EE-2.0.0.GA
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      WebLogic 10.3.4, ICEfaces 2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      The ice:outputStyle tag is not switching the CSS extension for different User-Agents/Browsers when deploying on WebLogic. It is working when deployed on Tomcat.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached war file that is ready to be deployed on WebLogic.

        Show
        Arran Mccullough added a comment - Attached war file that is ready to be deployed on WebLogic.
        Hide
        Ted Goddard added a comment -

        Please set this up on WebLogic and I will connect to the server to test.

        Show
        Ted Goddard added a comment - Please set this up on WebLogic and I will connect to the server to test.
        Hide
        Ted Goddard added a comment -

        It may be possible to use <show-archived-real-path-enabled> on WebLogic:

        http://download.oracle.com/docs/cd/E11035_01/wls100/issues/known_resolved.html

        If you deploy a web app as an archive war file, then context.getRealPath() returns null. This behavior can lead to certain failures in cases where the web app is dependent on the path.
        Solution:
        Use the <show-archived-real-path-enabled> flag to specify that context.getRealPath() returns the path of the resource from the Server's internal webapp extraction directory for archived web applications. The flag can be configured in two ways:
        At domain level in config.xml. For example:
        <web-app-container>
        <show-archived-real-path-enabled>true
        </show-archived-real-path-enabled>
        </web-app-container>
        At the web app level in weblogic.xml. For example:
        <container-descriptor>
        <show-archived-real-path-enabled>true
        </show-archived-real-path-enabled>
        </container-descriptor>
        The value of <show-archived-real-path-enabled> set in the web app has precedence over the value set at the domain level. The default value of this property is false.
        Note that, if this path is used to dynamically copy some content to this directory location, the content will end up in the Server's internal web app extraction directory. When the web app is recompiled for any reason, the web app may be re-extracted and previously copied content will be lost.

        Show
        Ted Goddard added a comment - It may be possible to use <show-archived-real-path-enabled> on WebLogic: http://download.oracle.com/docs/cd/E11035_01/wls100/issues/known_resolved.html If you deploy a web app as an archive war file, then context.getRealPath() returns null. This behavior can lead to certain failures in cases where the web app is dependent on the path. Solution: Use the <show-archived-real-path-enabled> flag to specify that context.getRealPath() returns the path of the resource from the Server's internal webapp extraction directory for archived web applications. The flag can be configured in two ways: At domain level in config.xml. For example: <web-app-container> <show-archived-real-path-enabled>true </show-archived-real-path-enabled> </web-app-container> At the web app level in weblogic.xml. For example: <container-descriptor> <show-archived-real-path-enabled>true </show-archived-real-path-enabled> </container-descriptor> The value of <show-archived-real-path-enabled> set in the web app has precedence over the value set at the domain level. The default value of this property is false. Note that, if this path is used to dynamically copy some content to this directory location, the content will end up in the Server's internal web app extraction directory. When the web app is recompiled for any reason, the web app may be re-extracted and previously copied content will be lost.
        Hide
        Arran Mccullough added a comment -

        Setting <show-archived-real-path-enabled>true</show-archived-real-path-enabled> in the weblogic.xml file resolved the issue for me.

        Show
        Arran Mccullough added a comment - Setting <show-archived-real-path-enabled>true</show-archived-real-path-enabled> in the weblogic.xml file resolved the issue for me.
        Hide
        Ken Fyten added a comment -

        We should add this to our EE WIki for WebLogic config. info.

        Show
        Ken Fyten added a comment - We should add this to our EE WIki for WebLogic config. info.
        Hide
        Ted Goddard added a comment -

        If outputStyle is modified to use getResourceAsStream() rather than getRealPath() it should be possible for it to work on WebLogic without the configuration parameter.

        Show
        Ted Goddard added a comment - If outputStyle is modified to use getResourceAsStream() rather than getRealPath() it should be possible for it to work on WebLogic without the configuration parameter.

          People

          • Assignee:
            Arran Mccullough
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: