4 Replies Latest reply on Nov 9, 2006 11:14 AM by ssilvert

    JSF and JBoss

    angbellavia

      I'm trying to run a JSF example in my application and I allways get the following error:

      org.apache.jasper.JasperException: Exception in JSP: /searchForm.jsp:5

      2: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      3: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      4:
      5: <f:view>
      6:
      7: Freedom Airlines Online Flight Reservation System
      8:


      any ideas?

        • 1. Re: JSF and JBoss
          aegirsun

          Have you write the </f:view> to close the tag?

          • 2. Re: JSF and JBoss
            mrchit_2000

            Hi,
            I don't have the answer you have but rather a question. I wonder what platform, tool do you use for the JSF development. I am using the bundle eclipse+lomboz plugin from lomboz's website. I am able to create EJB but I cannot create a simply dynamic web project with JSP/JSF page. Exceptions happen and stack over flow when I opened the JSP/JSF page I created. So I am really appreciated if you could tell me if what development platform you are using.
            Thank you very much.

            -Luong

            • 3. Re: JSF and JBoss
              angbellavia

              Yes I did close the tag...


              I recieved the files from the Sun web site....I was told that you need the following JARs in the /lib directory of your project:

              commons-beanutils.jar, commons-collections.jar, commons-digester.jar, commons-logging.jar, jsf-api.jar jsf-impl.jar, jstl.jar and standard.jar

              I still can get any JSF to work....:(

              • 4. Re: JSF and JBoss
                ssilvert

                JBoss is using MyFaces. If you downloaded a JSF app from Sun then it is probably configured to use the Sun JSF implementation. I suspect you will need to change your web.xml to use the proper ServletContextListener.

                Also, you don't need all those jars you mentioned in your web app because they already ship with JBoss. See http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces

                Regards,

                Stan