3 Replies Latest reply on Aug 19, 2013 11:44 AM by tsimpson

    Converting JSF 1.2 project from JBoss 4.2 to JBoss AS7

    tsimpson

      I am trying to convert my project from running on JBoss 4.2 to running on JBoss 7.1.1.  I have successfully made all the changes to the dependency tree and modified my web.xml, faces-config.xml, and standalone.xml to work with it.  Now that I finally have it successfully deploying I have an issues that I am not sure how to solve.  My initial Login page which is a jsf page is just displaying the xhtml code as a jsf page.  There is no conversion when I look at the html in the browser to html.  I had to set Mojarra 1.2 as my JSF CONFIG NAME in my web.xml to make this deploy and I am using Tomahawk 1.1.9 as well in the page, but none of the xhtml or EL is being converted to html in the page.  No errors come up in the log when I access this page just a bunch of No context init parameters for Tomahawk.  Any help would be appreciated.  I have attached my web.xml, faces-config.xml, and the initial Login page.

        • 1. Re: Converting JSF 1.2 project from JBoss 4.2 to JBoss AS7
          ybxiang.china

            <welcome-file-list>

              <welcome-file>index.html</welcome-file>

            </welcome-file-list>

          ~~~~~~~~~~~~~~~~ 1. Are you sure "index.html" is a existing page? Your attachment is "index.xhtmll" !

           

            <servlet-mapping>

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

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

            </servlet-mapping>

          ~~~~~~~~~~~~~~~~~~~~~This is the root cause that your index.html is NOT treated as JSF page.

          • 2. Re: Converting JSF 1.2 project from JBoss 4.2 to JBoss AS7
            ybxiang.china

            You can try

            (a)

              <welcome-file-list>

                <welcome-file>/faces/index.xhtml</welcome-file>

              </welcome-file-list>

             

              <servlet-mapping>

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

                <url-pattern>/faces/*</url-pattern>

              </servlet-mapping>

             

            (b)

              <welcome-file-list>

                <welcome-file>index.jsf</welcome-file>

              </welcome-file-list>

             

              <servlet-mapping>

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

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

              </servlet-mapping>

            • 3. Re: Converting JSF 1.2 project from JBoss 4.2 to JBoss AS7
              tsimpson

              Found answer.  I removed the Apache JSF extensions to get it to deploy and they were needed.  Once I added them back in and included the option to WAR_BUNDLES_JSF_IMPL I got a different issue.  Thanks.