6 Replies Latest reply on Dec 21, 2007 6:04 PM by parki

    Run rich faces under Tomcat

    parki

      Hello!

      I have a simple RichFaces application, which doesn't rely on any JBoss specific features, and so am wondering if I can deploy it under simply Tomcat - I don't need all that JBoss provides, and so I'm figuring that a lighter app container will speed up things.

      Has anyone done this?

      My app generates a war and ear file. If I deploy the ear to JBoss, it works beauty. If I deploy the war file to Tomcat, it doesn't start.

      Thanks.

      parki...


        • 1. Re: Run rich faces under Tomcat

          You are probably missing the "Most Important Links" page (link is below)

          The main richfaces-demo is working under Tomcat 5.5

          The different between deployment under J2EE, Tomcat6 and JavaEE 5 is a set of jar files.

          • 2. Re: Run rich faces under Tomcat
            parki

            Thanks Sergey.

            I am able to get the demo app working in Tomcat5, which is very cool.

            So this is good, but when I try to run my app (which runs under JBoss) I get an exception (see below).

            I took a look at some other postings related, but unsure how to fix it.

            My app is now using the _same_ jars as in the demo, but it appears that there is some issue with JSP?

            Thanks.

            parki...



            javax.servlet.ServletException: javax/servlet/jsp/tagext/JspIdConsumer
            org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

            root cause

            java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/JspIdConsumer




            • 3. Re: Run rich faces under Tomcat

              Use facelets instead of JSP if you want to run your app under jboss.

              • 4. Re: Run rich faces under Tomcat
                parki

                Hi Sergey:

                I'm new to all this - how do I use facelets as opposed to JSP?

                Is this a simple refactoring exercise?

                Thanks.

                parki...


                • 5. Re: Run rich faces under Tomcat
                  • 6. Re: Run rich faces under Tomcat
                    parki

                    Thanks Sergey.

                    I went the other direction - since the examples are working under Tomcat, I'm going to refactor my web app basing it on the example code - should be much easier to do this (as I'm starting with something that works).

                    Appreciated.

                    parki..