Gurus,

Did somebody ever use Watchdog to test Apache Jserv NT
version or have some advises on how to do it?  How to
config the Jserv and Watchdog so that the
servlet-tests.war and jsp-test.war can be used with
Jserv?   Where can I get a Watchdog version which
tests Servlet API 2.0 complaint?   

Thank a lot.

--------------------------------------------------------
The following are the steps I tried, but I finally
gave up.

I installed Watchdog/ant/servletapi/tools and run it
against Tomcat, it worked fine.    Then I tried to use
it to test Apache Jserv 1.1.1.    I copied
servlet-tests.war and jsp-tests.war files into the
servlet repositories directory of Jserv, in the
zone.properites file I added:

-------------------------------------------------------
repositories=d:\apache\Jserv\servlets\servlet-tests.war
repositories=d:\apache\Jserv\servlets\jsp-tests.war
-------------------------------------------------------

In the jserv.conf I added mount point:

-------------------------------------------------------
ApJServMount /servlet-tests /root
-------------------------------------------------------

Then I shutdown/restarted the Apache server.  
However,  JServ looks doesn't take .war file.    The
following commands gave me a lot error messages:

   D:\watchdog\watchdog servlet localhost 8080


FAIL:
org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest.GetHeaders_01Test
(Negative Test:getHeadersTest)
:org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest.GetHeaders_01Test
exception: java.io.FileNotFoundException:
http://locahost:8080/servlet-tests/GetHeaders_01Test
.......

-------------------------------------------------------

I guess Jserv doesn't support war file yet.   So I
extracted the servlet-tests.war and created a JAR file
for all the files under the directory:

   WEB-INF/classes/tests

I copied the JAR file into the
D:\apache\Jserv\servlets again and added the
repositories directive into zone.properities.    Then
I added the aliases to zone.properities:

Such as:
-------------------------------------------------------
servlet.Date.code=tests.Headers.Date            
Servlet.GetAttributeTest.code=test.javax_servlet.ServletRequest.GetAttributeNamesTestServlet
servlet.GetRequestDispatcherTest.code=test.javax_servlet.ServletRequest.GetRequestDispatcherTestServlet
.........
.........
-------------------------------------------------------

Now, from a browser, I can access
http://localhost:8080/servlet-tests/Date and it
replied the content. 

But the following requests will hang the server on.

http://localhost:8080/servlet-tests/GetRequestDispatcherTest

I then used "watchdog servlet localhost 8080" command.
  I found all the tests on "HttpSession" just hang on
the server.    Some tests to "Cookie" can be OK.

--------------------------------------------------------

Any comments are welcome.

--David




__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/


--
----------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to