ICEfaces
  1. ICEfaces
  2. ICE-9529

Add ability to configure the base path of an application (was: Port ICE-7941 feature into ICEfaces 3.x codebase)

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces
    • Assignee Priority:
      P1
    • Salesforce Case Reference:
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration

      Description

      We need to port ICE-7941 feature for configuring an external base path we have in 1.8 code into the 3.0 code so that customers can use reverse proxies or load balancers in their setup.

        Activity

        Hide
        Mircea Toma added a comment -

        Introduced view handler that translates resource, action, bookmark and redirect paths into paths that have their context path changed so that reverse proxies do not need URL rewrite the served content.

        Show
        Mircea Toma added a comment - Introduced view handler that translates resource, action, bookmark and redirect paths into paths that have their context path changed so that reverse proxies do not need URL rewrite the served content.
        Hide
        Mircea Toma added a comment -

        Add docs for context parameter.

        Show
        Mircea Toma added a comment - Add docs for context parameter.
        Hide
        Mircea Toma added a comment -
        Show
        Mircea Toma added a comment - Added docs here: http://www.icesoft.org/wiki/display/ICE/publicContextPath
        Hide
        Mircea Toma added a comment -

        Please try to access the start page directly, specifically to avoid the redirection (not relevant to fix for the testing). So accessing the app using http://localhost:8080/bla/showcase.jsf should do the trick.

        Show
        Mircea Toma added a comment - Please try to access the start page directly, specifically to avoid the redirection (not relevant to fix for the testing). So accessing the app using http://localhost:8080/bla/showcase.jsf should do the trick.
        Hide
        Carmen Cristurean added a comment -

        Verified with showcase app on tomcat7, and component-showcase on tomcat6.

        Testing steps (Tomcat7):

        • download/deploy j2ep-1.0.war onto tomcat7, with data.xml modified:

        <?xml version="1.0" encoding="UTF-8"?>
        <config>
        <server className="net.sf.j2ep.servers.BaseServer"
        domainName="localhost:8080" path="/showcase"
        isRewriting="false">
        <rule className="net.sf.j2ep.rules.DirectoryRule"
        directory="/bla"
        />
        </server>
        </config>

        • add to showcase's web.xml:
          <context-param>
          <param-name>org.icefaces.publicContextPath</param-name>
          <param-value> /j2ep-1.0/bla</param-value>
          </context-param>
        • add sessionCookiePath="/" attribute to Context tag in $tomcat/conf/context.xml:

        For tomcat6 (component-showcase app), an additional step is required:

        • add emptySessionPath="true" on the Connector tag in $tomcat/conf/server.xml file

        Note: data.xml content in j2ep-1.0 app must be updated for component-showcase.

        Show
        Carmen Cristurean added a comment - Verified with showcase app on tomcat7, and component-showcase on tomcat6. Testing steps (Tomcat7): download/deploy j2ep-1.0.war onto tomcat7, with data.xml modified: <?xml version="1.0" encoding="UTF-8"?> <config> <server className="net.sf.j2ep.servers.BaseServer" domainName="localhost:8080" path="/showcase" isRewriting="false"> <rule className="net.sf.j2ep.rules.DirectoryRule" directory="/bla" /> </server> </config> add to showcase's web.xml: <context-param> <param-name>org.icefaces.publicContextPath</param-name> <param-value> /j2ep-1.0/bla</param-value> </context-param> add sessionCookiePath="/" attribute to Context tag in $tomcat/conf/context.xml: use URL to access the start page directly: http://localhost:8080/j2ep-1.0/bla/showcase.jsf For tomcat6 (component-showcase app), an additional step is required: add emptySessionPath="true" on the Connector tag in $tomcat/conf/server.xml file Note: data.xml content in j2ep-1.0 app must be updated for component-showcase.

          People

          • Assignee:
            Liana Munroe
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: