JBoss Clustering
  1. JBoss Clustering
  2. JBCLUSTER-298

FacesContext is null while replicating session in Jboss 6.1

    Details

    • Type: Bug Bug
    • Status: Open (View Workflow)
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: EJB3
    • Labels:
    • Environment:
      jdk 1.6.0_26, jboss 6.1, seam 2.2.2 final, ejb 3, jsf 1.2
    • Similar Issues:
      Show 10 results 

      Description

      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

        Gliffy Diagrams

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Paul Ferraro
              Reporter:
              Dilek Cingel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development