myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: tomahawk t:saveState and HTTPSession
Date Thu, 08 Mar 2012 17:54:45 GMT
Hi

The report doesn't sounds like something related to tomahawk t:saveState.
Are you invalidating the session (logout or something like that)? If the session
is invalidated and then it is manipulated, an IllegalStateException
could happen.
In that case, a redirect could solve the problem.

regards,

Leonardo Uribe

2012/3/8 Anton Gavazuk <antongavazuk@gmail.com>:
> Hi Jacob,
>
> I dont know if tomahawk is compatible with your version, even more - I dont
> know if this combination works fine in OC4J container which you are using -
> its something that you need to verify.
>
> Why do you need to get access to session in getter method? what are you
> looking for in session and what makes you think that saveState component is
> root cause of the issue?
>
> Thanks,
> Anton
>
> 2012/3/8 jacobpan <jacob.elias@gmail.com>
>
>>
>> External content is used to make the session available like the following:
>>  session = (HttpSession)context.getExternalContext().getSession(false);
>>
>> I have added all extensions in web.xml, copied from myfaces site. My
>> web.xml
>> is pasted below.
>> My Tomahawk version is tomahawk-1.1.11 I guess it is compatible with JSF
>> 1.1, correct me if I am wrong.
>>
>> Web.xml
>>
>> <?xml version = '1.0' encoding = 'windows-1252'?>
>> <web-app 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" version="2.4"
>> xmlns="http://java.sun.com/xml/ns/j2ee">
>>    <description>Empty web.xml file for Web Application</description>
>>    <filter>
>>        <filter-name>extensionsFilter</filter-name>
>>        <filter-class>
>> org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
>>        <init-param>
>>            <description>Set the size limit for uploaded files. Format:
10 -
>> 10 bytes 10k - 10
>>                KB 10m - 10 MB 1g - 1 GB
>>            </description>
>>            <param-name>uploadMaxFileSize</param-name>
>>            <param-value>100m</param-value>
>>        </init-param>
>>        <init-param>
>>            <description>Set the threshold size - files below this limit
are
>> stored in
>>                memory, files above this limit are stored on disk. Format:
>> 10 - 10 bytes 10k -
>>                10 KB 10m - 10 MB 1g - 1 GB
>>            </description>
>>            <param-name>uploadThresholdSize</param-name>
>>            <param-value>100k</param-value>
>>        </init-param>
>>    </filter>
>>    <filter-mapping>
>>        <filter-name>extensionsFilter</filter-name>
>>        <url-pattern>*.jsf</url-pattern>
>>    </filter-mapping>
>>    <filter-mapping>
>>        <filter-name>extensionsFilter</filter-name>
>>        <url-pattern>/faces/*</url-pattern>
>>    </filter-mapping>
>>    <filter-mapping>
>>            <filter-name>extensionsFilter</filter-name>
>>            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>>    </filter-mapping>
>>    <context-param>
>>        <param-name>org.apache.myfaces.redirectTracker.POLICY</param-name>
>>
>>
>> <param-value>org.apache.myfaces.custom.redirectTracker.policy.FullRedirectTrackPolicy</param-value>
>>    </context-param>
>>    <servlet>
>>        <servlet-name>Faces Servlet</servlet-name>
>>        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>>        <load-on-startup>1</load-on-startup>
>>    </servlet>
>>    <servlet>
>>        <servlet-name>Login</servlet-name>
>>        <servlet-class>vms_proj.Login</servlet-class>
>>    </servlet>
>>    <servlet-mapping>
>>        <servlet-name>Faces Servlet</servlet-name>
>>        <url-pattern>/faces/*</url-pattern>
>>    </servlet-mapping>
>>    <servlet-mapping>
>>        <servlet-name>Login</servlet-name>
>>        <url-pattern>/login</url-pattern>
>>    </servlet-mapping>
>>    <session-config>
>>        <session-timeout>35</session-timeout>
>>    </session-config>
>>    <mime-mapping>
>>        <extension>html</extension>
>>        <mime-type>text/html</mime-type>
>>    </mime-mapping>
>>    <mime-mapping>
>>        <extension>txt</extension>
>>        <mime-type>text/plain</mime-type>
>>    </mime-mapping>
>>    <welcome-file-list>
>>        <welcome-file>index.html</welcome-file>
>>    </welcome-file-list>
>>    <jsp-config/>
>> </web-app>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/tomahawk-t%3AsaveState-and-HTTPSession-tp33465710p33466274.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>

Mime
View raw message