1 Reply Latest reply on May 28, 2008 8:58 PM by Stan Silvert

    Broken web.xml

    Jane Zhen Newbie

      After adding to web.xml the JSFUnitFilter (as Getting Started describes), my web application can't find the first page.
      I have a question, my web application uses Tomcat in a proxy mode, ie. in server.xml, I specified a proxyPort="80". Does this matter when filter works?

      thanks for any answers

      Jane

        • 1. Re: Broken web.xml
          Stan Silvert Master

          You mean that you can't hit your application from the browser? If that is the case then you probably mapped the JSFUnitFilter incorrectly. The JSFUnitFilter should only be activated when you start a JSFUnit test, but not when you are sending requests to your application. Double check the filter mapping in web.xml and make sure it looks like this:

          <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>


          I don't know if anyone has tried JSFUnit with mod_proxy before. I can't think of why it wouldn't work as long as your settings for proxyName and proxyPort point to a proxy that sends you back to Tomcat.

          Stan