4 Replies Latest reply on Sep 23, 2008 2:51 AM by Robert Morse

    facesContextFactory Seam 2.1.0

    Robert Morse Apprentice

      Hello, I have a Mavenized Seam project that worked under Seam 2.0.x, but has a problem under 2.1.0-BETA1 and SNAPSHOT.  Basically, the user enters some database search criteria, the application retrieves the information and creates several Excel spreadsheets that are displayed to the user.   To display the Excel spreadsheet, I'm using:


      renderer.render(/view/summaryExcel.xhtml)


      from inside my Seam component.  I believe the mail examples used a similar approach, so I'm using it here, however, I don't know if that's the proper way to render a PDF or spreadsheet from within the component.  If not, I'd appreciate knowing the proper way.  In any case, under Seam 2.0.x and JBoss 4.2.2.GA, this works just fine.  Under Seam 2.1.x and JBoss 4.2.2.GA, I get the following exception (abbreviated here, but more is available):


      13:13:05,442 FATAL [application] org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.ui.facelet.facesContextFactory
      javax.faces.el.EvaluationException: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.ui.facelet.facesContextFactory
              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)

      and


      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.ui.facelet.facesContextFactory
              at org.jboss.seam.Component.newInstance(Component.java:2047)
              at org.jboss.seam.Component.getInstance(Component.java:1929)
              at org.jboss.seam.Component.getInstance(Component.java:1908)
              at org.jboss.seam.Component.getInstance(Component.java:1885)
              at org.jboss.seam.Component.getInstance(Component.java:1880)
              at org.jboss.seam.ui.facelet.RendererFacesContextFactory.instance(RendererFacesContextFactory.java:72)



      I only mention that this is a Mavenized project in the event that Maven is including something that might be causing this, although I didn't see anything obvious.