I am new to Java and Tomcat having just inherited the admin of some servlets
from someone who has left the company.
I have a servlet that isn't doing what I expect.
It is littered with lines of the following type:-
writeError("Session was not created by superclass");
Which refers to :-
protected void writeDebug(Object msg)
{
if (debug==1) {
Date date = new Date();
System.err.println("[" + date.toString() + "] [debug] [" +
this.getClass().getName() + "] " + msg.toString());
debugMsg = debugMsg
+ "<TR><TD BGCOLOR='#CCCCCC'>"
+ msg.toString() + "</TD></TR>\n";
}
return;
}
This is throwing an error but I get no error in any of the Tomcat logs even
though I have a Context Logger set up to debug.
I have manually set debug = 1 at the top of the script recompiled and
redeployed and still no debug messages.
Where would these end up.
Reading around it looks like a better approach would be to use Log4J to
debug the servlet. I'd rather not do that if I can get away with a quick fix
using the existing code.
Comments pls.
Simon
Simon Taylor
Managed Services Technology Consultant
Nortel Networks
p - 01279 404289 (ESN 742 4289)
m - 07740 533743 (ESN 748 3743)
e - [EMAIL PROTECTED]
"I code therefore I am"