Hi Martin!

Can you post your web.xml?

See my web.xml atteched at the bottom


Wild shot: did you get rid of the StartupServletContextListener in
web.xml, as this is not necessary in MyFaces 1.1.0 anymore?

Yes, I had the StartupServletContextListener in my web.xml, removed, but the problem remains the same.


<?xml version="1.0" encoding="UTF-8"?>

<!--
 * xxx web.xml Datei
-->

<web-app   version="2.4"
             xmlns="http://java.sun.com/xml/ns/j2ee";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

    <description>xxx web.xml</description>

    <context-param>
        <description>
Comma separated list of URIs of (additional) faces config files.
            (e.g. /WEB-INF/my-config.xml)
            See JSF 1.0 PRD2, 10.3.2
        </description>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>
            /WEB-INF/faces-config.xml
        </param-value>
    </context-param>

    <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>client</param-value>
    </context-param>

    <context-param>
        <description>
This parameter tells MyFaces if javascript code should be allowed in the
            rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
            that submits the corresponding form.
If javascript is not allowed, the state saving info and nested parameters
            will be added as url parameters.
            Default: "true"
        </description>
        <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
        <param-value>true</param-value>
    </context-param>

    <context-param>
        <description>
If true, rendered HTML code will be formatted, so that it is "human readable". i.e. additional line separators and whitespace will be written, that do not
            influence the HTML code.
            Default: "true"
        </description>
        <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
        <param-value>true</param-value>
    </context-param>

    <context-param>
        <description>
            Default: "false"
        </description>
        <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
        <param-value>false</param-value>
    </context-param>

    <context-param>
        <description>
            Default: "false"
        </description>
        <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
        <param-value>false</param-value>
    </context-param>

<!-- Config parameter fuer den xxx -->
    <context-param>
        <description>
                Wenn "true", dann wird ein zusaetzliches Debug Menue 
eingeblendet.
                Kann "true" oder "false" sein. Default ist "false".
        </description>
        <param-name>de.xxx.DEBUG_MENU</param-name>
        <param-value>true</param-value>
    </context-param>

    <error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/pages/tomcatErrorPage.jsp</location>
    </error-page>

    <!-- Faces Servlet -->
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <!-- Faces Filter, wird z.B. von x:popup benutzt -->
    <filter>
        <filter-name>MyFacesExtensionsFilter</filter-name>

<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    </filter>

    <!-- Faces Servlet Mapping -->
    <filter-mapping>
                <filter-name>MyFacesExtensionsFilter</filter-name>
                <url-pattern>/faces/*</url-pattern>
        </filter-mapping>

    <!-- Filter, der die Session überwacht -->
    <filter>
        <filter-name>SessionFilter</filter-name>
        <filter-class>de.xx.SessionRequestFilter</filter-class>
    </filter>

    <!-- Jede Anforderung soll den Filter durchlaufen -->
    <filter-mapping>
                <filter-name>SessionFilter</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>
        
        
    <filter>
        <filter-name>GraphVizFilter</filter-name>
        <filter-class>de.xxx.GraphVizRequestFilter</filter-class>
    </filter>

    <!-- Filter nur für entsprechende Endung -->
    <filter-mapping>
                <filter-name>GraphVizFilter</filter-name>
                <url-pattern>*.graphviz</url-pattern>
        </filter-mapping>

    <!-- extension mapping -->
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

    <!-- Welcome files -->
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

</web-app>

Reply via email to