[jboss-jira] [JBoss JIRA] (JBCLUSTER-298) FacesContext is null while replicating session in Jboss 6.1

Dilek Cingel (JIRA) jira-events at lists.jboss.org
Thu Apr 26 09:05:18 EDT 2012


Dilek Cingel created JBCLUSTER-298:
--------------------------------------

             Summary: FacesContext is null while replicating session in Jboss 6.1
                 Key: JBCLUSTER-298
                 URL: https://issues.jboss.org/browse/JBCLUSTER-298
             Project: JBoss Clustering
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: EJB3
         Environment: jdk 1.6.0_26, jboss 6.1, seam 2.2.2 final, ejb 3, jsf 1.2
            Reporter: Dilek Cingel
            Assignee: Paul Ferraro


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.

Thanks,
Dilek

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list