0 Replies Latest reply on Oct 10, 2008 8:05 AM by Anil Langote

    java.lang.IllegalArgumentException: Error in JSFClientSessio

    Anil Langote Newbie

      Hi All

      I am getting following error while using the JSFunit to test the facelets.

      java.lang.IllegalArgumentException: Error in JSFClientSession constructor. Login.jsf probably does not map to FacesServlet in web.xml. See full URL in HttpException.
      at org.jboss.jsfunit.facade.JSFClientSession.doInitialRequest(JSFClientSession.java:135)
      at org.jboss.jsfunit.facade.JSFClientSession.<init>(JSFClientSession.java:82)
      at


      I have configured the web.xml the code is



      <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/sdm-facelets-config.xml</param-value>
      </context-param>


      <context-param>
      <param-name>facelets.LIBRARIES</param-name>
      <param-value>/WEB-INF/sdm-facelets-taglib.xml</param-value>
      </context-param>

      <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
      </context-param>

      <filter>
      <filter-name>JSFUnitFilter</filter-name>
      <filter-class>org.jboss.jsfunit.framework.JSFUnitFilter</filter-class>
      </filter>

      <filter-mapping>
      <filter-name>JSFUnitFilter</filter-name>
      <servlet-name>ServletTestRunner</servlet-name>
      </filter-mapping>

      <filter-mapping>
      <filter-name>JSFUnitFilter</filter-name>
      <servlet-name>ServletRedirector</servlet-name>
      </filter-mapping>

      <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>

      <servlet>
      <servlet-name>ServletRedirector</servlet-name>
      <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
      </servlet>
      <servlet>
      <servlet-name>ServletTestRunner</servlet-name>
      <servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-class>
      </servlet>

      <!-- Faces Servlet Mappings -->
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>ServletRedirector</servlet-name>
      <url-pattern>/ServletRedirector</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>ServletTestRunner</servlet-name>
      <url-pattern>/ServletTestRunner</url-pattern>
      </servlet-mapping>




      Can anybody help me out to resolve the issue

      Thanks
      alangote