0 Replies Latest reply on Jun 21, 2011 8:01 PM by Robert Gary

    Using default facelets with Myfaces 2.0

    Robert Gary Newbie

      I'm running JBoss AS 6.0.0.Final with JSF 2.0.6 (WAR deployed). I've previously been including jsf-facelets.jar in my release but it does not understand the 2.0 tag libraries (i.e. tomahawk 2.0, etc) so I want to use the default instead (legacy application). However, I'm getting an error...

       

      [2011-06-21 16:55:46] SEVERE [http-0.0.0.0-80-4 org.apache.myfaces.renderkit.Err

      orPageWriter] An exception occurred: javax.faces.FacesException: java.lang.NoCla

      ssDefFoundError: com/sun/facelets/tag/jsf/ComponentHandler

              at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(Exce

      ptionHandlerImpl.java:241)

              at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(Ex

      ceptionHandlerImpl.java:156)

              at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl

      .java:191)

              at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java

      :118)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)

       

       

      My web.xml contains...

      <context-param>
          <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
          <param-value>false</param-value>
      </context-param>

       

      <context-param>
      <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
      <param-value>true</param-value>
      </context-param>

       

       

      my faces-config.xml contains...

      <application>
          <!--<view-handler>com.sun.facelets.FaceletViewHandler</view-handler> -->
          <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
          <message-bundle>Messages</message-bundle>
      </application>

       

      So I assume that I should not have a reference to com.sun.facelets, correct? Where could this be called such that javax.faces.webapp.FAcesServlet seems to want to load it??

       

      -Robert