8 Replies Latest reply on Feb 2, 2010 11:41 AM by void_void

    Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?

      Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?

       

      i am trying to deploy sample hello world application in jboss 4.0.2 ..

      but after a day of work still i am facing deployment exceptions.

       

      then i read,

       

      The JSF specification was developed under the Java Community Process (JCP) as JSR 127, which released JSF 1.0 and 1.1, and JSR 252 which released JSF 1.2. The first release of JSF is JSF 1.0 in 2004. JSF 1.0 supports servlet 2.3 and jsp 1.2. After JSF 1.0, JSF 1.1 was released. The main purpose of this release was bug-fixing. There were no specification or HTML renderkit changes. This version also works with same version of servlet 2.3 and jsp 1.2 as in the case of JSF 1.0

       

      and following this link i got tomcat version on jboss4.0.2 doesn't supports jsf'sservlet specifications,

       

       

      http://community.jboss.org/wiki/VersionOfTomcatInJBossAS

       

       

      so is there any way around ?

      in any case i can't upgrade my jboss

      so is there any way, can i configure tomcat 6 with jboss 4.0.2 ?

       

      Thanks in advance..

        • 1. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?
          jaikiran

          We have a dedicated forum for JSF on JBossAS. I'll move this thread there.

          • 2. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?
            ok.
            • 3. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?
              ssilvert

              JSF 1.1 should work with 4.0.2.  Just bundle it with your WAR the same way you would do with Tomcat.

               

              Starting with 4.0.3, JBoss bundles a JSF implementation with the server:

              JBossFaces

               

              JSF 1.2 will not work with 4.0.2 because it requires Servlet 2.5.

               

              Stan

              • 4. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?

                can we configure tomcat's higher version for jboss4.0.2 ?

                • 5. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?
                  ssilvert

                  void_void wrote:

                   

                  can we configure tomcat's higher version for jboss4.0.2 ?

                  I'm not sure what you mean.  You can't change the Tomcat version shipped with 4.0.2.  It is Tomcat 5.5.9, which allows you to run JSF 1.1 applications.

                   

                  Stan

                  • 6. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?

                    ok..

                    thanks..

                    i got the way..

                    now started real work.

                    will ask you if i will find any configurational problem thanks man

                    • 7. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?

                      I have configured a sample application it is working fine.

                       

                      following is the conf..

                       

                      <?xml version="1.0"?>

                      <!DOCTYPE web-app PUBLIC

                        "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

                        "http://java.sun.com/dtd/web-app_2_3.dtd">

                      <web-app>

                       

                          <context-param>

                              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

                              <param-value>server</param-value>

                          </context-param>

                       

                          <context-param>

                              <param-name>javax.faces.CONFIG_FILES</param-name>

                              <param-value>/WEB-INF/faces-config.xml</param-value>

                          </context-param>

                       

                          <listener>

                              <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

                          </listener>

                       

                          <!-- Faces Servlet -->

                          <servlet>

                              <servlet-name>Faces Servlet</servlet-name>

                              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                              <load-on-startup> 1 </load-on-startup>

                          </servlet>

                       

                       

                          <!-- Faces Servlet Mapping -->

                          <servlet-mapping>

                              <servlet-name>Faces Servlet</servlet-name>

                              <url-pattern>*.jsf</url-pattern>

                          </servlet-mapping>

                       

                      </web-app>

                      now if i try to integrate it with my other web application.
                      i am getting
                      22:07:33,941 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                      java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
                      at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1233)
                      at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
                      at com.sun.faces.context.SessionMap.put(ExternalContextImpl.java:556)
                      at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:138)
                      at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:169)
                      at org.apache.jsp.pages.inputname_jsp._jspx_meth_f_view_0(org.apache.jsp.pages.inputname_jsp:131)
                      at org.apache.jsp.pages.inputname_jsp._jspService(org.apache.jsp.pages.inputname_jsp:80)
                      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
                      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                      • 8. Re: Is it possible to deploy jsf 1.2 or 1.1 application in jboss 4.0.2 ?

                        i tried implementing my ModelBean serializable ..

                         

                         

                         

                        then also i am getting same exception ..