Hi All,
I use jboss 6.1 and seam 2.2.2 in my project, and when i enable persistent session, i get an error caused by "FacesContext is null".
Here is how did i configure jboss to use persistent session;
I inserted "httpsessions" table in db and added datasource configuration for this table in server.
I added a file named context.xml
to src\main\webapp\WEB-INF
and it has the following contents:
context.xml
<Context cookies="true" crossContext="true"> <Manager className="org.jboss.web.tomcat.service.session.persistent.DataSourcePersistentManager" dataSourceJndiName="java:SESSIONSDS"/> </Context>
Server starts succesfully, but when i call application url i get "java.lang.NullPointerException" caused by FacesContext is null.
Any helps would be greatly appreciated
Thanks,
Dilek