ICEmobile
  1. ICEmobile
  2. MOBI-356

default web.xml from Eclipse doesn't work with ICEmobile menu-template

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.1 Final
    • Fix Version/s: 1.2 Final
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      Eclipse

      Description

      Both Judy and Tyler confirmed that default web.xml from Eclipse seems causing problem with menu template specifically on Mac with latest Tomcat 7.0. But not on Windows.

      Since there is no menu template in 1.2 beta release. re-target to 1.2 final

        Activity

        Hide
        Liming Wu added a comment - - edited

        <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <context-param>
        <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
        </context-param>
        <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>resources.application</param-value>
        </context-param>
        <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
        </listener>

        Looks like either javax.servlet.jsp.jstl.fmt.localizationContext or com.sun.faces.config.ConfigureListener
        But removing these 2 doesn't seem to solve the problem with menu template. Replacing web.xml with the one from menu-template just solves the problem.

        Only differences are
        metadata-complete="false", and the above 2 entries.

        metadata-complete="false" is default setting anyway.

        was:
        Default web.xml from Eclipse seems causing problem with menu template specifically.

        <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <context-param>
        <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
        </context-param>
        <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>resources.application</param-value>
        </context-param>
        <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
        </listener>

        Looks like either javax.servlet.jsp.jstl.fmt.localizationContext or com.sun.faces.config.ConfigureListener
        But removing these 2 doesn't seem to solve the problem with menu template. Replacing web.xml with the one from menu-template just solves the problem.

        Only differences are
        metadata-complete="false", and the above 2 entries.

        metadata-complete="false" is default setting anyway.

        Show
        Liming Wu added a comment - - edited <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <context-param> <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>resources.application</param-value> </context-param> <listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> </listener> Looks like either javax.servlet.jsp.jstl.fmt.localizationContext or com.sun.faces.config.ConfigureListener But removing these 2 doesn't seem to solve the problem with menu template. Replacing web.xml with the one from menu-template just solves the problem. Only differences are metadata-complete="false", and the above 2 entries. metadata-complete="false" is default setting anyway. was: Default web.xml from Eclipse seems causing problem with menu template specifically. <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <context-param> <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>resources.application</param-value> </context-param> <listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> </listener> Looks like either javax.servlet.jsp.jstl.fmt.localizationContext or com.sun.faces.config.ConfigureListener But removing these 2 doesn't seem to solve the problem with menu template. Replacing web.xml with the one from menu-template just solves the problem. Only differences are metadata-complete="false", and the above 2 entries. metadata-complete="false" is default setting anyway.
        Hide
        Liming Wu added a comment -

        default web.xml works now. Marked this invalid

        Show
        Liming Wu added a comment - default web.xml works now. Marked this invalid

          People

          • Assignee:
            Liming Wu
            Reporter:
            Liming Wu
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: