2 Replies Latest reply on Dec 9, 2009 3:33 PM by piotr.sobczyk

    Seam 2.2.0 GA on Tomcat 5.5, problem with JSP version?

    piotr.sobczyk

      Hello,


      I have read an article about running Seam on Tomcat (http://seamframework.org/Documentation/RunningASeamgenProjectOnApacheTomcatWithoutEmbeddedJBoss) very carefully. After applying everything from the article I still have a lot of problems (especially library dependences) but I finally overcome most of them to the moment where I get an exception:


      com.sun.faces.config.ConfigureListener
      com.sun.faces.config.ConfigurationException: It appears the JSP version of the container is older than 2.1 and unable to locate the EL RI expression factory, com.sun.el.ExpressionFactoryImpl.  If not using JSP or the EL RI, make sure the context initialization parameter, com.sun.faces.expressionFactory, is properly set.
           at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:546)
           at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:212)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)



      I really don't know what to do now. I tried to copy jsf-api.jar and jsf-impl.jar (that $SEAM-HOME/lib just as example tomcat55 build script from examples/hiberante uses) directly to $CATALINA-HOME/common/libs, I even tried to add there jstl.jar and standard.jar from tomcat jsp example like Tomcat domcumentation advises here: http://www.horstmann.com/bigj2/tomcat-jsf.html but it didn't help. Has anyone came across similar problem?


      I really need help, thanks in advance.

        • 1. Re: Seam 2.2.0 GA on Tomcat 5.5, problem with JSP version?
          piotr.sobczyk

          Ok, I added web.xml entry that exception message suggests to add:


          <context-param>
                  <param-name>com.sun.faces.expressionFactory</param-name>
                  <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
          </context-param>



          Now I'm explicitly pointing that I want to user jboss EL implementation of expression factory. However this entry seems to be ignored and the exception remains :(.

          • 2. Re: Seam 2.2.0 GA on Tomcat 5.5, problem with JSP version?
            piotr.sobczyk

            Allright, it seems that I finally solved this problem. The solution was to put archive jboss-el.jar from Seam distribution into commons/lib directory of Tomcat 5.5 or into lib directory of Tomcat 6 (and not in application's lib!). There is no need to add anything to web.xml.