0 Replies Latest reply: Apr 26, 2012 8:56 AM by Dilek Cingel RSS

FacesContext is null while replicating session in Jboss 6.1

Dilek Cingel Newbie

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