Axis logging should be able to show up server side classes that your server side webservices use.
If you put the following log4j.properties in axises WEB-INF/classes dir all logging will be output to a file axis.log in the directory that you started the server. You of course need the log4j jar archive - run happyaxis.jsp. Regards, Patrick. # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=DEBUG, LOGFILE # Set the enterprise logger category to FATAL and its only appender to CONSOLE. log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Threshold=DEBUG log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=./axis.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.Threshold=DEBUG log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n On Tue, 25 Jan 2005 16:45:40 +0100, Steve <[EMAIL PROTECTED]> wrote: > Hello, > > I recently discovered the usage of log4j to show me Axis debuging > information, > now I wonder what is the best way to be able to debug or log any errors > from my server side classes, > so far I was only able to get understandable exceptions form my client > code (obviously that's as easy as usual), > but in a distributed system like a webservice it's harder I suppose ? > > When an error occurs in one of my server side classes (let's say an > NullPointerException of some kind), > I only get the message "NullPointerException" in my console output, but > no full stackTrace like on my client side. > So it's nearly impossible to find the error without knowing the class > and method which threw the error. > > Can I use the log4j properties file to send server side exception to my > console or a file in some way, > or do I have to create a Logger on my server side, if so could anybody > please give me a full example of how o do that ? > > If there is another way of debugging my server side classes I would > really like to get to know it :) > > Thanks a lot in advance. > > Steve >