Several things here :
1/ You're trying to use Log4j for your own logs and you have not defined an
appender for your classes (you should also read the Log4j documentation to
understand how it works)
Solution 1 : edit the log_client.properties file and add your appender
Solution 2 : create another log_client.properties, add your appender (but
also put Cactus's one) and add the file to your classpath *before*
commons-cactus.jar
This is not an fatal error ... simply a warning that no log will be output
2/ the assertion fails because there is space betwen <body> and "A GET
request". Check the comment I have put in SampleServlet.java :
// Note: We send the text in one line only because some servlet
engines
// (like Tomcat 3.2) add some characters at the end of the line
// ('\x0D' + '\x0A') even though we use the print() method and not
// println() ....
pw.print("<html><head/><body>A GET request</body></html>");
Hope it helps. I have not submitted the problem to the Tomcat folks so I
don't know if it is a bug, feature or something I don't understand ... :-)
-Vincent
----- Original Message -----
From: "Vaishnav, Kunal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 6:06 PM
Subject: Addendum to the previous post..
> Sorry folks,
> Thgt this info might be helpful. The client side dump is:
> log4j:ERROR No appenders could be found for category
> (com.jdedwards.oneworld.owportal.util.TestSampleServlet).
> log4j:ERROR Please initialize the log4j system properly.
> FAILURE:
>
testReadServletOutputStream(com.jdedwards.oneworld.owportal.util.TestSampleS
> ervlet) : line 234 : expected:<<html><head/><body>A GET
> request</body></html>> but was:<<html><head/><body> A GET request
> </body></html> >
> ERROR:
>
testRequestDispatcher(com.jdedwards.oneworld.owportal.util.TestSampleServlet
> ) : line 545 : java.io.FileNotFoundException:
> http://localhost:82/jdetest/servlet/ServletRedirector
>
>
>
>
> Kunal Vaishnav
> Software Developer
> Tools - Portal and Business Intelligence Intern
> One Technology Way
> Denver, CO 80237
> (303)334-7887
>
> 'I want to share something with you -- the three sentences that will get
you
> through life. Number one - Cover for me. Number two - Oh, good idea, boss.
> Number three - It was like that when I got here.'
> -Homer Simpson
>
> "A diamond is just another piece of coal that did well under pressure!!"
>
>